Mercurial > dwindows
diff gtk3/dw.c @ 1579:245e6bf51317
Fix GTK3 MDI titlebar buttons expanding... or really the label not expanding.
The child widget also needs to expand, both directions.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Tue, 24 Jan 2012 00:00:36 +0000 |
parents | 36f0cfda3be3 |
children | 525c4c9d04c6 |
line wrap: on
line diff
--- a/gtk3/dw.c Mon Jan 23 23:40:11 2012 +0000 +++ b/gtk3/dw.c Tue Jan 24 00:00:36 2012 +0000 @@ -444,13 +444,16 @@ gtk_container_add (GTK_CONTAINER (button[2]), image); - /* Titlebar and buttons - GTK_FILL | GTK_EXPAND | GTK_SHRINK, 0 */ + /* Titlebar and buttons */ + gtk_widget_set_hexpand(top_event_box, TRUE); gtk_grid_attach (GTK_GRID (grid), top_event_box, 0, 0, 1, 1); gtk_grid_attach (GTK_GRID (grid), button[0], 1, 0, 1, 1); gtk_grid_attach (GTK_GRID (grid), button[1], 2, 0, 1, 1); gtk_grid_attach (GTK_GRID (grid), button[2], 3, 0, 1, 1); - /* Window contents - GTK_EXPAND | GTK_SHRINK | GTK_FILL, GTK_EXPAND | GTK_SHRINK | GTK_FILL */ + /* Window contents */ + gtk_widget_set_hexpand(child_widget_box, TRUE); + gtk_widget_set_vexpand(child_widget_box, TRUE); gtk_grid_attach (GTK_GRID (grid), child_widget_box, 0, 1, 4, 1); /* Bottom border */