close the vcard window when we press Escape
minimum width in gc window for the contact list on the left
This commit is contained in:
		
							parent
							
								
									058f632115
								
							
						
					
					
						commit
						25214a9cf2
					
				
					 2 changed files with 6 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -37,6 +37,10 @@ class vcard_information_window:
 | 
			
		|||
		"""close window"""
 | 
			
		||||
		del self.plugin.windows[self.account]['infos'][self.jid]
 | 
			
		||||
 | 
			
		||||
	def on_vcard_information_window_key_press_event(self, widget, event):
 | 
			
		||||
		if event.keyval == gtk.keysyms.Escape: # ESCAPE
 | 
			
		||||
			widget.destroy()
 | 
			
		||||
 | 
			
		||||
	def on_close_button_clicked(self, widget):
 | 
			
		||||
		"""Save user's informations and update the roster on the Jabber server"""
 | 
			
		||||
		if self.vcard:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -5532,6 +5532,7 @@ Custom</property>
 | 
			
		|||
  <property name="type_hint">GDK_WINDOW_TYPE_HINT_NORMAL</property>
 | 
			
		||||
  <property name="gravity">GDK_GRAVITY_NORTH_WEST</property>
 | 
			
		||||
  <signal name="destroy" handler="on_user_information_window_destroy" last_modification_time="Tue, 01 Mar 2005 15:40:50 GMT"/>
 | 
			
		||||
  <signal name="key_press_event" handler="on_vcard_information_window_key_press_event" last_modification_time="Thu, 07 Apr 2005 10:06:13 GMT"/>
 | 
			
		||||
 | 
			
		||||
  <child>
 | 
			
		||||
    <widget class="GtkVBox" id="vbox17">
 | 
			
		||||
| 
						 | 
				
			
			@ -7402,7 +7403,7 @@ Custom</property>
 | 
			
		|||
			  </child>
 | 
			
		||||
			</widget>
 | 
			
		||||
			<packing>
 | 
			
		||||
			  <property name="shrink">True</property>
 | 
			
		||||
			  <property name="shrink">False</property>
 | 
			
		||||
			  <property name="resize">False</property>
 | 
			
		||||
			</packing>
 | 
			
		||||
		      </child>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue