# HG changeset patch # User Elliott Sales de Andrade # Date 1318144179 0 # Node ID 3ca7b653785a394dcbef913ca5a2cf14ecd6e857 # Parent c9b09afd79e7f7c9128dd4ec59e7dc3ed574dbaa This existing Send To menu stuff works already, and isn't really deprecated yet, so might as well leave it as is. diff -r c9b09afd79e7 -r 3ca7b653785a pidgin/gtkconv.c --- a/pidgin/gtkconv.c Sun Oct 09 06:01:04 2011 +0000 +++ b/pidgin/gtkconv.c Sun Oct 09 07:09:39 2011 +0000 @@ -3824,7 +3824,6 @@ if (!(b = purple_find_buddy(account, purple_conversation_get_name(conv)))) return FALSE; -#if 0 /* TODO */ gtk_widget_show(win->menu.send_to); menu = gtk_menu_item_get_submenu(GTK_MENU_ITEM(win->menu.send_to)); @@ -3846,7 +3845,6 @@ break; } } -#endif return FALSE; } @@ -3956,7 +3954,6 @@ static void generate_send_to_items(PidginWindow *win) { -#if 0 /* TODO */ GtkWidget *menu; GSList *group = NULL; GtkSizeGroup *sg = gtk_size_group_new(GTK_SIZE_GROUP_HORIZONTAL); @@ -4042,7 +4039,6 @@ if (!group) gtk_widget_set_sensitive(win->menu.send_to, FALSE); update_send_to_selection(win); -#endif } static const char * @@ -9022,9 +9018,8 @@ /* Right click was pressed. Popup the context menu. */ GtkWidget *menu = gtk_menu_new(), *sub; gboolean populated = populate_menu_with_options(menu, gtkconv, TRUE); -#if 0 /* TODO */ + sub = gtk_menu_item_get_submenu(GTK_MENU_ITEM(gtkconv->win->menu.send_to)); - if (sub && GTK_WIDGET_IS_SENSITIVE(gtkconv->win->menu.send_to)) { GtkWidget *item = gtk_menu_item_new_with_mnemonic(_("S_end To")); if (populated) @@ -9037,7 +9032,7 @@ gtk_widget_destroy(menu); return FALSE; } -#endif + gtk_widget_show_all(menu); gtk_menu_popup(GTK_MENU(menu), NULL, NULL, NULL, NULL, e->button, e->time); return TRUE;