Skip to content

Commit

Permalink
EomSidebar: Set orientation property via g_object_new
Browse files Browse the repository at this point in the history
  • Loading branch information
fxri authored and raveit65 committed Jul 8, 2018
1 parent 32675ab commit 362b507
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/eom-sidebar.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 362b507

Please sign in to comment.