From: Sean E. <sea...@us...> - 2003-07-08 23:07:16
|
Update of /cvsroot/gaim/gaim/plugins In directory sc8-pr-cvs1:/tmp/cvs-serv7262/plugins Modified Files: idle.c Log Message: 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. Index: idle.c =================================================================== RCS file: /cvsroot/gaim/gaim/plugins/idle.c,v retrieving revision 1.22 retrieving revision 1.23 diff -u -d -r1.22 -r1.23 --- idle.c 8 Jul 2003 06:11:47 -0000 1.22 +++ idle.c 8 Jul 2003 23:07:13 -0000 1.23 @@ -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) |