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:
@ -1832,6 +1832,8 @@ gtk_scrolled_window_draw (GtkWidget *widget,
|
|||||||
GtkStyleContext *context;
|
GtkStyleContext *context;
|
||||||
gboolean scrollbars_within_bevel;
|
gboolean scrollbars_within_bevel;
|
||||||
|
|
||||||
|
if (gtk_cairo_should_draw_window (cr, gtk_widget_get_window (widget)))
|
||||||
|
{
|
||||||
context = gtk_widget_get_style_context (widget);
|
context = gtk_widget_get_style_context (widget);
|
||||||
gtk_scrolled_window_relative_allocation (widget, &relative_allocation);
|
gtk_scrolled_window_relative_allocation (widget, &relative_allocation);
|
||||||
|
|
||||||
@ -1873,6 +1875,7 @@ gtk_scrolled_window_draw (GtkWidget *widget,
|
|||||||
relative_allocation.y,
|
relative_allocation.y,
|
||||||
relative_allocation.width,
|
relative_allocation.width,
|
||||||
relative_allocation.height);
|
relative_allocation.height);
|
||||||
|
}
|
||||||
|
|
||||||
GTK_WIDGET_CLASS (gtk_scrolled_window_parent_class)->draw (widget, cr);
|
GTK_WIDGET_CLASS (gtk_scrolled_window_parent_class)->draw (widget, cr);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user