diff options
author | Jasper St. Pierre <jstpierre@mecheye.net> | 2011-10-28 12:16:10 -0400 |
---|---|---|
committer | Jasper St. Pierre <jstpierre@mecheye.net> | 2011-10-28 15:09:21 -0400 |
commit | 808787213054a3c93775cdf5c777c86eda45afe1 (patch) | |
tree | 23eb451682d12b8d7327f0dfa4e3949c644e6444 /src/ui | |
parent | 3ad25a62cdca1fedeceb91f539a98f446a6920e2 (diff) | |
download | mutter-808787213054a3c93775cdf5c777c86eda45afe1.tar.gz |
theme-viewer: Fix layout
https://bugzilla.gnome.org/show_bug.cgi?id=662895
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/theme-viewer.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/ui/theme-viewer.c b/src/ui/theme-viewer.c index 23783440a..10b049827 100644 --- a/src/ui/theme-viewer.c +++ b/src/ui/theme-viewer.c @@ -155,12 +155,18 @@ normal_contents (void) gtk_ui_manager_get_widget (ui_manager, "/ui/menubar"), 0, 0, 1, 1); + gtk_widget_set_hexpand (gtk_ui_manager_get_widget (ui_manager, "/ui/menubar"), + TRUE); + /* Create the toolbar */ gtk_grid_attach (GTK_GRID (grid), gtk_ui_manager_get_widget (ui_manager, "/ui/toolbar"), 0, 1, 1, 1); + gtk_widget_set_hexpand (gtk_ui_manager_get_widget (ui_manager, "/ui/toolbar"), + TRUE); + /* Create document */ @@ -176,6 +182,9 @@ normal_contents (void) gtk_grid_attach (GTK_GRID (grid), sw, 0, 2, 1, 1); + + gtk_widget_set_hexpand (sw, TRUE); + gtk_widget_set_vexpand (sw, TRUE); contents = gtk_text_view_new (); gtk_text_view_set_wrap_mode (GTK_TEXT_VIEW (contents), @@ -191,6 +200,8 @@ normal_contents (void) statusbar, 0, 3, 1, 1); + gtk_widget_set_hexpand (statusbar, TRUE); + gtk_widget_show_all (grid); g_object_unref (ui_manager); |