hide some menuitems in private chat context menu. Fixes #7603
This commit is contained in:
		
							parent
							
								
									7887f52ed7
								
							
						
					
					
						commit
						5a8d757529
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -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()
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue