Commit 5a1d8e77 authored by Sebastien Granjoux's avatar Sebastien Granjoux
Browse files

project-wizard: bgo #732672 - Suggestion to use a Glade prompted handler name rather than "destroy"

parent 94b101c4
......@@ -50,7 +50,7 @@ static Private* priv = NULL;
/* Called when the window is closed */
void
destroy (GtkWidget *widget, gpointer data)
on_window_destroy (GtkWidget *widget, gpointer data)
{
gtk_main_quit ();
}
......
......@@ -7,7 +7,7 @@
<property name="title" translatable="yes">window</property>
<property name="default_width">500</property>
<property name="default_height">400</property>
<signal name="destroy" handler="destroy"/>
<signal name="destroy" handler="on_window_destroy"/>
<child>
<placeholder/>
</child>
......
......@@ -31,12 +31,12 @@ class GUI:
[+ELSE+]
window = Gtk.Window()
window.set_title ("Hello World")
window.connect_after('destroy', self.destroy)
window.connect_after('destroy', self.on_window_destroy)
[+ENDIF+]
window.show_all()
def destroy(self, window):
def on_window_destroy(self, window):
Gtk.main_quit()
def main():
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment