[gnome-initial-setup] Hide GIS window rather than wait for GDM kill
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-initial-setup] Hide GIS window rather than wait for GDM kill
- Date: Mon, 5 Jan 2015 22:07:53 +0000 (UTC)
commit e8e7f86632d370744af2fc3e5da62df88e6d36ec
Author: Srdjan Grubor <sgnn7 sgnn7 org>
Date: Mon Jan 5 14:28:11 2015 -0600
Hide GIS window rather than wait for GDM kill
Since we normally wait for GDM to kill us, the exit looks
unresponsive until new user is logged in. This change makes
the window hidden so that at least the user can know that we
handled their command.
https://bugzilla.gnome.org/show_bug.cgi?id=742417
gnome-initial-setup/gis-driver.c | 8 ++++++++
gnome-initial-setup/gis-driver.h | 2 ++
.../pages/summary/gis-summary-page.c | 1 +
3 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/gnome-initial-setup/gis-driver.c b/gnome-initial-setup/gis-driver.c
index e60e308..524e1ec 100644
--- a/gnome-initial-setup/gis-driver.c
+++ b/gnome-initial-setup/gis-driver.c
@@ -199,6 +199,14 @@ gis_driver_add_page (GisDriver *driver,
gis_assistant_add_page (priv->assistant, page);
}
+void
+gis_driver_hide_window (GisDriver *driver)
+{
+ GisDriverPrivate *priv = gis_driver_get_instance_private (driver);
+
+ gtk_widget_hide (GTK_WIDGET (priv->main_window));
+}
+
static void
gis_driver_real_locale_changed (GisDriver *driver)
{
diff --git a/gnome-initial-setup/gis-driver.h b/gnome-initial-setup/gis-driver.h
index ebb9d85..538deeb 100644
--- a/gnome-initial-setup/gis-driver.h
+++ b/gnome-initial-setup/gis-driver.h
@@ -85,6 +85,8 @@ gboolean gis_driver_is_small_screen (GisDriver *driver);
void gis_driver_add_page (GisDriver *driver,
GisPage *page);
+void gis_driver_hide_window (GisDriver *driver);
+
void gis_driver_save_data (GisDriver *driver);
GisDriver *gis_driver_new (GisDriverMode mode);
diff --git a/gnome-initial-setup/pages/summary/gis-summary-page.c
b/gnome-initial-setup/pages/summary/gis-summary-page.c
index adfadaf..285022e 100644
--- a/gnome-initial-setup/pages/summary/gis-summary-page.c
+++ b/gnome-initial-setup/pages/summary/gis-summary-page.c
@@ -244,6 +244,7 @@ done_cb (GtkButton *button, GisSummaryPage *page)
switch (gis_driver_get_mode (GIS_PAGE (page)->driver))
{
case GIS_DRIVER_MODE_NEW_USER:
+ gis_driver_hide_window (GIS_PAGE (page)->driver);
log_user_in (page);
break;
case GIS_DRIVER_MODE_EXISTING_USER:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]