[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-anastasis-gtk] branch master updated: begin adding logic for poli
From: |
gnunet |
Subject: |
[taler-anastasis-gtk] branch master updated: begin adding logic for policy version showing/selection |
Date: |
Fri, 19 Mar 2021 22:15:44 +0100 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository anastasis-gtk.
The following commit(s) were added to refs/heads/master by this push:
new a9be10f begin adding logic for policy version showing/selection
a9be10f is described below
commit a9be10f868491610b8f8a8b649cf0063c8ad4ff7
Author: Christian Grothoff <grothoff@gnunet.org>
AuthorDate: Fri Mar 19 22:15:41 2021 +0100
begin adding logic for policy version showing/selection
---
Makefile.am | 8 -
contrib/anastasis_gtk_main_window.glade | 107 +++++-
po/POTFILES.in | 5 +
po/anastasis-gtk.pot | 357 ++++++++++++++++++++-
po/de.po | 357 ++++++++++++++++++++-
src/anastasis/Makefile.am | 1 +
src/anastasis/anastasis-gtk_action.c | 59 +++-
.../anastasis-gtk_handle-policy-version-changed.c | 43 +++
8 files changed, 895 insertions(+), 42 deletions(-)
diff --git a/Makefile.am b/Makefile.am
index db46e1e..ace6c97 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -10,15 +10,7 @@ desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
pkgpixdir= $(pkgdatadir)
-
doc_DATA = COPYING README
ACLOCAL_AMFLAGS = -I m4
-install-data-local:
- @$(NORMAL_INSTALL)
- $(mkinstalldirs) $(DESTDIR)$(pkgpixdir)
-
-EXTRA_DIST = \
- config.rpath \
- mkinstalldirs
diff --git a/contrib/anastasis_gtk_main_window.glade
b/contrib/anastasis_gtk_main_window.glade
index 21818f5..bb6a405 100644
--- a/contrib/anastasis_gtk_main_window.glade
+++ b/contrib/anastasis_gtk_main_window.glade
@@ -1096,19 +1096,72 @@ Author: Christian Grothoff, Dennis Neufeld
<property
name="visible">True</property>
<property
name="can-focus">False</property>
<child>
- <object class="GtkBox"
id="anastasis_gtk_challenge_list_box">
+ <object class="GtkBox">
<property
name="visible">True</property>
<property
name="can-focus">False</property>
- <property
name="margin-top">5</property>
- <property
name="margin-bottom">5</property>
<child>
- <placeholder/>
+ <object class="GtkBox"
id="anastasis_gtk_challenge_list_box">
+ <property
name="visible">True</property>
+ <property
name="can-focus">False</property>
+ <property
name="margin-top">5</property>
+ <property
name="margin-bottom">5</property>
+ <child>
+ <placeholder/>
+ </child>
+ </object>
+ <packing>
+ <property
name="expand">False</property>
+ <property
name="fill">True</property>
+ <property
name="padding">5</property>
+ <property
name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkSeparator">
+ <property
name="visible">True</property>
+ <property
name="can-focus">False</property>
+ </object>
+ <packing>
+ <property
name="expand">True</property>
+ <property
name="fill">True</property>
+ <property
name="padding">5</property>
+ <property
name="position">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel">
+ <property
name="visible">True</property>
+ <property
name="can-focus">False</property>
+ <property name="label"
translatable="yes">Policy version:</property>
+ </object>
+ <packing>
+ <property
name="expand">False</property>
+ <property
name="fill">True</property>
+ <property
name="padding">5</property>
+ <property
name="position">2</property>
+ </packing>
+ </child>
+ <child>
+ <object
class="GtkSpinButton" id="anastasis_gtk_policy_version_spin_button">
+ <property
name="visible">True</property>
+ <property
name="can-focus">True</property>
+ <property
name="primary-icon-stock">gtk-index</property>
+ <property
name="input-purpose">number</property>
+ <property
name="climb-rate">1</property>
+ <property
name="numeric">True</property>
+ <signal name="changed"
handler="anastasis_gtk_policy_version_spin_button_changed_cb" swapped="no"/>
+ </object>
+ <packing>
+ <property
name="expand">False</property>
+ <property
name="fill">True</property>
+ <property
name="padding">5</property>
+ <property
name="position">3</property>
+ </packing>
</child>
</object>
<packing>
<property
name="expand">False</property>
- <property
name="fill">False</property>
- <property
name="padding">5</property>
+ <property
name="fill">True</property>
<property
name="position">0</property>
</packing>
</child>
@@ -1498,15 +1551,47 @@ Author: Christian Grothoff, Dennis Neufeld
<property
name="visible">True</property>
<property
name="can-focus">False</property>
<child>
- <object class="GtkLabel"
id="anastasis_gtk_success_backup_label">
+ <object class="GtkBox">
+ <property
name="visible">True</property>
<property
name="can-focus">False</property>
- <property name="label"
translatable="yes">Your backup is complete.</property>
- <property
name="justify">center</property>
+ <property
name="orientation">vertical</property>
+ <child>
+ <object class="GtkLabel"
id="anastasis_gtk_success_backup_label">
+ <property
name="can-focus">False</property>
+ <property name="label"
translatable="yes">Your backup is complete.</property>
+ <property
name="justify">center</property>
+ <attributes>
+ <attribute name="weight"
value="bold"/>
+ </attributes>
+ </object>
+ <packing>
+ <property
name="expand">False</property>
+ <property
name="fill">False</property>
+ <property
name="padding">5</property>
+ <property
name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel"
id="anastasis_gtk_success_backup_version_label">
+ <property
name="visible">True</property>
+ <property
name="can-focus">False</property>
+ <property name="label"
translatable="yes">DYNAMIC</property>
+ <property
name="use-markup">True</property>
+ </object>
+ <packing>
+ <property
name="expand">False</property>
+ <property
name="fill">True</property>
+ <property
name="padding">10</property>
+ <property
name="position">1</property>
+ </packing>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
</object>
<packing>
- <property
name="expand">True</property>
+ <property
name="expand">False</property>
<property
name="fill">True</property>
- <property
name="padding">5</property>
<property
name="position">0</property>
</packing>
</child>
diff --git a/po/POTFILES.in b/po/POTFILES.in
index be38054..32374f1 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -22,10 +22,13 @@ src/anastasis/anastasis-gtk_handle-method-post.c
src/anastasis/anastasis-gtk_handle-method-question.c
src/anastasis/anastasis-gtk_handle-method-sms.c
src/anastasis/anastasis-gtk_handle-method-video.c
+src/anastasis/anastasis-gtk_handle-payqr-selection-changed.c
+src/anastasis/anastasis-gtk_handle-recovery-button-clicked.c
src/anastasis/anastasis-gtk_handle-secret-buttons.c
src/anastasis/anastasis-gtk_helper.c
src/anastasis/anastasis-gtk_io.c
src/anastasis/os_installation.c
+contrib/anastasis_gtk_about_window.glade
contrib/anastasis_gtk_auth_add_email.glade
contrib/anastasis_gtk_auth_add_post.glade
contrib/anastasis_gtk_auth_add_question.glade
@@ -36,4 +39,6 @@ contrib/anastasis_gtk_challenge_question.glade
contrib/anastasis_gtk_edit_providers.glade
contrib/anastasis_gtk_main_window.glade
contrib/anastasis_gtk_open_file_dialog.glade
+contrib/anastasis_gtk_open_secret_dialog.glade
contrib/anastasis_gtk_save_file_dialog.glade
+contrib/anastasis_gtk_save_secret_dialog.glade
diff --git a/po/anastasis-gtk.pot b/po/anastasis-gtk.pot
index 5685f6b..fed6e2e 100644
--- a/po/anastasis-gtk.pot
+++ b/po/anastasis-gtk.pot
@@ -6,9 +6,9 @@
#, fuzzy
msgid ""
msgstr ""
-"Project-Id-Version: anastasis-gtk unknown\n"
+"Project-Id-Version: anastasis-gtk 0.0.0\n"
"Report-Msgid-Bugs-To: bug-anastasis@gnu.org\n"
-"POT-Creation-Date: 2020-08-30 01:12+0200\n"
+"POT-Creation-Date: 2021-03-19 21:28+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -17,40 +17,375 @@ msgstr ""
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"
-#: contrib/anastasis_gtk_about_window.glade:65
+#: src/anastasis/anastasis-gtk_action.c:1065
+#: src/anastasis/anastasis-gtk_action.c:1145
+#: src/anastasis/anastasis-gtk_action.c:1562
+#, c-format
+msgid "Failed to initialize QR-code pixbuf for `%s'\n"
+msgstr ""
+
+#: src/anastasis/anastasis-gtk_action.c:1479
+#, c-format
+msgid "Price: %s"
+msgstr ""
+
+#: contrib/anastasis_gtk_about_window.glade:18
msgid ""
"License should be loaded here at runtime from the license file (no need to "
"copy the whole GPL in here...)."
msgstr ""
-#: contrib/anastasis_gtk_about_window.glade:158
+#: contrib/anastasis_gtk_about_window.glade:111
msgid "Developed by"
msgstr ""
-#: contrib/anastasis_gtk_about_window.glade:190
+#: contrib/anastasis_gtk_about_window.glade:143
msgid "Documented by"
msgstr ""
-#: contrib/anastasis_gtk_about_window.glade:223
+#: contrib/anastasis_gtk_about_window.glade:176
msgid "Translated by"
msgstr ""
-#: contrib/anastasis_gtk_about_window.glade:256
+#: contrib/anastasis_gtk_about_window.glade:209
msgid "Artwork by"
msgstr ""
-#: contrib/anastasis_gtk_about_window.glade:301
+#: contrib/anastasis_gtk_about_window.glade:254
msgid "Credits"
msgstr ""
-#: contrib/anastasis_gtk_about_window.glade:316
+#: contrib/anastasis_gtk_about_window.glade:269
msgid "License"
msgstr ""
-#: contrib/anastasis_gtk_main_window.glade:95
+#: contrib/anastasis_gtk_auth_add_email.glade:68
+msgid "Email address:"
+msgstr ""
+
+#: contrib/anastasis_gtk_auth_add_email.glade:120
+msgid "Add email authentication"
+msgstr ""
+
+#: contrib/anastasis_gtk_auth_add_post.glade:79
+msgid "_Full name:"
+msgstr ""
+
+#: contrib/anastasis_gtk_auth_add_post.glade:119
+msgid "_Street:"
+msgstr ""
+
+#: contrib/anastasis_gtk_auth_add_post.glade:158
+msgid "_City:"
+msgstr ""
+
+#: contrib/anastasis_gtk_auth_add_post.glade:197
+msgid "_Postcode:"
+msgstr ""
+
+#: contrib/anastasis_gtk_auth_add_post.glade:236
+msgid "Countr_y:"
+msgstr ""
+
+#: contrib/anastasis_gtk_auth_add_post.glade:284
+msgid "Add post authentication"
+msgstr ""
+
+#: contrib/anastasis_gtk_auth_add_question.glade:20
+#: contrib/anastasis_gtk_challenge_code.glade:20
+#: contrib/anastasis_gtk_challenge_question.glade:20
+msgid "Cancel"
+msgstr ""
+
+#: contrib/anastasis_gtk_auth_add_question.glade:33
+#: contrib/anastasis_gtk_challenge_code.glade:33
+#: contrib/anastasis_gtk_challenge_question.glade:33
+msgid "OK"
+msgstr ""
+
+#: contrib/anastasis_gtk_auth_add_question.glade:76
+#: contrib/anastasis_gtk_challenge_question.glade:76
+msgid "Security question:"
+msgstr ""
+
+#: contrib/anastasis_gtk_auth_add_question.glade:135
+#: contrib/anastasis_gtk_challenge_question.glade:131
+msgid "Answer:"
+msgstr ""
+
+#: contrib/anastasis_gtk_auth_add_question.glade:178
+msgid "Add security question authentication"
+msgstr ""
+
+#: contrib/anastasis_gtk_auth_add_sms.glade:68
+msgid "Phone number:"
+msgstr ""
+
+#: contrib/anastasis_gtk_auth_add_sms.glade:84
+msgid "+41123456789"
+msgstr ""
+
+#: contrib/anastasis_gtk_auth_add_sms.glade:120
+msgid "Add sms authentication"
+msgstr ""
+
+#: contrib/anastasis_gtk_auth_add_video.glade:73
+msgid "Choose a photo:"
+msgstr ""
+
+#: contrib/anastasis_gtk_auth_add_video.glade:131
+msgid "Add video authentication"
+msgstr ""
+
+#: contrib/anastasis_gtk_challenge_code.glade:76
+msgid "A challenge code has been send to:"
+msgstr ""
+
+#: contrib/anastasis_gtk_challenge_code.glade:89
+#: contrib/anastasis_gtk_challenge_question.glade:89
+msgid "SET DYNAMICALLY BY PROGRAM"
+msgstr ""
+
+#: contrib/anastasis_gtk_challenge_code.glade:131
+msgid "Enter code:"
+msgstr ""
+
+#: contrib/anastasis_gtk_challenge_code.glade:174
+msgid "Security token challenge"
+msgstr ""
+
+#: contrib/anastasis_gtk_challenge_question.glade:174
+msgid "Solve secuity question challenge"
+msgstr ""
+
+#: contrib/anastasis_gtk_edit_providers.glade:99
+msgid "Provider URL:"
+msgstr ""
+
+#: contrib/anastasis_gtk_edit_providers.glade:119
+msgid "https://"
+msgstr ""
+
+#: contrib/anastasis_gtk_edit_providers.glade:190
+msgid "URL"
+msgstr ""
+
+#: contrib/anastasis_gtk_edit_providers.glade:210
+msgid "Known providers"
+msgstr ""
+
+#: contrib/anastasis_gtk_edit_providers.glade:248
+msgid "Add Anastasis provider"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:126
msgid "_File"
msgstr ""
-#: contrib/anastasis_gtk_main_window.glade:119
+#: contrib/anastasis_gtk_main_window.glade:150
msgid "_Help"
msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:216
+msgid "DYNAMIC ERROR MESSAGE"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:250
+msgid "Backup"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:254
+msgid "Begin fresh backup process"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:271
+msgid "Continue from file with saved Anastasis state"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:284
+msgid "Restore"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:288
+msgid "Begin secret recovery process"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:307
+msgid "What do you want to do?"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:351
+msgid "Continent"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:383
+msgid "Country"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:407
+msgid "Where do you live?"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:446
+msgid "Full name:"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:460
+msgid "Max Mustermann"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:488
+msgid "Birthdate:"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:533
+msgid "AHV number:"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:550
+msgid "756.1222.3425.89"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:579
+#: contrib/anastasis_gtk_main_window.glade:625
+msgid "Social security number:"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:595
+msgid "14230460S534"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:641
+msgid "000-00-0000"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:667
+msgid "Who are you?"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:715
+msgid "SMS"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:730
+msgid "Email"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:745
+msgid "Question"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:761
+msgid "Post"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:776
+msgid "Video"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:794
+msgid "Which authorization method should be added?"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:843
+#: contrib/anastasis_gtk_main_window.glade:1018
+#: contrib/anastasis_gtk_main_window.glade:1160
+msgid "Type"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:859
+msgid "Details"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:879
+msgid "Authorization methods configured so far:"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:900
+msgid "Add provider"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:965
+msgid "Configure authorization methods!"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:1006
+#: contrib/anastasis_gtk_main_window.glade:1148
+msgid "Policy"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:1030
+#: contrib/anastasis_gtk_main_window.glade:1172
+msgid "Cost"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:1041
+#: contrib/anastasis_gtk_main_window.glade:1183
+msgid "Provider"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:1065
+msgid "Review recovery policies"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:1213
+msgid "Select challenge to recover secret:"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:1252
+msgid "Enter as text:"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:1295
+msgid "Use file input:"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:1338
+msgid "Provide secret to backup:"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:1376
+msgid "Please pay with GNU Taler:"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:1413
+msgid "Payment QR Code"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:1426
+msgid "Taler Pay URI"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:1469
+msgid "Payment required:"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:1503
+msgid "Your backup is complete."
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:1522
+msgid "Your secret was recovered:"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:1553
+msgid ""
+"The secret is shown here in Crockford Base32 encoding. When copying to the "
+"clipboard or saving to file, it will be decoded first."
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:1554
+msgid "THE SECRET TEXT"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:1572
+msgid "Copy secret to clipboard"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:1589
+msgid "Save secret to file"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:1669
+msgid "Success!"
+msgstr ""
diff --git a/po/de.po b/po/de.po
index 26b1a6c..81ae92c 100644
--- a/po/de.po
+++ b/po/de.po
@@ -7,17 +7,29 @@ msgid ""
msgstr ""
"Project-Id-Version: anastasis-gtk unknown\n"
"Report-Msgid-Bugs-To: bug-anastasis@gnu.org\n"
-"POT-Creation-Date: 2020-08-30 01:12+0200\n"
+"POT-Creation-Date: 2021-03-19 21:28+0100\n"
"PO-Revision-Date: 2020-08-30 01:12+0200\n"
"Last-Translator: \n"
"Language-Team: English\n"
-"Language: en_US\n"
+"Language: de\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
-#: contrib/anastasis_gtk_about_window.glade:65
+#: src/anastasis/anastasis-gtk_action.c:1065
+#: src/anastasis/anastasis-gtk_action.c:1145
+#: src/anastasis/anastasis-gtk_action.c:1562
+#, c-format
+msgid "Failed to initialize QR-code pixbuf for `%s'\n"
+msgstr ""
+
+#: src/anastasis/anastasis-gtk_action.c:1479
+#, c-format
+msgid "Price: %s"
+msgstr ""
+
+#: contrib/anastasis_gtk_about_window.glade:18
msgid ""
"License should be loaded here at runtime from the license file (no need to "
"copy the whole GPL in here...)."
@@ -25,34 +37,357 @@ msgstr ""
"License should be loaded here at runtime from the license file (no need to "
"copy the whole GPL in here...)."
-#: contrib/anastasis_gtk_about_window.glade:158
+#: contrib/anastasis_gtk_about_window.glade:111
msgid "Developed by"
msgstr "Developed by"
-#: contrib/anastasis_gtk_about_window.glade:190
+#: contrib/anastasis_gtk_about_window.glade:143
msgid "Documented by"
msgstr "Documented by"
-#: contrib/anastasis_gtk_about_window.glade:223
+#: contrib/anastasis_gtk_about_window.glade:176
msgid "Translated by"
msgstr "Translated by"
-#: contrib/anastasis_gtk_about_window.glade:256
+#: contrib/anastasis_gtk_about_window.glade:209
msgid "Artwork by"
msgstr "Artwork by"
-#: contrib/anastasis_gtk_about_window.glade:301
+#: contrib/anastasis_gtk_about_window.glade:254
msgid "Credits"
msgstr "Credits"
-#: contrib/anastasis_gtk_about_window.glade:316
+#: contrib/anastasis_gtk_about_window.glade:269
msgid "License"
msgstr "License"
-#: contrib/anastasis_gtk_main_window.glade:95
+#: contrib/anastasis_gtk_auth_add_email.glade:68
+msgid "Email address:"
+msgstr ""
+
+#: contrib/anastasis_gtk_auth_add_email.glade:120
+msgid "Add email authentication"
+msgstr ""
+
+#: contrib/anastasis_gtk_auth_add_post.glade:79
+msgid "_Full name:"
+msgstr ""
+
+#: contrib/anastasis_gtk_auth_add_post.glade:119
+msgid "_Street:"
+msgstr ""
+
+#: contrib/anastasis_gtk_auth_add_post.glade:158
+msgid "_City:"
+msgstr ""
+
+#: contrib/anastasis_gtk_auth_add_post.glade:197
+msgid "_Postcode:"
+msgstr ""
+
+#: contrib/anastasis_gtk_auth_add_post.glade:236
+msgid "Countr_y:"
+msgstr ""
+
+#: contrib/anastasis_gtk_auth_add_post.glade:284
+msgid "Add post authentication"
+msgstr ""
+
+#: contrib/anastasis_gtk_auth_add_question.glade:20
+#: contrib/anastasis_gtk_challenge_code.glade:20
+#: contrib/anastasis_gtk_challenge_question.glade:20
+msgid "Cancel"
+msgstr ""
+
+#: contrib/anastasis_gtk_auth_add_question.glade:33
+#: contrib/anastasis_gtk_challenge_code.glade:33
+#: contrib/anastasis_gtk_challenge_question.glade:33
+msgid "OK"
+msgstr ""
+
+#: contrib/anastasis_gtk_auth_add_question.glade:76
+#: contrib/anastasis_gtk_challenge_question.glade:76
+msgid "Security question:"
+msgstr ""
+
+#: contrib/anastasis_gtk_auth_add_question.glade:135
+#: contrib/anastasis_gtk_challenge_question.glade:131
+msgid "Answer:"
+msgstr ""
+
+#: contrib/anastasis_gtk_auth_add_question.glade:178
+msgid "Add security question authentication"
+msgstr ""
+
+#: contrib/anastasis_gtk_auth_add_sms.glade:68
+msgid "Phone number:"
+msgstr ""
+
+#: contrib/anastasis_gtk_auth_add_sms.glade:84
+msgid "+41123456789"
+msgstr ""
+
+#: contrib/anastasis_gtk_auth_add_sms.glade:120
+msgid "Add sms authentication"
+msgstr ""
+
+#: contrib/anastasis_gtk_auth_add_video.glade:73
+msgid "Choose a photo:"
+msgstr ""
+
+#: contrib/anastasis_gtk_auth_add_video.glade:131
+msgid "Add video authentication"
+msgstr ""
+
+#: contrib/anastasis_gtk_challenge_code.glade:76
+msgid "A challenge code has been send to:"
+msgstr ""
+
+#: contrib/anastasis_gtk_challenge_code.glade:89
+#: contrib/anastasis_gtk_challenge_question.glade:89
+msgid "SET DYNAMICALLY BY PROGRAM"
+msgstr ""
+
+#: contrib/anastasis_gtk_challenge_code.glade:131
+msgid "Enter code:"
+msgstr ""
+
+#: contrib/anastasis_gtk_challenge_code.glade:174
+msgid "Security token challenge"
+msgstr ""
+
+#: contrib/anastasis_gtk_challenge_question.glade:174
+msgid "Solve secuity question challenge"
+msgstr ""
+
+#: contrib/anastasis_gtk_edit_providers.glade:99
+msgid "Provider URL:"
+msgstr ""
+
+#: contrib/anastasis_gtk_edit_providers.glade:119
+msgid "https://"
+msgstr ""
+
+#: contrib/anastasis_gtk_edit_providers.glade:190
+msgid "URL"
+msgstr ""
+
+#: contrib/anastasis_gtk_edit_providers.glade:210
+msgid "Known providers"
+msgstr ""
+
+#: contrib/anastasis_gtk_edit_providers.glade:248
+msgid "Add Anastasis provider"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:126
msgid "_File"
msgstr "_File"
-#: contrib/anastasis_gtk_main_window.glade:119
+#: contrib/anastasis_gtk_main_window.glade:150
msgid "_Help"
msgstr "_Help"
+
+#: contrib/anastasis_gtk_main_window.glade:216
+msgid "DYNAMIC ERROR MESSAGE"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:250
+msgid "Backup"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:254
+msgid "Begin fresh backup process"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:271
+msgid "Continue from file with saved Anastasis state"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:284
+msgid "Restore"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:288
+msgid "Begin secret recovery process"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:307
+msgid "What do you want to do?"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:351
+msgid "Continent"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:383
+msgid "Country"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:407
+msgid "Where do you live?"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:446
+msgid "Full name:"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:460
+msgid "Max Mustermann"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:488
+msgid "Birthdate:"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:533
+msgid "AHV number:"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:550
+msgid "756.1222.3425.89"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:579
+#: contrib/anastasis_gtk_main_window.glade:625
+msgid "Social security number:"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:595
+msgid "14230460S534"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:641
+msgid "000-00-0000"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:667
+msgid "Who are you?"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:715
+msgid "SMS"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:730
+msgid "Email"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:745
+msgid "Question"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:761
+msgid "Post"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:776
+msgid "Video"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:794
+msgid "Which authorization method should be added?"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:843
+#: contrib/anastasis_gtk_main_window.glade:1018
+#: contrib/anastasis_gtk_main_window.glade:1160
+msgid "Type"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:859
+msgid "Details"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:879
+msgid "Authorization methods configured so far:"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:900
+msgid "Add provider"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:965
+msgid "Configure authorization methods!"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:1006
+#: contrib/anastasis_gtk_main_window.glade:1148
+msgid "Policy"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:1030
+#: contrib/anastasis_gtk_main_window.glade:1172
+msgid "Cost"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:1041
+#: contrib/anastasis_gtk_main_window.glade:1183
+msgid "Provider"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:1065
+msgid "Review recovery policies"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:1213
+msgid "Select challenge to recover secret:"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:1252
+msgid "Enter as text:"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:1295
+msgid "Use file input:"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:1338
+msgid "Provide secret to backup:"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:1376
+msgid "Please pay with GNU Taler:"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:1413
+msgid "Payment QR Code"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:1426
+msgid "Taler Pay URI"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:1469
+msgid "Payment required:"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:1503
+msgid "Your backup is complete."
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:1522
+msgid "Your secret was recovered:"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:1553
+msgid ""
+"The secret is shown here in Crockford Base32 encoding. When copying to the "
+"clipboard or saving to file, it will be decoded first."
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:1554
+msgid "THE SECRET TEXT"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:1572
+msgid "Copy secret to clipboard"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:1589
+msgid "Save secret to file"
+msgstr ""
+
+#: contrib/anastasis_gtk_main_window.glade:1669
+msgid "Success!"
+msgstr ""
diff --git a/src/anastasis/Makefile.am b/src/anastasis/Makefile.am
index 03e3b10..bfbdaef 100644
--- a/src/anastasis/Makefile.am
+++ b/src/anastasis/Makefile.am
@@ -39,6 +39,7 @@ anastasis_gtk_SOURCES = \
anastasis-gtk_handle-method-question.c \
anastasis-gtk_handle-method-sms.c \
anastasis-gtk_handle-payqr-selection-changed.c \
+ anastasis-gtk_handle-policy-version-changed.c \
anastasis-gtk_helper.c anastasis-gtk_helper.h \
os_installation.c
diff --git a/src/anastasis/anastasis-gtk_action.c
b/src/anastasis/anastasis-gtk_action.c
index fc66b8f..d7f0453 100644
--- a/src/anastasis/anastasis-gtk_action.c
+++ b/src/anastasis/anastasis-gtk_action.c
@@ -1111,7 +1111,7 @@ action_policies_paying (void)
AG_hide_all_frames ();
ls = GTK_LIST_STORE (GCG_get_main_window_object (
- "unpaid_qrcodes_liststore"));
+ "unpaid_qrcodes_liststore"));
gtk_list_store_clear (ls);
pprs = json_object_get (redux_state,
"policy_payment_requests");
@@ -1183,7 +1183,35 @@ action_policies_paying (void)
static void
action_backup_finished (void)
{
+ GtkLabel *l;
+ char *txt;
+ uint64_t version;
+ struct GNUNET_JSON_Specification spec[] = {
+ GNUNET_JSON_spec_uint64
("max_policy_version",
+ &version),
+ GNUNET_JSON_spec_end ()
+ };
+
AG_hide_all_frames ();
+
+ if (GNUNET_OK !=
+ GNUNET_JSON_parse (redux_state,
+ spec,
+ NULL, NULL))
+ {
+ GNUNET_break_op (0);
+ AG_error ("State did not parse correctly");
+ return;
+ }
+
+ l = GTK_LABEL (GCG_get_main_window_object (
+
"anastasis_gtk_success_backup_version_label"));
+ GNUNET_asprintf (&txt,
+ _("Maximum created policy version is <b>%llu</b>."),
+ (unsigned long long) version);
+ gtk_label_set_text (l,
+ txt);
+ GNUNET_free (txt);
AG_show ("anastasis_gtk_completed_frame");
AG_show ("anastasis_gtk_success_backup_label");
AG_hide ("anastasis_gtk_success_recovery_box");
@@ -1282,8 +1310,37 @@ action_challenge_selecting (void)
json_t *challenge;
GtkBox *box;
json_t *rd;
+ json_t *ri;
AG_hide_all_frames ();
+ ri = json_object_get (redux_state,
+ "recovery_information");
+ {
+ uint64_t version;
+ struct GNUNET_JSON_Specification vspec[] = {
+ GNUNET_JSON_spec_uint64
("version",
+ &version),
+ GNUNET_JSON_spec_end ()
+ };
+ GtkSpinButton *sb;
+
+ if (GNUNET_OK !=
+ GNUNET_JSON_parse (ri,
+ vspec,
+ NULL, NULL))
+ {
+ GNUNET_break_op (0);
+ AG_error ("'recovery_information' did not parse correctly");
+ return;
+ }
+ sb = GTK_SPIN_BUTTON (GCG_get_main_window_object (
+
"anastasis_gtk_policy_version_spin_button"));
+ gtk_spin_button_set_range (sb,
+ 0.0,
+ version);
+ gtk_spin_button_set_value (sb,
+ version);
+ }
rd = json_object_get (redux_state,
"recovery_document");
{
diff --git a/src/anastasis/anastasis-gtk_handle-policy-version-changed.c
b/src/anastasis/anastasis-gtk_handle-policy-version-changed.c
new file mode 100644
index 0000000..ce82ba8
--- /dev/null
+++ b/src/anastasis/anastasis-gtk_handle-policy-version-changed.c
@@ -0,0 +1,43 @@
+/*
+ This file is part of anastasis-gtk.
+ Copyright (C) 2020 Anastasis SARL
+
+ Anastasis is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published
+ by the Free Software Foundation; either version 3, or (at your
+ option) any later version.
+
+ Anastasis is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with Anastasis; see the file COPYING. If not, write to the
+ Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ Boston, MA 02110-1301, USA.
+*/
+/**
+ * @file src/anastasis/anastasis-gtk_handle-policy-version-changed.c
+ * @brief
+ * @author Christian Grothoff
+ */
+#include <gnunet/platform.h>
+#include <gnunet/gnunet_util_lib.h>
+#include "anastasis-gtk_helper.h"
+#include "anastasis-gtk_action.h"
+#include "anastasis-gtk_attributes.h"
+#include "anastasis-gtk_handle-identity-changed.h"
+#include <jansson.h>
+
+
+void
+anastasis_gtk_policy_version_spin_button_changed_cb (GtkEditable *entry,
+ gpointer user_data)
+{
+ GtkSpinButton *sb = GTK_SPIN_BUTTON (entry);
+ gint version;
+
+ version = gtk_spin_button_get_value_as_int (sb);
+ GNUNET_break (0); // change version not implemented!
+}
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [taler-anastasis-gtk] branch master updated: begin adding logic for policy version showing/selection,
gnunet <=