[gnome-photos/wip/rishi/collection: 5/52] organize-collection-view: Rename a variable



commit b86fc496009142a18e3457a8ea6d129c12d4ccc2
Author: Debarshi Ray <debarshir gnome org>
Date:   Thu Feb 8 00:50:31 2018 +0100

    organize-collection-view: Rename a variable
    
    This will make the subsequent commit easier to read.
    
    https://gitlab.gnome.org/GNOME/gnome-photos/issues/29

 src/photos-organize-collection-view.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/photos-organize-collection-view.c b/src/photos-organize-collection-view.c
index 108d399a..aeb1fff2 100644
--- a/src/photos-organize-collection-view.c
+++ b/src/photos-organize-collection-view.c
@@ -115,13 +115,13 @@ photos_organize_collection_view_check_toggled (PhotosOrganizeCollectionView *sel
   GtkTreeIter iter;
   GtkTreePath *tree_path;
   PhotosSetCollectionJob *job;
-  gboolean state;
+  gboolean active;
   gchar *coll_urn;
 
   tree_path = gtk_tree_path_new_from_string (path);
   gtk_tree_model_get_iter (GTK_TREE_MODEL (self->model), &iter, tree_path);
   gtk_tree_model_get (GTK_TREE_MODEL (self->model), &iter, PHOTOS_ORGANIZE_MODEL_ID, &coll_urn, -1);
-  state = gtk_cell_renderer_toggle_get_active (GTK_CELL_RENDERER_TOGGLE (self->renderer_check));
+  active = gtk_cell_renderer_toggle_get_active (GTK_CELL_RENDERER_TOGGLE (self->renderer_check));
 
   job = photos_set_collection_job_new (coll_urn, !state);
   photos_set_collection_job_run (job,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]