src/gtkconv.c

changeset 7748
b7b0940aa0e3
parent 7741
eb20d901020b
child 7751
e0dc18b50181
--- 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 },

mercurial