changeset 9072:96bfa9bd110f

[gaim-migrate @ 9848] the lazy way of doing this is noisy committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Wed, 26 May 2004 17:03:28 +0000
parents 2233d33b2285
children cb4d9604d1e5
files src/gtkprefs.c
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkprefs.c	Wed May 26 05:25:06 2004 +0000
+++ b/src/gtkprefs.c	Wed May 26 17:03:28 2004 +0000
@@ -977,10 +977,15 @@
 	                                           "/gaim/gtk/conversations/placement_number",
 	                                           1, 50, sg);
 
+	if (strcmp("number",
+				gaim_prefs_get_string("/gaim/gtk/conversations/placement")))
+		gtk_widget_set_sensitive(label, FALSE);
+	else
+		gtk_widget_set_sensitive(label, TRUE);
+
 	placement_pref_id = gaim_prefs_connect_callback("/gaim/gtk/conversations/placement",
 	                                                conversation_placement_cb,
 	                                                label);
-	gaim_prefs_trigger_callback("/gaim/gtk/conversations/placement");
 
 	gaim_gtk_prefs_checkbox(_("Show _formatting toolbar"),
 				  "/gaim/gtk/conversations/show_formatting_toolbar", vbox);