diff options
author | Benjamin Otte <otte@redhat.com> | 2019-04-13 11:58:38 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2019-04-15 14:38:23 +0200 |
commit | 44ce36bef500ccec435f4d4bf2d94a591a6569a9 (patch) | |
tree | cdbf72ce76a2fe094ff0cddab3f7304e91cb1716 /demos | |
parent | 84d2150077bbab60529ef8345f58247fee527364 (diff) | |
download | gtk+-44ce36bef500ccec435f4d4bf2d94a591a6569a9.tar.gz |
menubar: Remove pack direction
Diffstat (limited to 'demos')
-rw-r--r-- | demos/gtk-demo/menus.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/demos/gtk-demo/menus.c b/demos/gtk-demo/menus.c index f56fbf29ad..47785300f8 100644 --- a/demos/gtk-demo/menus.c +++ b/demos/gtk-demo/menus.c @@ -70,12 +70,6 @@ change_orientation (GtkWidget *button, parent = gtk_widget_get_parent (menubar); orientation = gtk_orientable_get_orientation (GTK_ORIENTABLE (parent)); gtk_orientable_set_orientation (GTK_ORIENTABLE (parent), 1 - orientation); - - if (orientation == GTK_ORIENTATION_VERTICAL) - g_object_set (menubar, "pack-direction", GTK_PACK_DIRECTION_TTB, NULL); - else - g_object_set (menubar, "pack-direction", GTK_PACK_DIRECTION_LTR, NULL); - } static GtkWidget *window = NULL; |