summaryrefslogtreecommitdiff
path: root/contrib/anastasis_gtk_main_window.glade
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-11-16 16:29:09 +0100
committerChristian Grothoff <christian@grothoff.org>2021-11-16 16:29:09 +0100
commitea94fab6e38856cf459c3571e2f9ea036babc003 (patch)
tree2866c1ac6a6dfadaedaf600cbb207ac1057f2a0d /contrib/anastasis_gtk_main_window.glade
parentfca62a91d78ba412911232006db5b237437557c2 (diff)
downloadanastasis-gtk-ea94fab6e38856cf459c3571e2f9ea036babc003.tar.gz
anastasis-gtk-ea94fab6e38856cf459c3571e2f9ea036babc003.tar.bz2
anastasis-gtk-ea94fab6e38856cf459c3571e2f9ea036babc003.zip
use GtkTextView instead of GtkEntry for the secret value (#7094), also add text to avoid user confusion between secret name/value (#7085)
Diffstat (limited to 'contrib/anastasis_gtk_main_window.glade')
-rw-r--r--contrib/anastasis_gtk_main_window.glade48
1 files changed, 38 insertions, 10 deletions
diff --git a/contrib/anastasis_gtk_main_window.glade b/contrib/anastasis_gtk_main_window.glade
index 30ce66e..4c2b747 100644
--- a/contrib/anastasis_gtk_main_window.glade
+++ b/contrib/anastasis_gtk_main_window.glade
@@ -75,6 +75,19 @@ Author: Christian Grothoff, Dennis Neufeld
</row>
</data>
</object>
+ <object class="GtkAdjustment" id="anastasis_gtk_enter_secret_hadjustment">
+ <property name="upper">100</property>
+ <property name="step-increment">1</property>
+ <property name="page-increment">10</property>
+ </object>
+ <object class="GtkTextBuffer" id="anastasis_gtk_enter_secret_textbuffer">
+ <signal name="changed" handler="anastasis_gtk_enter_secret_textbuffer_changed_cb" swapped="no"/>
+ </object>
+ <object class="GtkAdjustment" id="anastasis_gtk_enter_secret_vadjustment">
+ <property name="upper">100</property>
+ <property name="step-increment">1</property>
+ <property name="page-increment">10</property>
+ </object>
<object class="GtkListStore" id="anastasis_gtk_recovery_progress_liststore">
<columns>
<!-- column-name description -->
@@ -2582,6 +2595,7 @@ You can also use "back" to add additional authentication methods.</property>
</child>
<child>
<object class="GtkFrame" id="anastasis_gtk_enter_secret_frame">
+ <property name="height-request">1500</property>
<property name="can-focus">False</property>
<property name="label-xalign">0</property>
<property name="shadow-type">none</property>
@@ -2640,6 +2654,9 @@ You can also use "back" to add additional authentication methods.</property>
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="has-focus">True</property>
+ <property name="tooltip-text" translatable="yes">This allows you to uniquely identify a secret if you have made multiple back ups. The value entered here will NOT be protected by the authentication checks!</property>
+ <property name="primary-icon-tooltip-text" translatable="yes">If you make multiple backups using Anastasis, the secret's name will allow you to distinguish the different backups.</property>
+ <property name="placeholder-text" translatable="yes">Do NOT enter the actual secret here!</property>
<signal name="changed" handler="anastasis_gtk_enter_secret_name_entry_changed_cb" swapped="no"/>
</object>
<packing>
@@ -2707,19 +2724,30 @@ identify your secret later.</property>
<property name="visible">True</property>
<property name="can-focus">False</property>
<child>
- <object class="GtkEntry" id="anastasis_gtk_enter_secret_entry">
+ <object class="GtkScrolledWindow" id="enter_secret_scrolled_window">
<property name="visible">True</property>
<property name="can-focus">True</property>
- <property name="valign">start</property>
- <property name="margin-left">5</property>
- <property name="margin-right">5</property>
- <property name="margin-start">5</property>
- <property name="margin-end">5</property>
+ <property name="tooltip-text" translatable="yes">Enter the secret you want to back up here.</property>
+ <property name="margin-start">10</property>
+ <property name="margin-end">10</property>
<property name="hexpand">True</property>
- <property name="primary-icon-stock">gtk-dialog-authentication</property>
- <property name="placeholder-text" translatable="yes">Type or paste your secret here</property>
- <property name="input-purpose">password</property>
- <signal name="changed" handler="anastasis_gtk_enter_secret_entry_changed_cb" swapped="no"/>
+ <property name="vexpand">True</property>
+ <property name="hadjustment">anastasis_gtk_enter_secret_hadjustment</property>
+ <property name="vadjustment">anastasis_gtk_enter_secret_vadjustment</property>
+ <property name="shadow-type">in</property>
+ <child>
+ <object class="GtkTextView" id="anastasis_gtk_enter_secret_textview">
+ <property name="visible">True</property>
+ <property name="can-focus">True</property>
+ <property name="hexpand">True</property>
+ <property name="vexpand">True</property>
+ <property name="hadjustment">anastasis_gtk_enter_secret_hadjustment</property>
+ <property name="hscroll-policy">natural</property>
+ <property name="vadjustment">anastasis_gtk_enter_secret_vadjustment</property>
+ <property name="vscroll-policy">natural</property>
+ <property name="buffer">anastasis_gtk_enter_secret_textbuffer</property>
+ </object>
+ </child>
</object>
<packing>
<property name="expand">True</property>