[gnome-initial-setup] summary: Clean up code and UI files
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-initial-setup] summary: Clean up code and UI files
- Date: Thu, 10 Jan 2013 02:19:52 +0000 (UTC)
commit 89227bd7f5c1a73ff87fad9595fb83ff6ca388ee
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Wed Jan 9 21:05:36 2013 -0500
summary: Clean up code and UI files
.../pages/summary/gis-summary-page.c | 21 ++++---------------
.../pages/summary/gis-summary-page.ui | 1 -
2 files changed, 5 insertions(+), 17 deletions(-)
---
diff --git a/gnome-initial-setup/pages/summary/gis-summary-page.c b/gnome-initial-setup/pages/summary/gis-summary-page.c
index f70df21..5c21ba2 100644
--- a/gnome-initial-setup/pages/summary/gis-summary-page.c
+++ b/gnome-initial-setup/pages/summary/gis-summary-page.c
@@ -205,20 +205,7 @@ remove_trigger_file (GisSummaryPage *page)
}
static void
-byebye (GisSummaryPage *page)
-{
- remove_trigger_file (page);
- log_user_in (page);
-}
-
-static void
-byebye_cb (GtkButton *button, GisSummaryPage *page)
-{
- byebye (page);
-}
-
-static void
-tour_cb (GtkButton *button, GisSummaryPage *page)
+done_cb (GtkButton *button, GisSummaryPage *page)
{
gchar *file;
@@ -226,7 +213,9 @@ tour_cb (GtkButton *button, GisSummaryPage *page)
file = g_build_filename (g_get_user_config_dir (), "run-welcome-tour", NULL);
g_file_set_contents (file, "yes", -1, NULL);
g_free (file);
- byebye (page);
+
+ remove_trigger_file (page);
+ log_user_in (page);
}
static void
@@ -284,7 +273,7 @@ gis_summary_page_constructed (GObject *object)
g_signal_connect_object (assistant, "prepare", G_CALLBACK (prepare_cb), page, 0);
- g_signal_connect (WID("summary-start-button"), "clicked", G_CALLBACK (tour_cb), page);
+ g_signal_connect (WID("summary-start-button"), "clicked", G_CALLBACK (done_cb), page);
gis_page_set_title (GIS_PAGE (page), _("Thank You"));
gis_page_set_complete (GIS_PAGE (page), TRUE);
diff --git a/gnome-initial-setup/pages/summary/gis-summary-page.ui b/gnome-initial-setup/pages/summary/gis-summary-page.ui
index 048db98..ebb1d4f 100644
--- a/gnome-initial-setup/pages/summary/gis-summary-page.ui
+++ b/gnome-initial-setup/pages/summary/gis-summary-page.ui
@@ -60,5 +60,4 @@
</packing>
</child>
</object>
- <object class="GtkSizeGroup" id="summary-sizegroup"/>
</interface>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]