static gchar * photos_item_manager_get_where (PhotosBaseManager *mngr, gint flags) { PhotosItemManager *self = PHOTOS_ITEM_MANAGER (mngr); if (self->active_collection == NULL) return g_strdup (""); return photos_base_item_get_where (self->active_collection); }
static gchar * photos_collection_manager_get_where (PhotosBaseManager *mngr, gint flags) { GObject *collection; collection = photos_base_manager_get_active_object (mngr); if (collection == NULL) return g_strdup (""); return photos_base_item_get_where (PHOTOS_BASE_ITEM (collection)); }