Skip to content
Permalink
Browse files

EomSidebar: Set orientation property via g_object_new

  • Loading branch information...
Felix Riemann authored and raveit65 committed Jan 15, 2015
1 parent 32675ab commit 362b507c096ff79a2607c24dc0d994866cc4da69
Showing with 3 additions and 4 deletions.
  1. +3 −4 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;
}

0 comments on commit 362b507

Please sign in to comment.
You can’t perform that action at this time.