diff pidgin/gtkprefs.c @ 26265:e6a7f95cbcc3

Move 'Minutes before becoming idle' above 'Change status when idle' Minutes before becoming idle has an effect even when we're not doing autoaway, so it should not be disabled then.
author Paul Aurich <paul@darkrain42.org>
date Fri, 13 Mar 2009 03:04:07 +0000
parents 4b8c4870b13a
children f5f08111da52 1688f7e15530
line wrap: on
line diff
--- a/pidgin/gtkprefs.c	Fri Mar 13 03:02:01 2009 +0000
+++ b/pidgin/gtkprefs.c	Fri Mar 13 03:04:07 2009 +0000
@@ -2385,14 +2385,12 @@
 	/* Auto-away stuff */
 	vbox = pidgin_make_frame(ret, _("Auto-away"));
 
-	button = pidgin_prefs_checkbox(_("Change status when _idle"),
-						   "/purple/away/away_when_idle", vbox);
-
 	select = pidgin_prefs_labeled_spin_button(vbox,
 			_("_Minutes before becoming idle:"), "/purple/away/mins_before_away",
 			1, 24 * 60, sg);
-	g_signal_connect(G_OBJECT(button), "clicked",
-					 G_CALLBACK(pidgin_toggle_sensitive), select);
+
+	button = pidgin_prefs_checkbox(_("Change status when _idle"),
+						   "/purple/away/away_when_idle", vbox);
 
 	/* TODO: Show something useful if we don't have any saved statuses. */
 	menu = pidgin_status_menu(purple_savedstatus_get_idleaway(), G_CALLBACK(set_idle_away));
@@ -2404,7 +2402,6 @@
 
 	if (!purple_prefs_get_bool("/purple/away/away_when_idle")) {
 		gtk_widget_set_sensitive(GTK_WIDGET(menu), FALSE);
-		gtk_widget_set_sensitive(GTK_WIDGET(select), FALSE);
 		gtk_widget_set_sensitive(GTK_WIDGET(label), FALSE);
 	}