Hiding the dialog instead of destroying it doesn't seem to cause as much chaos (Fixes #397)

This commit is contained in:
Mathieu Comandon 2016-10-31 12:22:30 -07:00
parent a9482888d7
commit 8d3fc53077
2 changed files with 5 additions and 0 deletions

View file

@ -32,6 +32,10 @@ class GtkBuilderDialog(GObject.Object):
def on_close(self, *args):
self.dialog.destroy()
def on_response(self, widget, response):
if response == Gtk.ResponseType.DELETE_EVENT:
self.dialog.hide()
class AboutDialog(GtkBuilderDialog):
glade_file = 'about-dialog.ui'

View file

@ -38,6 +38,7 @@ Xodetaetl &lt;dev@xod.me&gt;</property>
<property name="wrap_license">True</property>
<property name="license_type">gpl-3-0</property>
<signal name="close" handler="on_close" swapped="no"/>
<signal name="response" handler="on_response" swapped="no"/>
<child internal-child="vbox">
<object class="GtkBox" id="aboutdialog-vbox1">
<property name="can_focus">False</property>