warning and information dialogs are now no more modal, but transient for parent. This means all windows are usable even if such a dialog is opened, but dialog stays above parent windows. Parent is roster window. fixes #3035
This commit is contained in:
		
							parent
							
								
									c41ec64fc4
								
							
						
					
					
						commit
						f09799f9d9
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		|  | @ -932,6 +932,8 @@ class WarningDialog(HigDialog): | |||
| 		'''HIG compliant warning dialog.''' | ||||
| 		HigDialog.__init__( self, None,  | ||||
| 			gtk.MESSAGE_WARNING, gtk.BUTTONS_OK, pritext, sectext) | ||||
| 		self.set_modal(False) | ||||
| 		self.set_transient_for(gajim.interface.roster.window) | ||||
| 		self.popup() | ||||
| 
 | ||||
| class InformationDialog(HigDialog): | ||||
|  | @ -939,6 +941,8 @@ class InformationDialog(HigDialog): | |||
| 		'''HIG compliant info dialog.''' | ||||
| 		HigDialog.__init__( self, None,  | ||||
| 			gtk.MESSAGE_INFO, gtk.BUTTONS_OK, pritext, sectext) | ||||
| 		self.set_modal(False) | ||||
| 		self.set_transient_for(gajim.interface.roster.window) | ||||
| 		self.popup() | ||||
| 
 | ||||
| class ErrorDialog(HigDialog): | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue