changeset 1388:7dc0a8bb4dcb

[gaim-migrate @ 1398] Pounce stuff is not sensitive if it doesnt need to be. committer: Tailor Script <tailor@pidgin.im>
author Rob Flynn <gaim@robflynn.com>
date Fri, 05 Jan 2001 09:13:13 +0000
parents 595a844dbe0b
children 1a1cbe538c12
files src/dialogs.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/dialogs.c	Fri Jan 05 09:07:49 2001 +0000
+++ b/src/dialogs.c	Fri Jan 05 09:13:13 2001 +0000
@@ -1185,6 +1185,8 @@
                            GTK_SIGNAL_FUNC(do_new_bp), b);
         gtk_widget_show(b->messentry);
 
+	gtk_signal_connect(GTK_OBJECT(b->sendim), "clicked", GTK_SIGNAL_FUNC(toggle_sensitive), b->messentry);
+
 	b->command = gtk_check_button_new_with_label(_("Execute command on pounce")); 
 	gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(b->command), FALSE);
 	gtk_box_pack_start(GTK_BOX(vbox), b->command, FALSE, FALSE, 0);
@@ -1204,6 +1206,9 @@
                            GTK_SIGNAL_FUNC(do_new_bp), b);
         gtk_widget_show(b->commentry);
 
+	gtk_widget_set_sensitive(b->commentry, FALSE);
+	gtk_signal_connect(GTK_OBJECT(b->command), "clicked", GTK_SIGNAL_FUNC(toggle_sensitive), b->commentry);
+
 	sep = gtk_hseparator_new();
 	gtk_box_pack_start(GTK_BOX(vbox), sep, FALSE, FALSE, 0);
 	gtk_widget_show(sep);