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 631794 - Warn when calling gtk_window_parse_geometry() on an empty window
Warn when calling gtk_window_parse_geometry() on an empty window
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: .General
unspecified
Other All
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2010-10-10 02:31 UTC by Owen Taylor
Modified: 2010-10-11 18:17 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Warn when calling gtk_window_parse_geometry() on an empty window (1.50 KB, patch)
2010-10-10 02:31 UTC, Owen Taylor
committed Details | Review

Description Owen Taylor 2010-10-10 02:31:22 UTC
gtk_window_parse_geometry() gets the size of the window in order
to interpret the position of the window; calling it before, say,
calling gtk_widget_show_all() on a window is a subtle trap, so
add a warning in the case we can easily detect.
Comment 1 Owen Taylor 2010-10-10 02:31:24 UTC
Created attachment 172031 [details] [review]
Warn when calling gtk_window_parse_geometry() on an empty window
Comment 2 Matthias Clasen 2010-10-11 12:37:45 UTC
Review of attachment 172031 [details] [review]:

Good idea.
Comment 3 Owen Taylor 2010-10-11 18:17:01 UTC
Attachment 172031 [details] pushed as 519d758 - Warn when calling gtk_window_parse_geometry() on an empty window