GNOME Bugzilla – Bug 574935
win32: gtk_window_set_geometry_hints() has no effect until the window is moved
Last modified: 2011-11-10 18:16:36 UTC
Please describe the problem: In gtkmm for Win32, compiled in MinGW, when we call set_geometry_hints, when the application starts running, it doesn't start refreshing automatically. We have to move the window atleast once, then it starts working properly. Works normally when set_geometry_hints is not called. Steps to reproduce: 1. Get gtkmm in windows with mingw32 2. create applicaton and call set_geometry_hints 3. compile and run Actual results: A window shows up, but doesn't show the changes on the gui produced by the code isn't reflected in the gui until you move it once Expected results: A window in its initial state will show up, and it wont show any changes produced in it through the code, until the window is moved once. Does this happen every time? Yes Other information:
Sorry for the delay in replying. However, I am sure this is a GTK+ bug rather than a gtkmm bug. Reassigning. Hopefully you can work around this by calling set_geometry_hints() before show()ing the window.
Created attachment 196535 [details] test case for blank window
I have issues with the gtk_window_set_geometry_hints() for win32, too; see test case in the attachment. Please describe the problem: if one applies gtk_window_set_resizable(false) and gtk_window_set_geometry_hints(GDK_HINT_MIN_SIZE) to a GtkDialog for win32 then it will be blank until it is moved. See the screenshot at http://forum.bombono.org/viewtopic.php?f=1&t=608 . Any clues?
Fixed in gtk-2-24 and in 2.24.8 release