diff pidgin/gtkconv.c @ 32125:35395b98f6b5

So, it seems gtkconv checks on stuff in the prpl struct. The lack of add_buddy in AIM and MSN disabled the Conversation->Add menu item. Found by deryni.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Sat, 18 Jun 2011 06:59:36 +0000
parents 0e7c5fe661e5
children 8c7d9c75bd2e 84ac2406bb10
line wrap: on
line diff
--- a/pidgin/gtkconv.c	Sat Jun 18 04:17:27 2011 +0000
+++ b/pidgin/gtkconv.c	Sat Jun 18 06:59:36 2011 +0000
@@ -6589,7 +6589,7 @@
 
 		if (purple_conversation_get_type(conv) == PURPLE_CONV_TYPE_IM)
 		{
-			gtk_widget_set_sensitive(win->menu.add, (prpl_info->add_buddy != NULL));
+			gtk_widget_set_sensitive(win->menu.add, (prpl_info->add_buddy != NULL) || (prpl_info->add_buddy_with_invite != NULL));
 			gtk_widget_set_sensitive(win->menu.remove, (prpl_info->remove_buddy != NULL));
 			gtk_widget_set_sensitive(win->menu.send_file,
 									 (prpl_info->send_file != NULL && (!prpl_info->can_receive_file ||