krb5-auth-dialog r78 - in trunk: . src



Author: walters
Date: Mon Jun  9 20:03:38 2008
New Revision: 78
URL: http://svn.gnome.org/viewvc/krb5-auth-dialog?rev=78&view=rev

Log:
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.




Modified:
   trunk/ChangeLog
   trunk/src/krb5-auth-dialog.c

Modified: trunk/src/krb5-auth-dialog.c
==============================================================================
--- trunk/src/krb5-auth-dialog.c	(original)
+++ trunk/src/krb5-auth-dialog.c	Mon Jun  9 20:03:38 2008
@@ -274,8 +274,8 @@
 		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 @@
 		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 ();
 	}



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