[gnome-software/wip/temp/ubuntu-xenial-rebased: 318/329] Fix the label for Snappy login
- From: Iain Lane <iainl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/temp/ubuntu-xenial-rebased: 318/329] Fix the label for Snappy login
- Date: Fri, 29 Apr 2016 14:12:05 +0000 (UTC)
commit 9939e571b5a2beb493692356f7d493062382a8e3
Author: William Hua <william hua canonical com>
Date: Tue Apr 26 12:10:18 2016 +0200
Fix the label for Snappy login
src/plugins/gs-ubuntuone-dialog.c | 9 +++++++++
src/plugins/gs-ubuntuone-dialog.ui | 2 +-
2 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/gs-ubuntuone-dialog.c b/src/plugins/gs-ubuntuone-dialog.c
index 1da752e..44c4f03 100644
--- a/src/plugins/gs-ubuntuone-dialog.c
+++ b/src/plugins/gs-ubuntuone-dialog.c
@@ -41,6 +41,7 @@ struct _GsUbuntuoneDialog
GtkWidget *status_image;
GtkWidget *status_label;
GtkWidget *page_stack;
+ GtkWidget *prompt_label;
GtkWidget *login_radio;
GtkWidget *register_radio;
GtkWidget *reset_radio;
@@ -561,6 +562,7 @@ gs_ubuntuone_dialog_class_init (GsUbuntuoneDialogClass *klass)
gtk_widget_class_bind_template_child (widget_class, GsUbuntuoneDialog, status_image);
gtk_widget_class_bind_template_child (widget_class, GsUbuntuoneDialog, status_label);
gtk_widget_class_bind_template_child (widget_class, GsUbuntuoneDialog, page_stack);
+ gtk_widget_class_bind_template_child (widget_class, GsUbuntuoneDialog, prompt_label);
gtk_widget_class_bind_template_child (widget_class, GsUbuntuoneDialog, login_radio);
gtk_widget_class_bind_template_child (widget_class, GsUbuntuoneDialog, register_radio);
gtk_widget_class_bind_template_child (widget_class, GsUbuntuoneDialog, reset_radio);
@@ -621,6 +623,13 @@ gs_ubuntuone_dialog_new (gboolean get_macaroon)
dialog->get_macaroon = get_macaroon;
+ if (dialog->get_macaroon)
+ gtk_label_set_label (GTK_LABEL (dialog->prompt_label),
+ _("To install and remove snaps, you need an Ubuntu Single Sign-On account."));
+ else
+ gtk_label_set_label (GTK_LABEL (dialog->prompt_label),
+ _("To rate and review software, you need an Ubuntu Single Sign-On account."));
+
return GTK_WIDGET (dialog);
}
diff --git a/src/plugins/gs-ubuntuone-dialog.ui b/src/plugins/gs-ubuntuone-dialog.ui
index fb392b7..e61c09e 100644
--- a/src/plugins/gs-ubuntuone-dialog.ui
+++ b/src/plugins/gs-ubuntuone-dialog.ui
@@ -76,7 +76,7 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<child>
- <object class="GtkLabel">
+ <object class="GtkLabel" id="prompt_label">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="margin_bottom">20</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]