make About dialog not use run() function. fixes #3788
This commit is contained in:
parent
1e3b6f6d86
commit
8aa1573e78
|
@ -1000,11 +1000,11 @@ class AboutDialog:
|
||||||
artists = ['Anders Ström', 'Christophe Got', 'Dennis Craven',
|
artists = ['Anders Ström', 'Christophe Got', 'Dennis Craven',
|
||||||
'Guillaume Morin', 'Josef Vybíral', 'Membris Khan']
|
'Guillaume Morin', 'Josef Vybíral', 'Membris Khan']
|
||||||
dlg.set_artists(artists)
|
dlg.set_artists(artists)
|
||||||
gobject.idle_add(self.dorun, dlg)
|
# connect close button to destroy() function
|
||||||
|
for button in dlg.action_area.get_children():
|
||||||
def dorun(self, dlg):
|
if button.get_property('label') == gtk.STOCK_CLOSE:
|
||||||
rep = dlg.run()
|
button.connect('clicked', lambda x:dlg.destroy())
|
||||||
dlg.destroy()
|
dlg.show_all()
|
||||||
|
|
||||||
def tuple2str(self, tuple_):
|
def tuple2str(self, tuple_):
|
||||||
str_ = ''
|
str_ = ''
|
||||||
|
|
Loading…
Reference in New Issue