cpw.qulogic.gtk3: 3cf91b65: This existing Send To menu stuff works a...

qulogic at pidgin.im qulogic at pidgin.im
Sun Oct 9 04:32:09 EDT 2011


----------------------------------------------------------------------
Revision: 3cf91b6553ba9e254c2fd65eb1c7cbb02c4634f0
Parent:   73e751dca6eeea864e920c9d86e660e7ba1b03d0
Author:   qulogic at pidgin.im
Date:     10/09/11 03:09:39
Branch:   im.pidgin.cpw.qulogic.gtk3
URL: http://d.pidgin.im/viewmtn/revision/info/3cf91b6553ba9e254c2fd65eb1c7cbb02c4634f0

Changelog: 

This existing Send To menu stuff works already, and isn't really
deprecated yet, so might as well leave it as is.

Changes against parent 73e751dca6eeea864e920c9d86e660e7ba1b03d0

  patched  pidgin/gtkconv.c

-------------- next part --------------
============================================================
--- pidgin/gtkconv.c	bc2925f2592603fd0dbb431907aaad59510e78ae
+++ pidgin/gtkconv.c	8912ffaf57a35f24681f366921e7a34ea60449c5
@@ -3824,7 +3824,6 @@ update_send_to_selection(PidginWindow *w
 	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 @@ update_send_to_selection(PidginWindow *w
 			break;
 		}
 	}
-#endif
 
 	return FALSE;
 }
@@ -3956,7 +3954,6 @@ generate_send_to_items(PidginWindow *win
 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 @@ generate_send_to_items(PidginWindow *win
 	if (!group)
 		gtk_widget_set_sensitive(win->menu.send_to, FALSE);
 	update_send_to_selection(win);
-#endif
 }
 
 static const char *
@@ -9022,9 +9018,8 @@ infopane_press_cb(GtkWidget *widget, Gdk
 		/* 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 @@ infopane_press_cb(GtkWidget *widget, Gdk
 			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;


More information about the Commits mailing list