Mercurial > pidgin.yaz
changeset 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 | 0aeda1869b32 |
children | 0e87d5e28888 |
files | plugins/gestures/stroke-draw.c plugins/timestamp.c |
diffstat | 2 files changed, 4 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- 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();