changeset 3168:255155a1b190

[gaim-migrate @ 3184] Make Ctrl-W optional for people who like to use it to delete words. Rob's buying a hose clamp. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Thu, 25 Apr 2002 05:57:45 +0000
parents dab4da8ca29a
children afcd06a92da0
files src/conversation.c src/prefs.c
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/conversation.c	Thu Apr 25 05:48:20 2002 +0000
+++ b/src/conversation.c	Thu Apr 25 05:57:45 2002 +0000
@@ -1016,7 +1016,7 @@
 			gtk_imhtml_clear(GTK_IMHTML(c->text));
 			g_string_free(c->history, TRUE);
 			c->history = g_string_new("");
-		} else if (event->keyval == 'w') {
+		} else if ((event->keyval == 'w') && (convo_options & OPT_CONVO_CTL_W_CLOSES)) {
 			gtk_signal_emit_stop_by_name(GTK_OBJECT(entry), "key_press_event");
 			close_callback(c->close, c);
 			c = NULL;
--- a/src/prefs.c	Thu Apr 25 05:48:20 2002 +0000
+++ b/src/prefs.c	Thu Apr 25 05:57:45 2002 +0000
@@ -681,6 +681,7 @@
 	gaim_button(_("Enter sends message"), &convo_options, OPT_CONVO_ENTER_SENDS, vbox);
 	gaim_button(_("Control-Enter sends message"), &convo_options, OPT_CONVO_CTL_ENTER, vbox);
 	gaim_button(_("Escape closes window"), &convo_options, OPT_CONVO_ESC_CAN_CLOSE, vbox);
+	gaim_button(_("Control-W closes window"), &convo_options, OPT_CONVO_CTL_W_CLOSES, vbox);
 
 	vbox = gtk_vbox_new(TRUE, 5);
 	gtk_box_pack_start(GTK_BOX(hbox), vbox, TRUE, TRUE, 5);