[gtk+/wip/baedert/drawing: 250/348] scrolledwindow: Fix indicator hiding
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/drawing: 250/348] scrolledwindow: Fix indicator hiding
- Date: Sat, 8 Jul 2017 10:51:50 +0000 (UTC)
commit 5166b0b6f89e1204ef593c5fc5dbf65d543f0a4a
Author: Timm Bäder <mail baedert org>
Date: Sat Jun 17 08:08:18 2017 +0200
scrolledwindow: Fix indicator hiding
Only hiding the indicator if the widget is not mapped won't work.
gtk/gtkscrolledwindow.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkscrolledwindow.c b/gtk/gtkscrolledwindow.c
index 1481fea..a9c1303 100644
--- a/gtk/gtkscrolledwindow.c
+++ b/gtk/gtkscrolledwindow.c
@@ -3755,7 +3755,7 @@ indicator_set_fade (Indicator *indicator,
visible = indicator->current_pos != 0.0 || indicator->target_pos != 0.0;
- if (visible && !gtk_widget_get_mapped (indicator->scrollbar))
+ if (visible)
{
indicator->conceil_timer = g_timeout_add (INDICATOR_FADE_OUT_TIME, maybe_hide_indicator, indicator);
}
@@ -3769,7 +3769,6 @@ indicator_set_fade (Indicator *indicator,
if (changed)
{
gtk_widget_set_opacity (indicator->scrollbar, indicator->current_pos);
- gtk_widget_queue_draw (indicator->scrollbar);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]