[gtk+] scrolledwindow: Don't doubly draw overlay-indicator scrollbars
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] scrolledwindow: Don't doubly draw overlay-indicator scrollbars
- Date: Thu, 13 Nov 2014 19:34:37 +0000 (UTC)
commit b591cacc3983d9bcb42f523a59de64109eee93af
Author: Carlos Garnacho <carlosg gnome org>
Date: Thu Nov 13 20:30:52 2014 +0100
scrolledwindow: Don't doubly draw overlay-indicator scrollbars
The scrollbars are still internal children of the GtkScrolledWindow
and handled in ::forall(), no need to propagate draw here again
after chaining up in ::draw().
gtk/gtkscrolledwindow.c | 8 --------
1 files changed, 0 insertions(+), 8 deletions(-)
---
diff --git a/gtk/gtkscrolledwindow.c b/gtk/gtkscrolledwindow.c
index 8ea03d5..672d8eb 100644
--- a/gtk/gtkscrolledwindow.c
+++ b/gtk/gtkscrolledwindow.c
@@ -1876,14 +1876,6 @@ gtk_scrolled_window_draw (GtkWidget *widget,
GTK_WIDGET_CLASS (gtk_scrolled_window_parent_class)->draw (widget, cr);
- if (priv->hindicator.enabled &&
- gtk_cairo_should_draw_window (cr, priv->hindicator.window))
- gtk_container_propagate_draw (GTK_CONTAINER (scrolled_window), priv->hscrollbar, cr);
-
- if (priv->vindicator.enabled &&
- gtk_cairo_should_draw_window (cr, priv->vindicator.window))
- gtk_container_propagate_draw (GTK_CONTAINER (scrolled_window), priv->vscrollbar, cr);
-
if (gtk_cairo_should_draw_window (cr, gtk_widget_get_window (widget)))
gtk_scrolled_window_draw_overshoot (scrolled_window, cr);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]