After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 574935 - win32: gtk_window_set_geometry_hints() has no effect until the window is moved
win32: gtk_window_set_geometry_hints() has no effect until the window is moved
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Backend: Win32
2.14.x
Other All
: Normal normal
: ---
Assigned To: gtk-win32 maintainers
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2009-03-11 13:10 UTC by Sahasranaman MS
Modified: 2011-11-10 18:16 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
test case for blank window (589 bytes, text/plain)
2011-09-14 19:16 UTC, Ilya Murav'jov
Details

Description Sahasranaman MS 2009-03-11 13:10:17 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:
Comment 1 Murray Cumming 2009-07-20 11:24:47 UTC
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.
Comment 2 Ilya Murav'jov 2011-09-14 19:16:45 UTC
Created attachment 196535 [details]
test case for blank window
Comment 3 Ilya Murav'jov 2011-09-14 19:31:00 UTC
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?
Comment 4 Alexander Larsson 2011-11-10 18:16:36 UTC
Fixed in gtk-2-24 and in 2.24.8 release