do not change the systrayicon to new_message when we send a message in GC window
This commit is contained in:
		
							parent
							
								
									32a809da5f
								
							
						
					
					
						commit
						cef48f8b1e
					
				
					 3 changed files with 1 additions and 6 deletions
				
			
		| 
						 | 
					@ -583,5 +583,6 @@ class Chat:
 | 
				
			||||||
		if ((jid != self.get_active_jid()) or (not self.window.is_active()) or \
 | 
							if ((jid != self.get_active_jid()) or (not self.window.is_active()) or \
 | 
				
			||||||
			(not end)) and kind == 'incoming':
 | 
								(not end)) and kind == 'incoming':
 | 
				
			||||||
			self.nb_unread[jid] += 1
 | 
								self.nb_unread[jid] += 1
 | 
				
			||||||
 | 
								self.plugin.systray.add_jid(jid, self.account)
 | 
				
			||||||
			self.redraw_tab(jid)
 | 
								self.redraw_tab(jid)
 | 
				
			||||||
			self.show_title()
 | 
								self.show_title()
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -534,9 +534,6 @@ class plugin:
 | 
				
			||||||
			#message from someone
 | 
								#message from someone
 | 
				
			||||||
			self.windows[account]['gc'][jid].print_conversation(array[1], jid, \
 | 
								self.windows[account]['gc'][jid].print_conversation(array[1], jid, \
 | 
				
			||||||
				jids[1], array[2])
 | 
									jids[1], array[2])
 | 
				
			||||||
			if not self.windows[account]['gc'][jid].window.\
 | 
					 | 
				
			||||||
				get_property('is-active'):
 | 
					 | 
				
			||||||
				self.systray.add_jid(jid, account)
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
	def handle_event_gc_subject(self, account, array):
 | 
						def handle_event_gc_subject(self, account, array):
 | 
				
			||||||
		#('GC_SUBJECT', account, (jid, subject))
 | 
							#('GC_SUBJECT', account, (jid, subject))
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -889,9 +889,6 @@ class roster_window:
 | 
				
			||||||
					self.tree.set_cursor(path)
 | 
										self.tree.set_cursor(path)
 | 
				
			||||||
			self.plugin.windows[account]['chats'][jid].print_conversation(msg, \
 | 
								self.plugin.windows[account]['chats'][jid].print_conversation(msg, \
 | 
				
			||||||
				jid, tim = tim)
 | 
									jid, tim = tim)
 | 
				
			||||||
			if not self.plugin.windows[account]['chats'][jid].window.\
 | 
					 | 
				
			||||||
				get_property('is-active'):
 | 
					 | 
				
			||||||
				self.plugin.systray.add_jid(jid, account)
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
	def on_preferences_menuitem_activate(self, widget):
 | 
						def on_preferences_menuitem_activate(self, widget):
 | 
				
			||||||
		"""When preferences is selected :
 | 
							"""When preferences is selected :
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue