commit 0ef65d64802fda550ee341a2b53f597d7996ab68 parent 300fb6a20d0027c08262a0c6ac50000d658cf81a Author: Christian Grothoff <christian@grothoff.org> Date: Sun, 26 Sep 2021 13:09:02 +0200 add dialog window to warn user if using too few authentication factors Diffstat:
| M | contrib/Makefile.am | | | 3 | ++- |
| A | contrib/anastasis_gtk_warn_multifactor.glade | | | 75 | +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
2 files changed, 77 insertions(+), 1 deletion(-)
diff --git a/contrib/Makefile.am b/contrib/Makefile.am @@ -40,4 +40,5 @@ pkgdata_DATA = \ anastasis_gtk_open_secret_dialog.glade \ anastasis_gtk_main_window.glade \ anastasis_gtk_save_file_dialog.glade \ - anastasis_gtk_save_secret_dialog.glade + anastasis_gtk_save_secret_dialog.glade \ + anastasis_gtk_warn_multifactor.glade diff --git a/contrib/anastasis_gtk_warn_multifactor.glade b/contrib/anastasis_gtk_warn_multifactor.glade @@ -0,0 +1,75 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- Generated with glade 3.38.2 --> +<interface> + <requires lib="gtk+" version="3.24"/> + <object class="GtkMessageDialog" id="anastasis_gtk_confirm_multifactor_dialog"> + <property name="can-focus">False</property> + <property name="title" translatable="yes">Confirm use of few authentication methods.</property> + <property name="modal">True</property> + <property name="window-position">center</property> + <property name="type-hint">dialog</property> + <property name="message-type">warning</property> + <property name="text" translatable="yes">To keep your secret secure, we recommend you specify at least three authentication options before proceeding.</property> + <property name="secondary-text" translatable="yes">Select "back" to add additional authentication options.</property> + <signal name="close" handler="anastasis_gtk_confirm_multifactor_dialog_close_cb" swapped="no"/> + <signal name="response" handler="anastasis_gtk_confirm_multifactor_dialog_response_cb" swapped="no"/> + <child internal-child="vbox"> + <object class="GtkBox"> + <property name="can-focus">False</property> + <property name="orientation">vertical</property> + <property name="spacing">2</property> + <child internal-child="action_area"> + <object class="GtkButtonBox"> + <property name="can-focus">False</property> + <property name="homogeneous">True</property> + <property name="layout-style">end</property> + <child> + <object class="GtkButton" id="back_button"> + <property name="label">gtk-go-back</property> + <property name="visible">True</property> + <property name="can-focus">True</property> + <property name="receives-default">True</property> + <property name="tooltip-text" translatable="yes">Go back to the previous dialog to add more authentication options.</property> + <property name="use-stock">True</property> + </object> + <packing> + <property name="expand">True</property> + <property name="fill">True</property> + <property name="padding">5</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkButton" id="next_button"> + <property name="label">gtk-media-next</property> + <property name="visible">True</property> + <property name="can-focus">True</property> + <property name="has-focus">True</property> + <property name="has-default">True</property> + <property name="receives-default">True</property> + <property name="tooltip-text" translatable="yes">Proceed without adding additional authentication options.</property> + <property name="use-stock">True</property> + <property name="always-show-image">True</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> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">0</property> + </packing> + </child> + </object> + </child> + <action-widgets> + <action-widget response="-6">back_button</action-widget> + <action-widget response="-5">next_button</action-widget> + </action-widgets> + </object> +</interface>