Mercurial > pidgin
diff plugins/timestamp.c @ 12204:2c7e79b6d7b2
[gaim-migrate @ 14506]
A couple code cleanups inspired by GCC warnings.... Don't ask! :) ... Unless this is wrong, in which case yell at me.
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Thu, 24 Nov 2005 01:37:28 +0000 |
parents | 7e0ad3b6882a |
children | bc45ab9756b5 |
line wrap: on
line diff
--- a/plugins/timestamp.c Thu Nov 24 01:12:03 2005 +0000 +++ b/plugins/timestamp.c Thu Nov 24 01:37:28 2005 +0000 @@ -173,14 +173,10 @@ static void set_timestamp(GtkWidget *spinner, void *null) { int tm; - tm = 0; - - tm = CLAMP(gtk_spin_button_get_value_as_int(GTK_SPIN_BUTTON(spinner)), 1, G_MAXINT); + tm = gtk_spin_button_get_value_as_int(GTK_SPIN_BUTTON(spinner)); gaim_debug(GAIM_DEBUG_MISC, "timestamp", "setting time to %d mins\n", tm); - tm = tm * 60 * 1000; - - interval = tm; + interval = tm * 60 * 1000; gaim_prefs_set_int("/plugins/gtk/timestamp/interval", interval); destroy_timer_list();