From 362b507c096ff79a2607c24dc0d994866cc4da69 Mon Sep 17 00:00:00 2001 From: Felix Riemann Date: Thu, 15 Jan 2015 22:47:29 +0100 Subject: EomSidebar: Set orientation property via g_object_new origin commit: https://gitlab.gnome.org/GNOME/eog/commit/db3a16e --- src/eom-sidebar.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/eom-sidebar.c b/src/eom-sidebar.c index 81a85c8..37a7cf4 100644 --- a/src/eom-sidebar.c +++ b/src/eom-sidebar.c @@ -350,9 +350,6 @@ eom_sidebar_init (EomSidebar *eom_sidebar) GtkWidget *arrow; GtkWidget *image; - gtk_orientable_set_orientation (GTK_ORIENTABLE (eom_sidebar), - GTK_ORIENTATION_VERTICAL); - eom_sidebar->priv = EOM_SIDEBAR_GET_PRIVATE (eom_sidebar); /* data model */ @@ -445,7 +442,9 @@ eom_sidebar_new (void) { GtkWidget *eom_sidebar; - eom_sidebar = g_object_new (EOM_TYPE_SIDEBAR, NULL); + eom_sidebar = g_object_new (EOM_TYPE_SIDEBAR, + "orientation", GTK_ORIENTATION_VERTICAL, + NULL); return eom_sidebar; } -- cgit v1.2.1