Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann Leboulanger <asterix@lagaule.org>2013-12-24 00:39:23 +0400
committerYann Leboulanger <asterix@lagaule.org>2013-12-24 00:39:23 +0400
commit5a8d757529908c821360156a2a32fc0842f5a18d (patch)
treeaf5164b8d0b7124bca74b9422b8323ff3bfcab11
parent7887f52ed7026c3cf659b07eb31df8ad759c181a (diff)
hide some menuitems in private chat context menu. Fixes #7603
-rw-r--r--src/gui_menu_builder.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui_menu_builder.py b/src/gui_menu_builder.py
index 13a6fb2ca..fc1252c0a 100644
--- a/src/gui_menu_builder.py
+++ b/src/gui_menu_builder.py
@@ -382,6 +382,11 @@ control=None, gc_contact=None, is_anonymous=True):
if not control:
items_to_hide.append(convert_to_gc_menuitem)
+ # Hide items when it's a pm
+ if gc_contact:
+ items_to_hide += [rename_menuitem, edit_groups_menuitem,
+ subscription_menuitem, remove_from_roster_menuitem]
+
for item in items_to_hide:
item.set_no_show_all(True)
item.hide()