[gnome-photos/wip/rishi/use-g-auto-01: 4/5] organize-collection-view: Style fixes
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos/wip/rishi/use-g-auto-01: 4/5] organize-collection-view: Style fixes
- Date: Sat, 27 Mar 2021 19:45:15 +0000 (UTC)
commit cb3e6f1770f80559e707d0c9e68dc8f6cef92acb
Author: Debarshi Ray <debarshir gnome org>
Date: Sat Mar 27 20:33:29 2021 +0100
organize-collection-view: Style fixes
https://gitlab.gnome.org/GNOME/gnome-photos/-/merge_requests/202
src/photos-organize-collection-view.c | 15 +++++++++++----
1 file changed, 11 insertions(+), 4 deletions(-)
---
diff --git a/src/photos-organize-collection-view.c b/src/photos-organize-collection-view.c
index 4669e8df..e172067e 100644
--- a/src/photos-organize-collection-view.c
+++ b/src/photos-organize-collection-view.c
@@ -81,7 +81,9 @@ photos_organize_collection_view_check_cell (GtkTreeViewColumn *tree_column,
static void
-photos_organize_collection_view_set_collection_executed (GObject *source_object, GAsyncResult *res, gpointer
user_data)
+photos_organize_collection_view_set_collection_executed (GObject *source_object,
+ GAsyncResult *res,
+ gpointer user_data)
{
PhotosOrganizeCollectionView *self;
PhotosSetCollectionJob *job = PHOTOS_SET_COLLECTION_JOB (source_object);
@@ -139,14 +141,16 @@ photos_organize_collection_view_check_toggled (PhotosOrganizeCollectionView *sel
static void
-photos_organize_collection_view_create_collection_executed (GObject *source_object, GAsyncResult *res,
gpointer user_data)
+photos_organize_collection_view_create_collection_executed (GObject *source_object,
+ GAsyncResult *res,
+ gpointer user_data)
{
PhotosOrganizeCollectionView *self;
- PhotosCreateCollectionJob *col_job = PHOTOS_CREATE_COLLECTION_JOB (source_object);
GApplication *app;
GList *urns;
GtkTreeIter iter;
g_autoptr (GtkTreePath) path = NULL;
+ PhotosCreateCollectionJob *col_job = PHOTOS_CREATE_COLLECTION_JOB (source_object);
PhotosSearchContextState *state;
g_autoptr (PhotosSetCollectionJob) set_job = NULL;
g_autofree gchar *created_urn = NULL;
@@ -244,7 +248,7 @@ photos_organize_collection_view_text_edited_real (PhotosOrganizeCollectionView *
{
/* Don't insert collections with empty names. */
photos_organize_collection_model_remove_placeholder (PHOTOS_ORGANIZE_COLLECTION_MODEL (self->model));
- return;
+ goto out;
}
gtk_tree_model_get_iter (GTK_TREE_MODEL (self->model), &iter, path);
@@ -255,6 +259,9 @@ photos_organize_collection_view_text_edited_real (PhotosOrganizeCollectionView *
self->cancellable,
photos_organize_collection_view_create_collection_executed,
self);
+
+ out:
+ return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]