[gtk] 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] scrolledwindow: Don't snapshot junction if we use indicators
- Date: Tue, 7 Jan 2020 16:41:34 +0000 (UTC)
commit 108aac9ee3fb866d53e9481b16ed1296e85b836c
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]