[gnome-initial-setup] summary-page: Add the name of the distro to the tagline too
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-initial-setup] summary-page: Add the name of the distro to the tagline too
- Date: Fri, 1 Nov 2013 05:58:46 +0000 (UTC)
commit cc5ee9c4365dd6fc56b10f4400cf000d92248048
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Fri Nov 1 01:57:31 2013 -0400
summary-page: Add the name of the distro to the tagline too
.../pages/summary/gis-summary-page.c | 15 +++++++++++----
.../pages/summary/gis-summary-page.ui | 4 ----
2 files changed, 11 insertions(+), 8 deletions(-)
---
diff --git a/gnome-initial-setup/pages/summary/gis-summary-page.c
b/gnome-initial-setup/pages/summary/gis-summary-page.c
index 4696355..6b5b28d 100644
--- a/gnome-initial-setup/pages/summary/gis-summary-page.c
+++ b/gnome-initial-setup/pages/summary/gis-summary-page.c
@@ -44,6 +44,7 @@
struct _GisSummaryPagePrivate {
GtkWidget *start_button;
GtkWidget *start_button_label;
+ GtkWidget *tagline;
ActUser *user_account;
const gchar *user_password;
@@ -312,7 +313,7 @@ update_distro_name (GisSummaryPage *page)
GisSummaryPagePrivate *priv = gis_summary_page_get_instance_private (page);
char *buffer;
char *name;
- char *label;
+ char *text;
name = NULL;
@@ -325,9 +326,14 @@ update_distro_name (GisSummaryPage *page)
if (!name)
name = g_strdup ("GNOME 3");
- label = g_strdup_printf (_("_Start using %s"), name);
- gtk_label_set_label (GTK_LABEL (priv->start_button_label), label);
- g_free (label);
+ text = g_strdup_printf (_("_Start using %s"), name);
+ gtk_label_set_label (GTK_LABEL (priv->start_button_label), text);
+ g_free (text);
+
+ text = g_strdup_printf (_("Thank you for choosing %s.\nWe hope that you love it."), name);
+ gtk_label_set_label (GTK_LABEL (priv->tagline), text);
+ g_free (text);
+
g_free (name);
}
@@ -388,6 +394,7 @@ gis_summary_page_class_init (GisSummaryPageClass *klass)
gtk_widget_class_bind_template_child_private (GTK_WIDGET_CLASS (klass), GisSummaryPage, start_button);
gtk_widget_class_bind_template_child_private (GTK_WIDGET_CLASS (klass), GisSummaryPage,
start_button_label);
+ gtk_widget_class_bind_template_child_private (GTK_WIDGET_CLASS (klass), GisSummaryPage, tagline);
page_class->page_id = PAGE_ID;
page_class->locale_changed = gis_summary_page_locale_changed;
diff --git a/gnome-initial-setup/pages/summary/gis-summary-page.ui
b/gnome-initial-setup/pages/summary/gis-summary-page.ui
index 323e83d..1f11d4c 100644
--- a/gnome-initial-setup/pages/summary/gis-summary-page.ui
+++ b/gnome-initial-setup/pages/summary/gis-summary-page.ui
@@ -37,10 +37,6 @@
<object class="GtkLabel" id="tagline">
<property name="visible">True</property>
<property name="justify">center</property>
- <property name="label" translatable="yes">
-Thank you for choosing GNOME 3.
-We hope that you love it.
- </property>
</object>
</child>
<child>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]