GNOME Bugzilla – Bug 697275
gtk_window_set_default_size() doesn't work anymore
Last modified: 2013-04-08 10:34:45 UTC
It worked correctly in F18 (GTK+ 3.6) but regressed in 3.8 and current master. Instead of using the size set using gtk_window_set_default_size(), it seems to use the minimum size for the window, based on the widgets inside it.
There needs to be a different constraint that makes this go wrong. Because I just wrote a testcase and the test works fine. See https://git.gnome.org/browse/gtk+/commit/?id=8687fbc15e1ec68305f7fdce2f94d56d55c7d617
I should mention that using type=popup in reftests is something I do in reftests to avoid WM interaction so we can screenshot faster. I tried with a normal window and it worked fine, too.
It looks like it wasn't gtk_window_set_default_size() that was buggy (although I'm certain to have checked that...) but gtk_window_get_size() not working as expected. gtk_window_compute_configure_request() (as used in gtk_window_get_size()) doesn't return the last configure request sent when the window is unmapped), which is tracked in bug 696882. Thanks for adding a test case though :)