aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwalters <walters@517b70f8-ed25-0410-8bf6-f5db08f7b76e>2008-06-09 20:03:38 +0000
committerwalters <walters@517b70f8-ed25-0410-8bf6-f5db08f7b76e>2008-06-09 20:03:38 +0000
commit6872bb94c4cb5082dba2c1199a8b09ba38465dbb (patch)
tree3af6e6734bd58308545704e90617b128427b5c13
parentd12ee12612c692f9722561de380e9be7777bdfc4 (diff)
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. git-svn-id: http://svn.gnome.org/svn/krb5-auth-dialog/trunk@78 517b70f8-ed25-0410-8bf6-f5db08f7b76e
-rw-r--r--ChangeLog8
-rw-r--r--src/krb5-auth-dialog.c6
2 files changed, 11 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index f77f120..a205318 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
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
* src/krb5-auth-dialog.c: Set up i18n correctly.
diff --git a/src/krb5-auth-dialog.c b/src/krb5-auth-dialog.c
index 7d9d0c2..38eeb6c 100644
--- a/src/krb5-auth-dialog.c
+++ b/src/krb5-auth-dialog.c
@@ -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 ();
}