]> Pileus Git - ~andy/gtk/commit
tooltip: only update shape if the window is realized
authorRui Matos <tiagomatos@gmail.com>
Sat, 22 Oct 2011 16:38:29 +0000 (17:38 +0100)
committerRui Matos <tiagomatos@gmail.com>
Sun, 23 Oct 2011 15:26:18 +0000 (16:26 +0100)
commitd56484f6ed010d020df5d1f09b330746cc894480
treea7b1a68ec78752bfa5c4063ea1b616ee7d8034a6
parent5c4f2ef0c1e658827091aadf4fc3c4d5f5964785
tooltip: only update shape if the window is realized

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.

https://bugzilla.gnome.org/show_bug.cgi?id=662467
gtk/gtktooltip.c