Commit dcdb00ad authored by Matthias Clasen's avatar Matthias Clasen

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.
parent 92d34337
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment