[gnome-control-center] [typing-break] Increase delay for activating the postpone button to 5s



commit 1fd84f367269fae5b30bad671564aad35656ab6b
Author: Tim Waugh <twaugh redhat com>
Date:   Sun Nov 8 11:14:35 2009 +0100

    [typing-break] Increase delay for activating the postpone button to 5s
    
    When the typing break screen is displayed and break postponements are enabled,
    there is a 500ms delay before the 'Postpone' button becomes sensitive.
    Increase that delay to 5000ms (5s).
    
    Rationale:
    When I'm really focused on something I will click the 'Postpone' button, or
    even use the keyboard short-cut Alt-P, so that I can carry on with what I was
    doing.  Then later I won't even remember having done it.  This can happen
    several times in a row.  I'm sure it happens this way for other people too.
    
    With a 5s delay before a break can be postponed it gives the user time to think
    about whether they really need to carry on with what they were doing or if it
    can wait after all.
    
    Closes bug #597086.

 typing-break/drw-break-window.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/typing-break/drw-break-window.c b/typing-break/drw-break-window.c
index 25e5d43..813c5b9 100644
--- a/typing-break/drw-break-window.c
+++ b/typing-break/drw-break-window.c
@@ -199,9 +199,9 @@ drw_break_window_init (DrwBreakWindow *window)
 			g_source_remove (priv->postpone_sensitize_id);
 		}
 
-		priv->postpone_sensitize_id = g_timeout_add (500,
-							     (GSourceFunc) postpone_sensitize_cb,
-							     window);
+		priv->postpone_sensitize_id = g_timeout_add_seconds (5,
+								     (GSourceFunc) postpone_sensitize_cb,
+								     window);
 
 		g_signal_connect (priv->postpone_button,
 				  "clicked",



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]