[pkg-otr-team] [irssi-plugin-otr] 166/167: Remove OTR menu for non-OTR conversation tabs

Holger Levsen holger at moszumanska.debian.org
Mon Mar 3 21:55:42 UTC 2014


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to tag 4.0.0
in repository irssi-plugin-otr.

commit 600cc425738184908000af999c2eb9cc17fc7e55
Author: Ian Goldberg <iang at cs.uwaterloo.ca>
Date:   Sun Sep 2 16:20:00 2012 -0400

    Remove OTR menu for non-OTR conversation tabs
    
    When switching to a conversation tab for which the user has explicitly
    disabled OTR, remove the OTR menus from the top menu bar.  Thanks to
    Greg Troxel <gdt at ir.bbn.com> for reporting the issue.
---
 ChangeLog    | 7 +++++++
 gtk-dialog.c | 1 +
 2 files changed, 8 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index aa8e97f..2c4f541 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2012-09-02
+
+	* gtk-dialog.c (otrg_gtk_dialog_new_purple_conv): When switching
+	to a conversation tab for which the user has explicitly disabled
+	OTR, remove the OTR menus from the top menu bar.  Thanks to Greg
+	Troxel <gdt at ir.bbn.com> for reporting the issue.
+
 2012-08-27
 
 	* otr-plugin.c: Add a timer_control callback for the last-minute
diff --git a/gtk-dialog.c b/gtk-dialog.c
index ebb0a71..725c78c 100644
--- a/gtk-dialog.c
+++ b/gtk-dialog.c
@@ -2898,6 +2898,7 @@ static void otrg_gtk_dialog_new_purple_conv(PurpleConversation *conv)
 
     /* OTR is disabled for this buddy */
     if (prefs.policy == OTRL_POLICY_NEVER) {
+	otr_destroy_top_menu_objects(conv);
 	return;
     }
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-otr/packages/irssi-plugin-otr.git



More information about the Pkg-otr-team mailing list