comparison plugins/idle.c @ 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 8f94cce8faa5
comparison
equal deleted inserted replaced
6063:5239a3b4ab33 6064:ed3c3c38e182
16 16
17 static GaimConnection *gc = NULL; 17 static GaimConnection *gc = NULL;
18 18
19 static void set_idle(GtkWidget *button, GtkWidget *spinner) { 19 static void set_idle(GtkWidget *button, GtkWidget *spinner) {
20 time_t t; 20 time_t t;
21 int tm = CLAMP(gtk_spin_button_get_value_as_int(GTK_SPIN_BUTTON(spinner)), 0, G_MAXINT); 21 int tm = CLAMP(gtk_spin_button_get_value_as_int(GTK_SPIN_BUTTON(spinner)), 0, G_MAXSHORT);
22 GaimAccount *account; 22 GaimAccount *account;
23 23
24 if (!gc) 24 if (!gc)
25 return; 25 return;
26 26