finch/gntconv.c

changeset 41104
06289a48546f
parent 41008
dc06703548a1
child 41137
3c1574216aed
--- a/finch/gntconv.c	Thu Oct 14 23:48:51 2021 -0500
+++ b/finch/gntconv.c	Mon Oct 18 01:20:33 2021 -0500
@@ -36,7 +36,6 @@
 #include "gntblist.h"
 #include "gntconv.h"
 #include "gntdebug.h"
-#include "gntlog.h"
 #include "gntmenuutil.h"
 #include "gntplugin.h"
 #include "gntprefs.h"
@@ -536,45 +535,6 @@
 }
 
 static void
-view_log_cb(GntMenuItem *n, gpointer ggc)
-{
-	FinchConv *fc;
-	PurpleConversation *conv;
-	PurpleLogType type;
-	const char *name;
-	PurpleAccount *account;
-	GSList *buddies;
-	GSList *cur;
-
-	fc = ggc;
-	conv = fc->active_conv;
-
-	if (PURPLE_IS_IM_CONVERSATION(conv))
-		type = PURPLE_LOG_IM;
-	else if (PURPLE_IS_CHAT_CONVERSATION(conv))
-		type = PURPLE_LOG_CHAT;
-	else
-		return;
-
-	name = purple_conversation_get_name(conv);
-	account = purple_conversation_get_account(conv);
-
-	buddies = purple_blist_find_buddies(account, name);
-	for (cur = buddies; cur != NULL; cur = cur->next) {
-		PurpleBlistNode *node = cur->data;
-		if ((node != NULL) &&
-				(purple_blist_node_get_sibling_prev(node) || purple_blist_node_get_sibling_next(node))) {
-			finch_log_show_contact((PurpleContact *)purple_blist_node_get_parent(node));
-			g_slist_free(buddies);
-			return;
-		}
-	}
-	g_slist_free(buddies);
-
-	finch_log_show(type, name, account);
-}
-
-static void
 generate_send_to_menu(FinchConv *ggc)
 {
 	GntWidget *sub, *menu = ggc->menu;
@@ -694,10 +654,6 @@
 		gnt_menuitem_set_callback(item, invite_cb, ggc);
 	}
 
-	item = gnt_menuitem_new(_("View Log..."));
-	gnt_menu_add_item(GNT_MENU(sub), item);
-	gnt_menuitem_set_callback(item, view_log_cb, ggc);
-
 	item = gnt_menuitem_check_new(_("Enable Logging"));
 	gnt_menuitem_check_set_checked(GNT_MENU_ITEM_CHECK(item),
 			purple_conversation_is_logging(ggc->active_conv));

mercurial