changeset 7748:8165ab2a00e6

[gaim-migrate @ 8393] Un-changeable keybindings which I find personally irritating are uncool. One down. Thanks to hasse for motivating me to actually fix this, and to deryni for telling me exactly where to look. committer: Tailor Script <tailor@pidgin.im>
author Ethan Blanton <elb@pidgin.im>
date Thu, 04 Dec 2003 15:10:13 +0000
parents 3906c0957d4f
children ddda7537918e
files src/gtkconv.c
diffstat 1 files changed, 11 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkconv.c	Thu Dec 04 12:20:30 2003 +0000
+++ b/src/gtkconv.c	Thu Dec 04 15:10:13 2003 +0000
@@ -703,6 +703,12 @@
 }
 
 static void
+menu_new_conv_cb(gpointer data, guint action, GtkWidget *widget)
+{
+	show_im_dialog();
+}
+
+static void
 menu_save_as_cb(gpointer data, guint action, GtkWidget *widget)
 {
 	GaimConvWindow *win = (GaimConvWindow *)data;
@@ -1480,11 +1486,6 @@
 			g_string_free(conv->history, TRUE);
 			conv->history = g_string_new("");
 		}
-		else if (event->keyval == 'n') {
-			g_signal_stop_emission_by_name(G_OBJECT(entry), "key_press_event");
-
-			show_im_dialog();
-		}
 		else if (event->keyval == 'z') {
 			g_signal_stop_emission_by_name(G_OBJECT(entry), "key_press_event");
 
@@ -2883,6 +2884,11 @@
 	/* Conversation menu */
 	{ N_("/_Conversation"), NULL, NULL, 0, "<Branch>" },
 
+	{ N_("/Conversation/_New Conversation..."), NULL, menu_new_conv_cb,
+	  0, "<StockItem>", GTK_STOCK_NEW },
+
+        { "/Conversation/sep0", NULL, NULL, 0, "<Separator>" },
+
 	{ N_("/Conversation/_Save As..."), NULL, menu_save_as_cb, 0,
 	  "<StockItem>", GTK_STOCK_SAVE_AS },
 	{ N_("/Conversation/View _Log"), NULL, menu_view_log_cb, 0, NULL },