pidgin: e10c4221: Move 'Minutes before becoming idle' abov...

paul at darkrain42.org paul at darkrain42.org
Sun Mar 22 23:11:31 EDT 2009


-----------------------------------------------------------------
Revision: e10c42213b8452c2fd4906e4ca501ef3eb83bd69
Ancestor: 2a4e39716818f99d597d2bdff9fe082fd0715b18
Author: paul at darkrain42.org
Date: 2009-03-13T03:04:07
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/e10c42213b8452c2fd4906e4ca501ef3eb83bd69

Modified files:
        pidgin/gtkprefs.c

ChangeLog: 

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.

-------------- next part --------------
============================================================
--- pidgin/gtkprefs.c	dbac992c97ec23116f8f19cc4010159208788192
+++ pidgin/gtkprefs.c	a9d5c8d53c7d2b0fbcc136a9650de49503fda612
@@ -2385,15 +2385,13 @@ away_page(void)
 	/* 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));
 	pidgin_add_widget_to_vbox(GTK_BOX(vbox), _("Change _status to:"), sg, menu, TRUE, &label);
@@ -2404,7 +2402,6 @@ away_page(void)
 
 	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);
 	}
 


More information about the Commits mailing list