Close button in vcard and profile windows
This commit is contained in:
		
							parent
							
								
									921274b6c4
								
							
						
					
					
						commit
						8a12655ec7
					
				
					 5 changed files with 47 additions and 1 deletions
				
			
		|  | @ -5,7 +5,7 @@ Gajim 0.11 (XX October 2006) | |||
|   * We can now operate on more than one contact in one in time in roster (#1514) | ||||
|   * Connection lost is now a non-intrusive popup | ||||
|   * Try to get contact desired nick when we add him to roster aka User Nickname (JEP-0172) | ||||
|   * Better design of User Profile window | ||||
|   * Better design of User Profile window, with a progress bar | ||||
|   * New Add User dialog, with possibility to register to transport directly from it | ||||
|   * Completion for "Start Chat" input dialog | ||||
|   * We can now have a different spellchecking language in each chat window. (#2383 and #746) | ||||
|  |  | |||
|  | @ -2004,6 +2004,19 @@ | |||
| 		  </child> | ||||
| 		</widget> | ||||
| 	      </child> | ||||
| 
 | ||||
| 	      <child> | ||||
| 		<widget class="GtkButton" id="close_button"> | ||||
| 		  <property name="visible">True</property> | ||||
| 		  <property name="can_default">True</property> | ||||
| 		  <property name="can_focus">True</property> | ||||
| 		  <property name="label">gtk-close</property> | ||||
| 		  <property name="use_stock">True</property> | ||||
| 		  <property name="relief">GTK_RELIEF_NORMAL</property> | ||||
| 		  <property name="focus_on_click">True</property> | ||||
| 		  <signal name="clicked" handler="on_close_button_clicked" last_modification_time="Mon, 25 Sep 2006 04:58:43 GMT"/> | ||||
| 		</widget> | ||||
| 	      </child> | ||||
| 	    </widget> | ||||
| 	    <packing> | ||||
| 	      <property name="padding">0</property> | ||||
|  |  | |||
|  | @ -2568,6 +2568,32 @@ | |||
| 	  <property name="fill">False</property> | ||||
| 	</packing> | ||||
|       </child> | ||||
| 
 | ||||
|       <child> | ||||
| 	<widget class="GtkHButtonBox" id="hbuttonbox1"> | ||||
| 	  <property name="visible">True</property> | ||||
| 	  <property name="layout_style">GTK_BUTTONBOX_END</property> | ||||
| 	  <property name="spacing">0</property> | ||||
| 
 | ||||
| 	  <child> | ||||
| 	    <widget class="GtkButton" id="close_button"> | ||||
| 	      <property name="visible">True</property> | ||||
| 	      <property name="can_default">True</property> | ||||
| 	      <property name="can_focus">True</property> | ||||
| 	      <property name="label">gtk-close</property> | ||||
| 	      <property name="use_stock">True</property> | ||||
| 	      <property name="relief">GTK_RELIEF_NORMAL</property> | ||||
| 	      <property name="focus_on_click">True</property> | ||||
| 	      <signal name="clicked" handler="on_close_button_clicked" last_modification_time="Mon, 25 Sep 2006 05:08:55 GMT"/> | ||||
| 	    </widget> | ||||
| 	  </child> | ||||
| 	</widget> | ||||
| 	<packing> | ||||
| 	  <property name="padding">0</property> | ||||
| 	  <property name="expand">False</property> | ||||
| 	  <property name="fill">False</property> | ||||
| 	</packing> | ||||
|       </child> | ||||
|     </widget> | ||||
|   </child> | ||||
| </widget> | ||||
|  |  | |||
|  | @ -372,3 +372,7 @@ class ProfileWindow: | |||
| 			_('Retrieving profile...')) | ||||
| 		self.update_progressbar_timeout_id = gobject.timeout_add(100, | ||||
| 			self.update_progressbar) | ||||
| 
 | ||||
| 	def on_close_button_clicked(self, widget): | ||||
| 		self.progressbar.destroy() | ||||
| 		self.window.destroy() | ||||
|  |  | |||
|  | @ -313,3 +313,6 @@ class VcardWindow: | |||
| 		self.fill_status_label() | ||||
| 
 | ||||
| 		gajim.connections[self.account].request_vcard(self.contact.jid, self.is_fake) | ||||
| 
 | ||||
| 	def on_close_button_clicked(self, widget): | ||||
| 		self.window.destroy() | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue