[gtk/wip/baedert/gl-rework: 5/11] scrolledwindow: Don't snapshot junction if we use indicators



commit b14d0e1d2bae1d9eb6390d58a01b19f6651db2b7
Author: Timm Bäder <mail baedert org>
Date:   Mon Dec 30 10:47:53 2019 +0100

    scrolledwindow: Don't snapshot junction if we use indicators
    
    The junction doesn't make sense when we use indicators, since the
    scrollbars overlap anyway. Not snappshotting it anymore has no visual
    effect since it's being drawn below the scrollbars anyway.

 gtk/gtkscrolledwindow.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gtk/gtkscrolledwindow.c b/gtk/gtkscrolledwindow.c
index 34cc078167..093e1d2d10 100644
--- a/gtk/gtkscrolledwindow.c
+++ b/gtk/gtkscrolledwindow.c
@@ -2801,7 +2801,8 @@ gtk_scrolled_window_snapshot (GtkWidget   *widget,
   GtkScrolledWindowPrivate *priv = gtk_scrolled_window_get_instance_private (scrolled_window);
 
   if (priv->hscrollbar_visible &&
-      priv->vscrollbar_visible)
+      priv->vscrollbar_visible &&
+      !priv->use_indicators)
     gtk_scrolled_window_snapshot_scrollbars_junction (scrolled_window, snapshot);
 
   GTK_WIDGET_CLASS (gtk_scrolled_window_parent_class)->snapshot (widget, snapshot);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]