[evince] shell: Use vertical boxes instead of vboxes



commit 7d6a5f17c09de0d1a9e4775434b162407cb43732
Author: Christian Persch <chpe gnome org>
Date:   Sun Jun 9 01:00:00 2013 +0200

    shell: Use vertical boxes instead of vboxes

 shell/ev-properties-fonts.c    |    6 ++++--
 shell/ev-properties-license.c  |    6 ++++--
 shell/ev-sidebar-annotations.c |    6 ++++--
 shell/ev-sidebar-attachments.c |    6 ++++--
 shell/ev-sidebar-bookmarks.c   |    6 ++++--
 shell/ev-sidebar-layers.c      |    6 ++++--
 shell/ev-sidebar-links.c       |    6 ++++--
 shell/ev-sidebar-thumbnails.c  |    7 +++++--
 shell/ev-sidebar.c             |    6 ++++--
 9 files changed, 37 insertions(+), 18 deletions(-)
---
diff --git a/shell/ev-properties-fonts.c b/shell/ev-properties-fonts.c
index f4d4438..08406e0 100644
--- a/shell/ev-properties-fonts.c
+++ b/shell/ev-properties-fonts.c
@@ -48,7 +48,7 @@ struct _EvPropertiesFontsClass {
 static void
 job_fonts_finished_cb (EvJob *job, EvPropertiesFonts *properties);
 
-G_DEFINE_TYPE (EvPropertiesFonts, ev_properties_fonts, GTK_TYPE_VBOX)
+G_DEFINE_TYPE (EvPropertiesFonts, ev_properties_fonts, GTK_TYPE_BOX)
 
 static void
 ev_properties_fonts_dispose (GObject *object)
@@ -237,7 +237,9 @@ ev_properties_fonts_new ()
 {
        EvPropertiesFonts *properties;
 
-       properties = g_object_new (EV_TYPE_PROPERTIES_FONTS, NULL);
+       properties = g_object_new (EV_TYPE_PROPERTIES_FONTS,
+                                  "orientation", GTK_ORIENTATION_VERTICAL,
+                                  NULL);
 
        return GTK_WIDGET (properties);
 }
diff --git a/shell/ev-properties-license.c b/shell/ev-properties-license.c
index 21cfb70..411786b 100644
--- a/shell/ev-properties-license.c
+++ b/shell/ev-properties-license.c
@@ -36,7 +36,7 @@ struct _EvPropertiesLicenseClass {
        GtkVBoxClass base_class;
 };
 
-G_DEFINE_TYPE (EvPropertiesLicense, ev_properties_license, GTK_TYPE_VBOX)
+G_DEFINE_TYPE (EvPropertiesLicense, ev_properties_license, GTK_TYPE_BOX)
 
 static void
 ev_properties_license_class_init (EvPropertiesLicenseClass *properties_license_class)
@@ -160,7 +160,9 @@ ev_properties_license_new (void)
 {
        EvPropertiesLicense *properties_license;
 
-       properties_license = g_object_new (EV_TYPE_PROPERTIES_LICENSE, NULL);
+       properties_license = g_object_new (EV_TYPE_PROPERTIES_LICENSE,
+                                          "orientation", GTK_ORIENTATION_VERTICAL,
+                                          NULL);
 
        return GTK_WIDGET (properties_license);
 }
diff --git a/shell/ev-sidebar-annotations.c b/shell/ev-sidebar-annotations.c
index 3d736a4..1cdee50 100644
--- a/shell/ev-sidebar-annotations.c
+++ b/shell/ev-sidebar-annotations.c
@@ -67,7 +67,7 @@ static guint signals[N_SIGNALS];
 
 G_DEFINE_TYPE_EXTENDED (EvSidebarAnnotations,
                         ev_sidebar_annotations,
-                        GTK_TYPE_VBOX,
+                        GTK_TYPE_BOX,
                         0,
                         G_IMPLEMENT_INTERFACE (EV_TYPE_SIDEBAR_PAGE,
                                               ev_sidebar_annotations_page_iface_init))
@@ -300,7 +300,9 @@ ev_sidebar_annotations_class_init (EvSidebarAnnotationsClass *klass)
 GtkWidget *
 ev_sidebar_annotations_new (void)
 {
-       return GTK_WIDGET (g_object_new (EV_TYPE_SIDEBAR_ANNOTATIONS, NULL));
+       return GTK_WIDGET (g_object_new (EV_TYPE_SIDEBAR_ANNOTATIONS,
+                                         "orientation", GTK_ORIENTATION_VERTICAL,
+                                         NULL));
 }
 
 void
diff --git a/shell/ev-sidebar-attachments.c b/shell/ev-sidebar-attachments.c
index 3d5202f..afe0f6a 100644
--- a/shell/ev-sidebar-attachments.c
+++ b/shell/ev-sidebar-attachments.c
@@ -72,7 +72,7 @@ static void ev_sidebar_attachments_page_iface_init (EvSidebarPageInterface *ifac
 
 G_DEFINE_TYPE_EXTENDED (EvSidebarAttachments,
                         ev_sidebar_attachments,
-                        GTK_TYPE_VBOX,
+                        GTK_TYPE_BOX,
                         0, 
                         G_IMPLEMENT_INTERFACE (EV_TYPE_SIDEBAR_PAGE, 
                                               ev_sidebar_attachments_page_iface_init))
@@ -600,7 +600,9 @@ ev_sidebar_attachments_new (void)
 {
        GtkWidget *ev_attachbar;
 
-       ev_attachbar = g_object_new (EV_TYPE_SIDEBAR_ATTACHMENTS, NULL);
+       ev_attachbar = g_object_new (EV_TYPE_SIDEBAR_ATTACHMENTS,
+                                     "orientation", GTK_ORIENTATION_VERTICAL,
+                                     NULL);
 
        return ev_attachbar;
 }
diff --git a/shell/ev-sidebar-bookmarks.c b/shell/ev-sidebar-bookmarks.c
index b8e1143..f856a14 100644
--- a/shell/ev-sidebar-bookmarks.c
+++ b/shell/ev-sidebar-bookmarks.c
@@ -63,7 +63,7 @@ static void ev_sidebar_bookmarks_page_iface_init (EvSidebarPageInterface *iface)
 
 G_DEFINE_TYPE_EXTENDED (EvSidebarBookmarks,
                         ev_sidebar_bookmarks,
-                        GTK_TYPE_VBOX,
+                        GTK_TYPE_BOX,
                         0,
                         G_IMPLEMENT_INTERFACE (EV_TYPE_SIDEBAR_PAGE,
                                                ev_sidebar_bookmarks_page_iface_init))
@@ -549,7 +549,9 @@ ev_sidebar_bookmarks_class_init (EvSidebarBookmarksClass *klass)
 GtkWidget *
 ev_sidebar_bookmarks_new (void)
 {
-        return GTK_WIDGET (g_object_new (EV_TYPE_SIDEBAR_BOOKMARKS, NULL));
+        return GTK_WIDGET (g_object_new (EV_TYPE_SIDEBAR_BOOKMARKS,
+                                         "orientation", GTK_ORIENTATION_VERTICAL,
+                                         NULL));
 }
 
 void
diff --git a/shell/ev-sidebar-layers.c b/shell/ev-sidebar-layers.c
index 794d31f..3f541ba 100644
--- a/shell/ev-sidebar-layers.c
+++ b/shell/ev-sidebar-layers.c
@@ -55,7 +55,7 @@ static guint signals[N_SIGNALS];
 
 G_DEFINE_TYPE_EXTENDED (EvSidebarLayers,
                         ev_sidebar_layers,
-                        GTK_TYPE_VBOX,
+                        GTK_TYPE_BOX,
                         0, 
                         G_IMPLEMENT_INTERFACE (EV_TYPE_SIDEBAR_PAGE, 
                                               ev_sidebar_layers_page_iface_init))
@@ -328,7 +328,9 @@ ev_sidebar_layers_class_init (EvSidebarLayersClass *ev_layers_class)
 GtkWidget *
 ev_sidebar_layers_new (void)
 {
-       return GTK_WIDGET (g_object_new (EV_TYPE_SIDEBAR_LAYERS, NULL));
+       return GTK_WIDGET (g_object_new (EV_TYPE_SIDEBAR_LAYERS,
+                                  "orientation", GTK_ORIENTATION_VERTICAL,
+                                         NULL));
 }
 
 static void
diff --git a/shell/ev-sidebar-links.c b/shell/ev-sidebar-links.c
index 737eb00..d6272d2 100644
--- a/shell/ev-sidebar-links.c
+++ b/shell/ev-sidebar-links.c
@@ -82,7 +82,7 @@ static guint signals[N_SIGNALS];
 
 G_DEFINE_TYPE_EXTENDED (EvSidebarLinks, 
                         ev_sidebar_links, 
-                        GTK_TYPE_VBOX,
+                        GTK_TYPE_BOX,
                         0, 
                         G_IMPLEMENT_INTERFACE (EV_TYPE_SIDEBAR_PAGE, 
                                               ev_sidebar_links_page_iface_init))
@@ -466,7 +466,9 @@ ev_sidebar_links_new (void)
 {
        GtkWidget *ev_sidebar_links;
 
-       ev_sidebar_links = g_object_new (EV_TYPE_SIDEBAR_LINKS, NULL);
+       ev_sidebar_links = g_object_new (EV_TYPE_SIDEBAR_LINKS,
+                                  "orientation", GTK_ORIENTATION_VERTICAL,
+                                  NULL);
 
        return ev_sidebar_links;
 }
diff --git a/shell/ev-sidebar-thumbnails.c b/shell/ev-sidebar-thumbnails.c
index f1089b0..7dbe105 100644
--- a/shell/ev-sidebar-thumbnails.c
+++ b/shell/ev-sidebar-thumbnails.c
@@ -101,7 +101,7 @@ static void         adjustment_changed_cb                  (EvSidebarThumbnails
 
 G_DEFINE_TYPE_EXTENDED (EvSidebarThumbnails, 
                         ev_sidebar_thumbnails, 
-                        GTK_TYPE_VBOX,
+                        GTK_TYPE_BOX,
                         0, 
                         G_IMPLEMENT_INTERFACE (EV_TYPE_SIDEBAR_PAGE, 
                                               ev_sidebar_thumbnails_page_iface_init))
@@ -294,7 +294,10 @@ ev_sidebar_thumbnails_new (void)
 {
        GtkWidget *ev_sidebar_thumbnails;
 
-       ev_sidebar_thumbnails = g_object_new (EV_TYPE_SIDEBAR_THUMBNAILS, NULL);
+       ev_sidebar_thumbnails = g_object_new (EV_TYPE_SIDEBAR_THUMBNAILS,
+                                              "orientation", GTK_ORIENTATION_VERTICAL,
+                                              NULL);
+
 
        return ev_sidebar_thumbnails;
 }
diff --git a/shell/ev-sidebar.c b/shell/ev-sidebar.c
index bc71bdf..492abb8 100644
--- a/shell/ev-sidebar.c
+++ b/shell/ev-sidebar.c
@@ -58,7 +58,7 @@ struct _EvSidebarPrivate {
        GtkTreeModel *page_model;
 };
 
-G_DEFINE_TYPE (EvSidebar, ev_sidebar, GTK_TYPE_VBOX)
+G_DEFINE_TYPE (EvSidebar, ev_sidebar, GTK_TYPE_BOX)
 
 #define EV_SIDEBAR_GET_PRIVATE(object) \
                (G_TYPE_INSTANCE_GET_PRIVATE ((object), EV_TYPE_SIDEBAR, EvSidebarPrivate))
@@ -421,7 +421,9 @@ ev_sidebar_new (void)
 {
        GtkWidget *ev_sidebar;
 
-       ev_sidebar = g_object_new (EV_TYPE_SIDEBAR, NULL);
+       ev_sidebar = g_object_new (EV_TYPE_SIDEBAR,
+                                   "orientation", GTK_ORIENTATION_VERTICAL,
+                                  NULL);
 
        return ev_sidebar;
 }


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