summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFelix Riemann <[email protected]>2015-01-15 22:47:29 +0100
committerraveit65 <[email protected]>2018-07-08 12:29:16 +0200
commit362b507c096ff79a2607c24dc0d994866cc4da69 (patch)
tree154921ecf31e70e57b2bdbff446308bf1610859a /src
parent32675ab0073a4c6298474dd09afa9acb10ad4501 (diff)
downloadeom-362b507c096ff79a2607c24dc0d994866cc4da69.tar.bz2
eom-362b507c096ff79a2607c24dc0d994866cc4da69.tar.xz
EomSidebar: Set orientation property via g_object_new
origin commit: https://gitlab.gnome.org/GNOME/eog/commit/db3a16e
Diffstat (limited to 'src')
-rw-r--r--src/eom-sidebar.c7
1 files 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;
}