[anjuta] project-wizard: bgo #732672 - Suggestion to use a Glade prompted handler name rather than "destroy"
- From: Sebastien Granjoux <sgranjoux src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] project-wizard: bgo #732672 - Suggestion to use a Glade prompted handler name rather than "destroy"
- Date: Sat, 5 Jul 2014 12:58:33 +0000 (UTC)
commit 5a1d8e772e20dc793717457708ee7dc609ff5fbe
Author: Sébastien Granjoux <seb sfo free fr>
Date: Sat Jul 5 14:58:23 2014 +0200
project-wizard: bgo #732672 - Suggestion to use a Glade prompted handler name rather than "destroy"
plugins/project-wizard/templates/gtk/src/main.c | 2 +-
.../project-wizard/templates/gtk/src/project.ui | 2 +-
plugins/project-wizard/templates/pygtk/src/main.py | 4 ++--
3 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/plugins/project-wizard/templates/gtk/src/main.c b/plugins/project-wizard/templates/gtk/src/main.c
index b1e5c8b..416abd2 100644
--- a/plugins/project-wizard/templates/gtk/src/main.c
+++ b/plugins/project-wizard/templates/gtk/src/main.c
@@ -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 ();
}
diff --git a/plugins/project-wizard/templates/gtk/src/project.ui
b/plugins/project-wizard/templates/gtk/src/project.ui
index e6ef4b6..df6bd38 100644
--- a/plugins/project-wizard/templates/gtk/src/project.ui
+++ b/plugins/project-wizard/templates/gtk/src/project.ui
@@ -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>
diff --git a/plugins/project-wizard/templates/pygtk/src/main.py
b/plugins/project-wizard/templates/pygtk/src/main.py
index 3810deb..4bca3f6 100644
--- a/plugins/project-wizard/templates/pygtk/src/main.py
+++ b/plugins/project-wizard/templates/pygtk/src/main.py
@@ -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():
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]