[gaim-migrate @ 9848]

Wed, 26 May 2004 17:03:28 +0000

author
Nathan Walp <nwalp@pidgin.im>
date
Wed, 26 May 2004 17:03:28 +0000
changeset 9072
6a68a1d47ec7
parent 9071
a3b12b59a58b
child 9073
5df3c2ca3529

[gaim-migrate @ 9848]
the lazy way of doing this is noisy

src/gtkprefs.c file | annotate | diff | comparison | revisions
--- 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);

mercurial