[gtk/wip/baedert/gl-rework: 6/7] scrolledwindow: Don't snapshot junction if we use indicators
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/gl-rework: 6/7] scrolledwindow: Don't snapshot junction if we use indicators
- Date: Mon, 30 Dec 2019 10:40:38 +0000 (UTC)
commit e3ff45c2d3ff53a3982b79e890dccc3bcb0fb9d3
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]