scrolledwindow: Fix indicator hiding

Only hiding the indicator if the widget is not mapped won't work.
This commit is contained in:
Timm Bäder 2017-06-17 08:08:18 +02:00 committed by Matthias Clasen
parent ac4660b4c4
commit 3077198de0

View File

@ -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);
}
}