ACE: print_status_in_chats
This commit is contained in:
		
							parent
							
								
									20f86ff0aa
								
							
						
					
					
						commit
						6649b62f03
					
				
					 2 changed files with 4 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -158,6 +158,7 @@ class Config:
 | 
			
		|||
		'show_unread_tab_icon': [opt_bool, False, _('If True, Gajim will display an icon on each tab containing unread messages. Depending on the theme, this icon may be animated.')],
 | 
			
		||||
		'show_status_msgs_in_roster': [opt_bool, True, _('If True, Gajim will display the status message, if not empty, for every contact under the contact name in roster window')],
 | 
			
		||||
		'show_avatars_in_roster': [opt_bool, True],
 | 
			
		||||
		'print_status_in_chats': [opt_bool, True, _('If False, you will no longer see status line in chats when a contact changes his status and/or his status message.')],
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	__options_per_key = {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -527,6 +527,8 @@ class ConversationTextview(gtk.TextView):
 | 
			
		|||
			other_tags_for_name = [], other_tags_for_time = [], 
 | 
			
		||||
			other_tags_for_text = [], subject = None):
 | 
			
		||||
		'''prints 'chat' type messages'''
 | 
			
		||||
		if kind == 'status' and not gajim.config.get('print_status_in_chats'):
 | 
			
		||||
				return
 | 
			
		||||
		buffer = self.get_buffer()
 | 
			
		||||
		buffer.begin_user_action()
 | 
			
		||||
		end_iter = buffer.get_end_iter()
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue