Mercurial > pidgin
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 12203:0aeda1869b32 | 12204:2c7e79b6d7b2 |
|---|---|
| 171 | 171 |
| 172 | 172 |
| 173 static void set_timestamp(GtkWidget *spinner, void *null) { | 173 static void set_timestamp(GtkWidget *spinner, void *null) { |
| 174 int tm; | 174 int tm; |
| 175 | 175 |
| 176 tm = 0; | 176 tm = gtk_spin_button_get_value_as_int(GTK_SPIN_BUTTON(spinner)); |
| 177 | |
| 178 tm = CLAMP(gtk_spin_button_get_value_as_int(GTK_SPIN_BUTTON(spinner)), 1, G_MAXINT); | |
| 179 gaim_debug(GAIM_DEBUG_MISC, "timestamp", "setting time to %d mins\n", tm); | 177 gaim_debug(GAIM_DEBUG_MISC, "timestamp", "setting time to %d mins\n", tm); |
| 180 | 178 |
| 181 tm = tm * 60 * 1000; | 179 interval = tm * 60 * 1000; |
| 182 | |
| 183 interval = tm; | |
| 184 gaim_prefs_set_int("/plugins/gtk/timestamp/interval", interval); | 180 gaim_prefs_set_int("/plugins/gtk/timestamp/interval", interval); |
| 185 | 181 |
| 186 destroy_timer_list(); | 182 destroy_timer_list(); |
| 187 init_timer_list(); | 183 init_timer_list(); |
| 188 } | 184 } |
