[gnome-initial-setup/shell/4765: 19/362] account: add a switch for the shared account
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-initial-setup/shell/4765: 19/362] account: add a switch for the shared account
- Date: Thu, 19 Mar 2015 01:22:39 +0000 (UTC)
commit 2e776632274828a5d8f736dfa283499b3ec39372
Author: Cosimo Cecchi <cosimo endlessm com>
Date: Fri Apr 18 12:37:00 2014 -0700
account: add a switch for the shared account
.../pages/account/gis-account-page.c | 5 ++-
.../pages/account/gis-account-page.ui | 44 ++++++++++++++++++++
po/es.po | 4 ++
po/pt_BR.po | 4 ++
4 files changed, 56 insertions(+), 1 deletions(-)
---
diff --git a/gnome-initial-setup/pages/account/gis-account-page.c
b/gnome-initial-setup/pages/account/gis-account-page.c
index b040ecf..71b18b3 100644
--- a/gnome-initial-setup/pages/account/gis-account-page.c
+++ b/gnome-initial-setup/pages/account/gis-account-page.c
@@ -470,9 +470,12 @@ local_create_user (GisAccountPage *page)
const gchar *fullname;
const gchar *language;
gboolean autologin_active;
+ gboolean enable_shared;
GError *error = NULL;
- create_shared_user (page);
+ enable_shared = gtk_switch_get_active (OBJ(GtkSwitch*, "account-shared-account-switch"));
+ if (enable_shared)
+ create_shared_user (page);
username = gtk_combo_box_text_get_active_text (OBJ(GtkComboBoxText*, "account-username-combo"));
fullname = gtk_entry_get_text (OBJ (GtkEntry*, "account-fullname-entry"));
diff --git a/gnome-initial-setup/pages/account/gis-account-page.ui
b/gnome-initial-setup/pages/account/gis-account-page.ui
index 493d5f0..bf50b8d 100644
--- a/gnome-initial-setup/pages/account/gis-account-page.ui
+++ b/gnome-initial-setup/pages/account/gis-account-page.ui
@@ -304,6 +304,50 @@
</packing>
</child>
<child>
+ <object class="GtkLabel" id="account-shared-account-label">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="halign">end</property>
+ <property name="xalign">1</property>
+ <property name="label" translatable="yes">Enable _Shared Account</property>
+ <property name="use_underline">True</property>
+ <property name="mnemonic_widget">account-shared-account-switch</property>
+ </object>
+ <packing>
+ <property name="left_attach">0</property>
+ <property name="top_attach">8</property>
+ <property name="width">1</property>
+ <property name="height">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkBox" id="box4">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <child>
+ <object class="GtkSwitch" id="account-shared-account-switch">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="active">True</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
+ </object>
+ <packing>
+ <property name="left_attach">1</property>
+ <property name="top_attach">8</property>
+ <property name="width">1</property>
+ <property name="height">1</property>
+ </packing>
+ </child>
+ <child>
<placeholder/>
</child>
<child>
diff --git a/po/es.po b/po/es.po
index 516aaf4..f9e7eea 100644
--- a/po/es.po
+++ b/po/es.po
@@ -116,6 +116,10 @@ msgid "A_utomatic Login"
msgstr "_Inicio de sesión automático"
#: ../gnome-initial-setup/pages/account/gis-account-page.ui.h:9
+msgid "Enable _Shared Account"
+msgstr "Activar Cu_enta Compartida"
+
+#: ../gnome-initial-setup/pages/account/gis-account-page.ui.h:9
msgid "page 1"
msgstr "página 1"
diff --git a/po/pt_BR.po b/po/pt_BR.po
index 9573aa2..84ef020 100644
--- a/po/pt_BR.po
+++ b/po/pt_BR.po
@@ -121,6 +121,10 @@ msgid "A_utomatic Login"
msgstr "Início a_utomático de sessão"
#: ../gnome-initial-setup/pages/account/gis-account-page.ui.h:9
+msgid "Enable _Shared Account"
+msgstr "Habilitar _Conta Compartilhada"
+
+#: ../gnome-initial-setup/pages/account/gis-account-page.ui.h:9
msgid "page 1"
msgstr "página 1"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]