comparison src/gtkconv.c @ 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 cbf4725c60aa
children d691cb95ee67
comparison
equal deleted inserted replaced
7747:3906c0957d4f 7748:8165ab2a00e6
701 if (info != NULL) 701 if (info != NULL)
702 gtk_widget_grab_focus(GTK_COMBO(info->entry)->entry); 702 gtk_widget_grab_focus(GTK_COMBO(info->entry)->entry);
703 } 703 }
704 704
705 static void 705 static void
706 menu_new_conv_cb(gpointer data, guint action, GtkWidget *widget)
707 {
708 show_im_dialog();
709 }
710
711 static void
706 menu_save_as_cb(gpointer data, guint action, GtkWidget *widget) 712 menu_save_as_cb(gpointer data, guint action, GtkWidget *widget)
707 { 713 {
708 GaimConvWindow *win = (GaimConvWindow *)data; 714 GaimConvWindow *win = (GaimConvWindow *)data;
709 715
710 save_convo(NULL, gaim_conv_window_get_active_conversation(win)); 716 save_convo(NULL, gaim_conv_window_get_active_conversation(win));
1478 if (event->keyval == 'l') { 1484 if (event->keyval == 'l') {
1479 gtk_imhtml_clear(GTK_IMHTML(gtkconv->imhtml)); 1485 gtk_imhtml_clear(GTK_IMHTML(gtkconv->imhtml));
1480 g_string_free(conv->history, TRUE); 1486 g_string_free(conv->history, TRUE);
1481 conv->history = g_string_new(""); 1487 conv->history = g_string_new("");
1482 } 1488 }
1483 else if (event->keyval == 'n') {
1484 g_signal_stop_emission_by_name(G_OBJECT(entry), "key_press_event");
1485
1486 show_im_dialog();
1487 }
1488 else if (event->keyval == 'z') { 1489 else if (event->keyval == 'z') {
1489 g_signal_stop_emission_by_name(G_OBJECT(entry), "key_press_event"); 1490 g_signal_stop_emission_by_name(G_OBJECT(entry), "key_press_event");
1490 1491
1491 gtk_window_iconify(GTK_WINDOW(gtkwin->window)); 1492 gtk_window_iconify(GTK_WINDOW(gtkwin->window));
1492 } 1493 }
2880 2881
2881 static GtkItemFactoryEntry menu_items[] = 2882 static GtkItemFactoryEntry menu_items[] =
2882 { 2883 {
2883 /* Conversation menu */ 2884 /* Conversation menu */
2884 { N_("/_Conversation"), NULL, NULL, 0, "<Branch>" }, 2885 { N_("/_Conversation"), NULL, NULL, 0, "<Branch>" },
2886
2887 { N_("/Conversation/_New Conversation..."), NULL, menu_new_conv_cb,
2888 0, "<StockItem>", GTK_STOCK_NEW },
2889
2890 { "/Conversation/sep0", NULL, NULL, 0, "<Separator>" },
2885 2891
2886 { N_("/Conversation/_Save As..."), NULL, menu_save_as_cb, 0, 2892 { N_("/Conversation/_Save As..."), NULL, menu_save_as_cb, 0,
2887 "<StockItem>", GTK_STOCK_SAVE_AS }, 2893 "<StockItem>", GTK_STOCK_SAVE_AS },
2888 { N_("/Conversation/View _Log"), NULL, menu_view_log_cb, 0, NULL }, 2894 { N_("/Conversation/View _Log"), NULL, menu_view_log_cb, 0, NULL },
2889 { N_("/Conversation/Search..."), NULL, menu_search_cb, 0, "<StockItem>", GTK_STOCK_FIND }, 2895 { N_("/Conversation/Search..."), NULL, menu_search_cb, 0, "<StockItem>", GTK_STOCK_FIND },