2008-06-09 Colin Walters <walters@verbum.org>
authorwalters <walters@517b70f8-ed25-0410-8bf6-f5db08f7b76e>
Mon, 9 Jun 2008 20:03:38 +0000 (20:03 +0000)
committerwalters <walters@517b70f8-ed25-0410-8bf6-f5db08f7b76e>
Mon, 9 Jun 2008 20:03:38 +0000 (20:03 +0000)
Bug 534867: should use g_timeout_add_seconds

* src/krb5-auth-dialog.c: Save power with
g_timeout_add_seconds.
Patch from from Guido Günther.

git-svn-id: http://svn.gnome.org/svn/krb5-auth-dialog/trunk@78 517b70f8-ed25-0410-8bf6-f5db08f7b76e

ChangeLog
src/krb5-auth-dialog.c

index f77f1208bb8b3103a9f005546d9f3fc54d516456..a205318e6c5f2247d704574300e8b37dca289bd4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2008-06-09  Colin Walters  <walters@verbum.org>
+
+       Bug 534867: should use g_timeout_add_seconds
+
+       * src/krb5-auth-dialog.c: Save power with
+       g_timeout_add_seconds.
+       Patch from from Guido Günther.
+
 2008-06-09  Colin Walters  <walters@verbum.org>
 
        Bug 534736: make i18n work
index 7d9d0c21b1590451fdadceaba8fe7e40c5d912cd..38eeb6c47788042dafdcc0afa72d543b250e25fd 100644 (file)
@@ -274,8 +274,8 @@ auth_dialog_prompter (krb5_context ctx,
                gtk_widget_grab_focus (entry);
 
                wrong_label = glade_xml_get_widget (xml, "krb5_wrong_label");
-               source_id = g_timeout_add (5000, (GSourceFunc)krb5_auth_dialog_wrong_label_update_expiry,
-                                          wrong_label);
+               source_id = g_timeout_add_seconds (5, (GSourceFunc)krb5_auth_dialog_wrong_label_update_expiry,
+                                                  wrong_label);
 
                response = gtk_dialog_run (GTK_DIALOG (dialog));
                switch (response)
@@ -671,7 +671,7 @@ main (int argc, char *argv[])
                gtk_window_set_default_icon_name ("gtk-dialog-authentication");
 
                if (credentials_expiring (NULL)) {
-                       g_timeout_add (CREDENTIAL_CHECK_INTERVAL * 1000, (GSourceFunc)credentials_expiring, NULL);
+                       g_timeout_add_seconds (CREDENTIAL_CHECK_INTERVAL * 1000, (GSourceFunc)credentials_expiring, NULL);
                }
                gtk_main ();
        }