changeset 6064:ed3c3c38e182

[gaim-migrate @ 6514] clee|work (who I suppose is at work right now) points out that we allow the Idle Maker plugin to set idle times of sizes up to an int, whereas OSCAR only accepts them up to a short int. Actually, he just complained that it wasn't working and I explained that it was overflowing. I'm not quite sure he understands, but this is a nice fix, regardless. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Tue, 08 Jul 2003 23:07:13 +0000
parents 5239a3b4ab33
children 3a40666c08b4
files plugins/idle.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/idle.c	Tue Jul 08 06:11:49 2003 +0000
+++ b/plugins/idle.c	Tue Jul 08 23:07:13 2003 +0000
@@ -18,7 +18,7 @@
 
 static void set_idle(GtkWidget *button, GtkWidget *spinner) {
 	time_t t;
-	int tm = CLAMP(gtk_spin_button_get_value_as_int(GTK_SPIN_BUTTON(spinner)), 0, G_MAXINT);
+	int tm = CLAMP(gtk_spin_button_get_value_as_int(GTK_SPIN_BUTTON(spinner)), 0, G_MAXSHORT);
 	GaimAccount *account;
 
 	if (!gc)