mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 19:42:05 +00:00
theme-viewer: Fix layout
https://bugzilla.gnome.org/show_bug.cgi?id=662895
This commit is contained in:
parent
3ad25a62cd
commit
8087872130
@ -155,12 +155,18 @@ normal_contents (void)
|
|||||||
gtk_ui_manager_get_widget (ui_manager, "/ui/menubar"),
|
gtk_ui_manager_get_widget (ui_manager, "/ui/menubar"),
|
||||||
0, 0, 1, 1);
|
0, 0, 1, 1);
|
||||||
|
|
||||||
|
gtk_widget_set_hexpand (gtk_ui_manager_get_widget (ui_manager, "/ui/menubar"),
|
||||||
|
TRUE);
|
||||||
|
|
||||||
/* Create the toolbar
|
/* Create the toolbar
|
||||||
*/
|
*/
|
||||||
gtk_grid_attach (GTK_GRID (grid),
|
gtk_grid_attach (GTK_GRID (grid),
|
||||||
gtk_ui_manager_get_widget (ui_manager, "/ui/toolbar"),
|
gtk_ui_manager_get_widget (ui_manager, "/ui/toolbar"),
|
||||||
0, 1, 1, 1);
|
0, 1, 1, 1);
|
||||||
|
|
||||||
|
gtk_widget_set_hexpand (gtk_ui_manager_get_widget (ui_manager, "/ui/toolbar"),
|
||||||
|
TRUE);
|
||||||
|
|
||||||
/* Create document
|
/* Create document
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -177,6 +183,9 @@ normal_contents (void)
|
|||||||
sw,
|
sw,
|
||||||
0, 2, 1, 1);
|
0, 2, 1, 1);
|
||||||
|
|
||||||
|
gtk_widget_set_hexpand (sw, TRUE);
|
||||||
|
gtk_widget_set_vexpand (sw, TRUE);
|
||||||
|
|
||||||
contents = gtk_text_view_new ();
|
contents = gtk_text_view_new ();
|
||||||
gtk_text_view_set_wrap_mode (GTK_TEXT_VIEW (contents),
|
gtk_text_view_set_wrap_mode (GTK_TEXT_VIEW (contents),
|
||||||
PANGO_WRAP_WORD);
|
PANGO_WRAP_WORD);
|
||||||
@ -191,6 +200,8 @@ normal_contents (void)
|
|||||||
statusbar,
|
statusbar,
|
||||||
0, 3, 1, 1);
|
0, 3, 1, 1);
|
||||||
|
|
||||||
|
gtk_widget_set_hexpand (statusbar, TRUE);
|
||||||
|
|
||||||
gtk_widget_show_all (grid);
|
gtk_widget_show_all (grid);
|
||||||
|
|
||||||
g_object_unref (ui_manager);
|
g_object_unref (ui_manager);
|
||||||
|
Loading…
Reference in New Issue
Block a user