set the focus to the message textview when opening the tabbed_chat_window
This commit is contained in:
		
							parent
							
								
									7efdde1695
								
							
						
					
					
						commit
						586894297a
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -417,7 +417,6 @@ class tabbed_chat_Window:
 | 
			
		|||
		tv.set_wrap_mode(gtk.WRAP_WORD)
 | 
			
		||||
		sw.add(tv)
 | 
			
		||||
		self.widgets[user.jid]['message'] = tv
 | 
			
		||||
		tv.grab_focus()
 | 
			
		||||
		tv.connect('key_press_event', self.on_msg_key_press_event)
 | 
			
		||||
 | 
			
		||||
		vb.show_all()
 | 
			
		||||
| 
						 | 
				
			
			@ -426,6 +425,7 @@ class tabbed_chat_Window:
 | 
			
		|||
 | 
			
		||||
		self.redraw_tab(user.jid)
 | 
			
		||||
		self.draw_widgets(user)
 | 
			
		||||
		tv.grab_focus()
 | 
			
		||||
 | 
			
		||||
		#print queued messages
 | 
			
		||||
		if self.plugin.queues[self.account].has_key(user.jid):
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue