gnome-settings-daemon r794 - in trunk: . plugins/xrandr



Author: federico
Date: Thu Mar 19 17:53:57 2009
New Revision: 794
URL: http://svn.gnome.org/viewvc/gnome-settings-daemon?rev=794&view=rev

Log:
(RANDR) Revert the use of g_timeout_add_seconds() as it doesn't make sense for user-visible second ticks

Signed-off-by: Federico Mena Quintero <federico novell com>

Modified:
   trunk/ChangeLog
   trunk/plugins/xrandr/gsd-xrandr-manager.c

Modified: trunk/plugins/xrandr/gsd-xrandr-manager.c
==============================================================================
--- trunk/plugins/xrandr/gsd-xrandr-manager.c	(original)
+++ trunk/plugins/xrandr/gsd-xrandr-manager.c	Thu Mar 19 17:53:57 2009
@@ -212,7 +212,7 @@
                                                  GTK_MESSAGE_QUESTION,
                                                  GTK_BUTTONS_NONE,
                                                  _("Does the display look OK?"));
-        timeout.countdown = 10;
+        timeout.countdown = 15;
         print_countdown_text (&timeout);
 
         gtk_dialog_add_button (GTK_DIALOG (timeout.dialog), _("_Restore Previous Configuration"), GTK_RESPONSE_CANCEL);
@@ -224,9 +224,10 @@
                           &timeout);
 
         gtk_widget_show_all (timeout.dialog);
-        timeout_id = g_timeout_add_seconds (1,
-                                            timeout_cb,
-                                            &timeout);
+        /* We don't use g_timeout_add_seconds() since we actually care that the user sees "real" second ticks in the dialog */
+        timeout_id = g_timeout_add (1000,
+                                    timeout_cb,
+                                    &timeout);
         gtk_main ();
 
         gtk_widget_destroy (timeout.dialog);



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