changeset 32694:3ca7b653785a

This existing Send To menu stuff works already, and isn't really deprecated yet, so might as well leave it as is.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Sun, 09 Oct 2011 07:09:39 +0000
parents c9b09afd79e7
children 391a75e48641
files pidgin/gtkconv.c
diffstat 1 files changed, 2 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- 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;