From 6872bb94c4cb5082dba2c1199a8b09ba38465dbb Mon Sep 17 00:00:00 2001 From: walters Date: Mon, 9 Jun 2008 20:03:38 +0000 Subject: 2008-06-09 Colin Walters MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/krb5-auth-dialog.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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 (); } -- cgit v1.2.3