mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-17 06:10:15 +00:00
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:
parent
da8fdab87b
commit
6d5f2ff87e
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user