[gnome-photos/wip/abono/sidebar: 5/8] preview-view: Rename revealer



commit 0991451beed8fc70f9c6c262a7abb7f9a045e71e
Author: Alessandro Bono <abono gnome org>
Date:   Tue Oct 18 23:46:56 2016 +0200

    preview-view: Rename revealer

 src/photos-preview-view.c |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/src/photos-preview-view.c b/src/photos-preview-view.c
index 2e95f6e..ff73199 100644
--- a/src/photos-preview-view.c
+++ b/src/photos-preview-view.c
@@ -49,7 +49,7 @@ struct _PhotosPreviewView
   GCancellable *cancellable;
   GeglNode *node;
   GtkWidget *palette;
-  GtkWidget *revealer;
+  GtkWidget *edit_revealer;
   GtkWidget *stack;
   PhotosBaseManager *item_mngr;
   PhotosModeController *mode_cntrlr;
@@ -580,20 +580,20 @@ photos_preview_view_window_mode_changed (PhotosPreviewView *self, PhotosWindowMo
     case PHOTOS_WINDOW_MODE_FAVORITES:
     case PHOTOS_WINDOW_MODE_OVERVIEW:
     case PHOTOS_WINDOW_MODE_SEARCH:
-      gtk_revealer_set_reveal_child (GTK_REVEALER (self->revealer), FALSE);
+      gtk_revealer_set_reveal_child (GTK_REVEALER (self->edit_revealer), FALSE);
       photos_edit_palette_hide_details (PHOTOS_EDIT_PALETTE (self->palette));
       photos_preview_nav_buttons_hide (self->nav_buttons);
       photos_preview_nav_buttons_set_model (self->nav_buttons, NULL, NULL);
       break;
 
     case PHOTOS_WINDOW_MODE_EDIT:
-      gtk_revealer_set_reveal_child (GTK_REVEALER (self->revealer), TRUE);
+      gtk_revealer_set_reveal_child (GTK_REVEALER (self->edit_revealer), TRUE);
       photos_edit_palette_show (PHOTOS_EDIT_PALETTE (self->palette));
       photos_preview_nav_buttons_hide (self->nav_buttons);
       break;
 
     case PHOTOS_WINDOW_MODE_PREVIEW:
-      gtk_revealer_set_reveal_child (GTK_REVEALER (self->revealer), FALSE);
+      gtk_revealer_set_reveal_child (GTK_REVEALER (self->edit_revealer), FALSE);
       photos_edit_palette_hide_details (PHOTOS_EDIT_PALETTE (self->palette));
       photos_preview_nav_buttons_show (self->nav_buttons);
       break;
@@ -683,14 +683,14 @@ photos_preview_view_init (PhotosPreviewView *self)
   view_container = photos_preview_view_create_view_with_container (self);
   gtk_container_add (GTK_CONTAINER (self->stack), view_container);
 
-  self->revealer = gtk_revealer_new ();
-  gtk_revealer_set_transition_type (GTK_REVEALER (self->revealer), GTK_REVEALER_TRANSITION_TYPE_SLIDE_LEFT);
-  gtk_container_add (GTK_CONTAINER (self), self->revealer);
+  self->edit_revealer = gtk_revealer_new ();
+  gtk_revealer_set_transition_type (GTK_REVEALER (self->edit_revealer), 
GTK_REVEALER_TRANSITION_TYPE_SLIDE_LEFT);
+  gtk_container_add (GTK_CONTAINER (self), self->edit_revealer);
 
   sw = gtk_scrolled_window_new (NULL, NULL);
   gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (sw), GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC);
   gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (sw), GTK_SHADOW_IN);
-  gtk_container_add (GTK_CONTAINER (self->revealer), sw);
+  gtk_container_add (GTK_CONTAINER (self->edit_revealer), sw);
 
   self->palette = photos_edit_palette_new ();
   gtk_container_add (GTK_CONTAINER (sw), self->palette);


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