cleanup
This commit is contained in:
		
							parent
							
								
									5ea343182c
								
							
						
					
					
						commit
						a286f42b34
					
				
					 1 changed files with 3 additions and 4 deletions
				
			
		| 
						 | 
					@ -447,17 +447,16 @@ class Dialog(gtk.Dialog):
 | 
				
			||||||
		return index < len(buttons) and buttons[index] or None
 | 
							return index < len(buttons) and buttons[index] or None
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class HigDialog(gtk.MessageDialog):
 | 
					class HigDialog(gtk.MessageDialog):
 | 
				
			||||||
	def __init__(self, parent, type, buttons, primary, secondary):
 | 
						def __init__(self, parent, type, buttons, pritext, sectext):
 | 
				
			||||||
		gtk.MessageDialog.__init__(self, parent, 
 | 
							gtk.MessageDialog.__init__(self, parent, 
 | 
				
			||||||
				gtk.DIALOG_DESTROY_WITH_PARENT | gtk.DIALOG_MODAL,
 | 
									gtk.DIALOG_DESTROY_WITH_PARENT | gtk.DIALOG_MODAL,
 | 
				
			||||||
				type, buttons, message_format = primary)
 | 
									type, buttons, message_format = pritext)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		self.format_secondary_text(secondary)
 | 
							self.format_secondary_text(sectext)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	def get_response(self):
 | 
						def get_response(self):
 | 
				
			||||||
		self.show_all()
 | 
							self.show_all()
 | 
				
			||||||
		response = self.run()
 | 
							response = self.run()
 | 
				
			||||||
		#response = gtk.Dialog.run(self)
 | 
					 | 
				
			||||||
		self.destroy()
 | 
							self.destroy()
 | 
				
			||||||
		return response
 | 
							return response
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue