aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntonio Xu <antonio.xu@sun.com>2003-07-22 16:30:04 +0800
committerAntonio Xu <anto@src.gnome.org>2003-07-22 16:30:04 +0800
commite18a5b77621d3a229d2a6cb19ebe4fa785fe958f (patch)
tree71d7cf4a7d68322048d4f63d462aa3f85173c1bc
parentb4e252d26ef852449dfad9852d59e01f004867fa (diff)
downloadgsoc2013-evolution-e18a5b77621d3a229d2a6cb19ebe4fa785fe958f.tar
gsoc2013-evolution-e18a5b77621d3a229d2a6cb19ebe4fa785fe958f.tar.gz
gsoc2013-evolution-e18a5b77621d3a229d2a6cb19ebe4fa785fe958f.tar.bz2
gsoc2013-evolution-e18a5b77621d3a229d2a6cb19ebe4fa785fe958f.tar.lz
gsoc2013-evolution-e18a5b77621d3a229d2a6cb19ebe4fa785fe958f.tar.xz
gsoc2013-evolution-e18a5b77621d3a229d2a6cb19ebe4fa785fe958f.tar.zst
gsoc2013-evolution-e18a5b77621d3a229d2a6cb19ebe4fa785fe958f.zip
connect to "delete_event" signal with startup_wizard_delete. [#46284]
2003-07-22 Antonio Xu <antonio.xu@sun.com> * e-shell-startup-wizard.c (e_shell_startup_wizard_create): connect to "delete_event" signal with startup_wizard_delete. [#46284] svn path=/trunk/; revision=21885
-rw-r--r--shell/ChangeLog5
-rw-r--r--shell/e-shell-startup-wizard.c12
2 files changed, 17 insertions, 0 deletions
diff --git a/shell/ChangeLog b/shell/ChangeLog
index 5eb40d8010..af93597d82 100644
--- a/shell/ChangeLog
+++ b/shell/ChangeLog
@@ -1,3 +1,8 @@
+2003-07-22 Antonio Xu <antonio.xu@sun.com>
+
+ * e-shell-startup-wizard.c (e_shell_startup_wizard_create): connect
+ to "delete_event" signal with startup_wizard_delete. [#46284]
+
2003-07-22 Antonio Xu <antonio.xu@sun.com>
* e-shell-importer.c: (show_import_wizard): use
diff --git a/shell/e-shell-startup-wizard.c b/shell/e-shell-startup-wizard.c
index 2ca03d7750..95b4c03629 100644
--- a/shell/e-shell-startup-wizard.c
+++ b/shell/e-shell-startup-wizard.c
@@ -749,6 +749,15 @@ startup_wizard_cancel (GnomeDruid *druid,
gtk_main_quit ();
}
+static gboolean
+startup_wizard_delete (GnomeDruid *druid,
+ GdkEventAny *ev,
+ SWData *data)
+{
+ startup_wizard_cancel(druid, data);
+ return FALSE;
+}
+
gboolean
e_shell_startup_wizard_create (void)
{
@@ -777,6 +786,9 @@ e_shell_startup_wizard_create (void)
gtk_window_set_wmclass (GTK_WINDOW (data->dialog), "startup-wizard",
"Evolution:shell");
+ g_signal_connect_after (data->dialog, "delete_event",
+ G_CALLBACK (startup_wizard_delete), data);
+
page_hash = g_hash_table_new (NULL, NULL);
data->druid = glade_xml_get_widget (data->wizard, "startup-druid");
g_return_val_if_fail (data->druid != NULL, FALSE);