Avoid warnings with tooltips on toplevels

This was reported for tooltips on statusicons in bug 625235, but
it was affecting regular toplevel windows as well.
This commit is contained in:
Matthias Clasen
2010-08-05 00:12:41 -04:00
parent 92d34337f7
commit dcdb00adb4

View File

@ -876,6 +876,8 @@ get_bounding_box (GtkWidget *widget,
gint x4, y4;
window = gtk_widget_get_parent_window (widget);
if (window == NULL)
window = gtk_widget_get_window (widget);
x = widget->allocation.x;
y = widget->allocation.y;