[gnome-initial-setup] account: Don't destroy widget on delete-event
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-initial-setup] account: Don't destroy widget on delete-event
- Date: Thu, 26 Jul 2012 06:41:17 +0000 (UTC)
commit 06632eef2f8be116af87e5a006de5f930eafe956
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Wed Jul 25 08:29:39 2012 -0300
account: Don't destroy widget on delete-event
When hitting "Escape", the dialog would be destroyed.
.../pages/account/gis-account-page.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gnome-initial-setup/pages/account/gis-account-page.c b/gnome-initial-setup/pages/account/gis-account-page.c
index 9fe0300..bafc794 100644
--- a/gnome-initial-setup/pages/account/gis-account-page.c
+++ b/gnome-initial-setup/pages/account/gis-account-page.c
@@ -511,6 +511,8 @@ gis_prepare_account_page (SetupData *setup)
gtk_window_set_transient_for (OBJ(GtkWindow*,"local-account-dialog"),
gis_get_main_window(setup));
+ g_signal_connect (WID("local-account-dialog"), "delete-event",
+ G_CALLBACK (gtk_widget_hide_on_delete), NULL);
fullname_entry = WID("account-fullname-entry");
username_combo = WID("account-username-combo");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]