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:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user