[recipes] image viewer: work around lingering buttons
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [recipes] image viewer: work around lingering buttons
- Date: Sat, 6 May 2017 22:08:36 +0000 (UTC)
commit 30cd02a96ed5e8346ae089030bc9f1ad008d6d7a
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 8af3467..34355df 100644
--- a/src/gr-image-viewer.c
+++ b/src/gr-image-viewer.c
@@ -276,7 +276,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
@@ -293,7 +293,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]