# HG changeset patch # User Richard Laager # Date 1132796248 0 # Node ID 2c7e79b6d7b20cdc933fb7953cf1dc245477d551 # Parent 0aeda1869b322878a651d6014bbc71fd57477912 [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 diff -r 0aeda1869b32 -r 2c7e79b6d7b2 plugins/gestures/stroke-draw.c --- 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; } diff -r 0aeda1869b32 -r 2c7e79b6d7b2 plugins/timestamp.c --- 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();