Thu, 24 Nov 2005 01:37:28 +0000
[gaim-migrate @ 14506]
A couple code cleanups inspired by GCC warnings.... Don't ask! :) ... Unless this is wrong, in which case yell at me.
| plugins/gestures/stroke-draw.c | file | annotate | diff | comparison | revisions | |
| plugins/timestamp.c | file | annotate | diff | comparison | revisions |
--- a/plugins/gestures/stroke-draw.c Thu Nov 24 01:12:03 2005 +0000 +++ b/plugins/gestures/stroke-draw.c Thu Nov 24 01:37:28 2005 +0000 @@ -194,9 +194,9 @@ _gstroke_canonical (result, metrics); gstroke_execute (widget, result); - return FALSE; } - return TRUE; + return FALSE; + default: break; }
--- 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();