[gnome-photos] preview-nav-buttons: Rename the parameters for clarity



commit 0c6cbfb969dc4ce29fa42aa6fa497f79edd9bb10
Author: Debarshi Ray <debarshir gnome org>
Date:   Mon Oct 26 14:32:57 2015 +0100

    preview-nav-buttons: Rename the parameters for clarity
    
    https://bugzilla.gnome.org/show_bug.cgi?id=733660

 src/photos-preview-nav-buttons.c |   12 +++++++-----
 src/photos-preview-nav-buttons.h |    6 +++---
 2 files changed, 10 insertions(+), 8 deletions(-)
---
diff --git a/src/photos-preview-nav-buttons.c b/src/photos-preview-nav-buttons.c
index 46f4600..d971648 100644
--- a/src/photos-preview-nav-buttons.c
+++ b/src/photos-preview-nav-buttons.c
@@ -516,19 +516,21 @@ photos_preview_nav_buttons_hide (PhotosPreviewNavButtons *self)
 
 
 void
-photos_preview_nav_buttons_set_model (PhotosPreviewNavButtons *self, GtkTreeModel *model, GtkTreePath 
*current_path)
+photos_preview_nav_buttons_set_model (PhotosPreviewNavButtons *self,
+                                      GtkTreeModel *child_model,
+                                      GtkTreePath *current_child_path)
 {
   PhotosPreviewNavButtonsPrivate *priv = self->priv;
 
   g_clear_object (&priv->model);
-  if (model != NULL)
-    priv->model = photos_preview_model_new (model);
+  if (child_model != NULL)
+    priv->model = photos_preview_model_new (child_model);
 
   g_clear_pointer (&priv->current_path, (GDestroyNotify) gtk_tree_path_free);
-  if (current_path != NULL)
+  if (current_child_path != NULL)
     {
       priv->current_path = gtk_tree_model_filter_convert_child_path_to_path (GTK_TREE_MODEL_FILTER 
(priv->model),
-                                                                             current_path);
+                                                                             current_child_path);
     }
 }
 
diff --git a/src/photos-preview-nav-buttons.h b/src/photos-preview-nav-buttons.h
index 5fe5ce6..74af01c 100644
--- a/src/photos-preview-nav-buttons.h
+++ b/src/photos-preview-nav-buttons.h
@@ -1,6 +1,6 @@
 /*
  * Photos - access, organize and share your photos on GNOME
- * Copyright © 2013, 2014 Red Hat, Inc.
+ * Copyright © 2013, 2014, 2015 Red Hat, Inc.
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License
@@ -77,8 +77,8 @@ PhotosPreviewNavButtons    *photos_preview_nav_buttons_new                (Photo
 void                        photos_preview_nav_buttons_hide               (PhotosPreviewNavButtons *self);
 
 void                        photos_preview_nav_buttons_set_model          (PhotosPreviewNavButtons *self,
-                                                                           GtkTreeModel *model,
-                                                                           GtkTreePath *current_path);
+                                                                           GtkTreeModel *child_model,
+                                                                           GtkTreePath *current_child_path);
 
 void                        photos_preview_nav_buttons_show               (PhotosPreviewNavButtons *self);
 


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