[recipes/recipes-1.0] image viewer: work around lingering buttons
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [recipes/recipes-1.0] image viewer: work around lingering buttons
- Date: Sun, 7 May 2017 20:16:06 +0000 (UTC)
commit 396a69135dd6c10835247aec588095bee2f10a05
Author: Matthias Clasen <mclasen redhat com>
Date: Sat May 6 18:07:37 2017 -0400
image viewer: work around lingering buttons
This change does not enirely fix the issue of buttons
lingering, but it keeps the timeout in place that
removes them after a while, and it shortens the timeout
from 5 to 2 seconds.
src/gr-image-viewer.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/gr-image-viewer.c b/src/gr-image-viewer.c
index 606a3dd..6282859 100644
--- a/src/gr-image-viewer.c
+++ b/src/gr-image-viewer.c
@@ -258,7 +258,7 @@ static void
reset_hide_timeout (GrImageViewer *viewer)
{
remove_hide_timeout (viewer);
- viewer->hide_timeout = g_timeout_add (5000, hide_timeout, viewer);
+ viewer->hide_timeout = g_timeout_add (2000, hide_timeout, viewer);
}
static gboolean
@@ -275,7 +275,6 @@ enter_leave_notify (GtkWidget *widget,
}
else {
hide_controls (viewer);
- remove_hide_timeout (viewer);
}
return FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]