# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1327363236 0 # Node ID 245e6bf51317586c3ae491da9bf3dc3c3503b92d # Parent 36f0cfda3be3423f037a1db1307639964f023b06 Fix GTK3 MDI titlebar buttons expanding... or really the label not expanding. The child widget also needs to expand, both directions. diff -r 36f0cfda3be3 -r 245e6bf51317 gtk3/dw.c --- 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 */