[gnome-photos/wip/rishi/zoom: 1/5] preview-view: Shuffle some code around



commit 031efcec8da4da51c5b6c643a5988d678a73b5dd
Author: Debarshi Ray <debarshir gnome org>
Date:   Mon May 15 20:01:35 2017 +0200

    preview-view: Shuffle some code around
    
    This will make the subsequent commit easier to read.

 src/photos-preview-view.c |   34 +++++++++++++++++-----------------
 1 files changed, 17 insertions(+), 17 deletions(-)
---
diff --git a/src/photos-preview-view.c b/src/photos-preview-view.c
index f57cef1..4ca120b 100644
--- a/src/photos-preview-view.c
+++ b/src/photos-preview-view.c
@@ -176,6 +176,23 @@ photos_preview_view_get_invisible_child (PhotosPreviewView *self)
 }
 
 
+static GtkWidget *
+photos_preview_view_get_view_from_view_container (GtkWidget *view_container)
+{
+  GtkWidget *child;
+  GtkWidget *view;
+
+  child = gtk_bin_get_child (GTK_BIN (view_container));
+
+  if (GTK_IS_VIEWPORT (child))
+    view = gtk_bin_get_child (GTK_BIN (child));
+  else
+    view = child;
+
+  return view;
+}
+
+
 static gboolean
 photos_preview_view_motion_notify_event (PhotosPreviewView *self, GdkEvent *event)
 {
@@ -255,23 +272,6 @@ photos_preview_view_create_view_with_container (PhotosPreviewView *self)
 }
 
 
-static GtkWidget *
-photos_preview_view_get_view_from_view_container (GtkWidget *view_container)
-{
-  GtkWidget *child;
-  GtkWidget *view;
-
-  child = gtk_bin_get_child (GTK_BIN (view_container));
-
-  if (GTK_IS_VIEWPORT (child))
-    view = gtk_bin_get_child (GTK_BIN (child));
-  else
-    view = child;
-
-  return view;
-}
-
-
 static void
 photos_preview_view_process (GObject *source_object, GAsyncResult *res, gpointer user_data)
 {


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