scrolledwindow: Only render background/frame on the widget window

Otherwise it is rendered too on each indicator window, possibly bringing
in an unintended opaque background there. Better seen with git show -b.
This commit is contained in:
Carlos Garnacho 2014-11-17 14:47:57 +01:00
parent da8fdab87b
commit 6d5f2ff87e

View File

@ -1832,6 +1832,8 @@ gtk_scrolled_window_draw (GtkWidget *widget,
GtkStyleContext *context;
gboolean scrollbars_within_bevel;
if (gtk_cairo_should_draw_window (cr, gtk_widget_get_window (widget)))
{
context = gtk_widget_get_style_context (widget);
gtk_scrolled_window_relative_allocation (widget, &relative_allocation);
@ -1873,6 +1875,7 @@ gtk_scrolled_window_draw (GtkWidget *widget,
relative_allocation.y,
relative_allocation.width,
relative_allocation.height);
}
GTK_WIDGET_CLASS (gtk_scrolled_window_parent_class)->draw (widget, cr);