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 662467 - tooltip: only update shape if the window is realized
tooltip: only update shape if the window is realized
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: .General
unspecified
Other All
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2011-10-22 16:46 UTC by Rui Matos
Modified: 2011-10-23 15:39 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
tooltip: only update shape if the window is realized (2.34 KB, patch)
2011-10-22 16:46 UTC, Rui Matos
committed Details | Review

Description Rui Matos 2011-10-22 16:46:15 UTC
If we get a composited-changed signal before the tooltip is ever realized we
have nothing to do.

This actually prevents a segfault in maybe_update_shape() because calling
gtk_widget_get_window() on a non-realized widget returns NULL.
Comment 1 Rui Matos 2011-10-22 16:46:17 UTC
Created attachment 199727 [details] [review]
tooltip: only update shape if the window is realized
Comment 2 Matthias Clasen 2011-10-23 04:32:10 UTC
Review of attachment 199727 [details] [review]:

Makes sense