2010-10-30 16:14:30 -04:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
<interface>
|
2022-01-26 10:13:58 +01:00
|
|
|
<template class="CcPasswordDialog" parent="AdwPreferencesWindow">
|
2014-03-26 08:32:33 +02:00
|
|
|
<property name="title" translatable="yes">Change Password</property>
|
2010-10-30 16:14:30 -04:00
|
|
|
<property name="modal">True</property>
|
2022-01-26 10:13:58 +01:00
|
|
|
<property name="hide-on-close">True</property>
|
2010-10-30 16:14:30 -04:00
|
|
|
<property name="icon_name">system-users</property>
|
2022-01-26 10:13:58 +01:00
|
|
|
<property name="default-height">420</property>
|
|
|
|
<child>
|
|
|
|
<object class="GtkBox">
|
|
|
|
<property name="orientation">vertical</property>
|
2014-03-26 08:32:33 +02:00
|
|
|
<child>
|
2022-01-26 10:13:58 +01:00
|
|
|
<object class="AdwHeaderBar">
|
|
|
|
<property name="show-start-title-buttons">False</property>
|
|
|
|
<property name="show-end-title-buttons">False</property>
|
|
|
|
<child type="start">
|
|
|
|
<object class="GtkButton">
|
|
|
|
<property name="label" translatable="yes">_Cancel</property>
|
|
|
|
<property name="visible">True</property>
|
|
|
|
<property name="visible">True</property>
|
|
|
|
<property name="receives_default">True</property>
|
|
|
|
<property name="use_underline">True</property>
|
|
|
|
<property name="valign">center</property>
|
|
|
|
<signal name="clicked" handler="gtk_window_destroy" object="CcPasswordDialog" swapped="yes"/>
|
|
|
|
<style>
|
|
|
|
<class name="text-button"/>
|
|
|
|
</style>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child type="end">
|
|
|
|
<object class="GtkButton" id="ok_button">
|
|
|
|
<property name="label" translatable="yes">Ch_ange</property>
|
|
|
|
<property name="receives_default">True</property>
|
|
|
|
<property name="use_underline">True</property>
|
|
|
|
<property name="valign">center</property>
|
|
|
|
<signal name="clicked" handler="ok_button_clicked_cb" object="CcPasswordDialog" swapped="yes"/>
|
|
|
|
<style>
|
|
|
|
<class name="text-button"/>
|
|
|
|
<class name="suggested-action"/>
|
|
|
|
</style>
|
|
|
|
</object>
|
|
|
|
</child>
|
2014-03-26 08:32:33 +02:00
|
|
|
</object>
|
|
|
|
</child>
|
2010-10-30 16:14:30 -04:00
|
|
|
<child>
|
2022-01-26 10:13:58 +01:00
|
|
|
<object class="AdwPreferencesPage">
|
2010-10-30 16:14:30 -04:00
|
|
|
<child>
|
2022-01-26 10:13:58 +01:00
|
|
|
<object class="AdwPreferencesGroup" id="password_group">
|
2010-10-30 16:14:30 -04:00
|
|
|
<child>
|
2022-01-26 10:13:58 +01:00
|
|
|
<object class="AdwActionRow" id="old_password_row">
|
|
|
|
<property name="title" translatable="yes">Current Password</property>
|
|
|
|
<property name="activatable-widget">old_password_entry</property>
|
|
|
|
<child>
|
|
|
|
<object class="GtkPasswordEntry" id="old_password_entry">
|
|
|
|
<property name="valign">center</property>
|
|
|
|
<property name="hexpand">True</property>
|
|
|
|
<property name="show-peek-icon">True</property>
|
|
|
|
<signal name="notify::text" handler="old_password_entry_changed" object="CcPasswordDialog" swapped="yes"/>
|
|
|
|
<signal name="activate" handler="old_password_entry_focus_out_cb" object="CcPasswordDialog" swapped="yes"/>
|
|
|
|
<child>
|
|
|
|
<object class="GtkEventControllerFocus">
|
|
|
|
<signal name="leave" handler="old_password_entry_focus_out_cb" object="CcPasswordDialog" swapped="yes"/>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child type="suffix">
|
|
|
|
<object class="GtkImage" id="old_password_status_icon">
|
|
|
|
<property name="icon-name">dialog-warning-symbolic</property>
|
|
|
|
</object>
|
|
|
|
</child>
|
2010-10-30 16:14:30 -04:00
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
2022-01-26 10:13:58 +01:00
|
|
|
<object class="AdwActionRow" id="password_row">
|
|
|
|
<property name="title" translatable="yes">New Password</property>
|
|
|
|
<property name="activatable-widget">password_entry</property>
|
|
|
|
<child>
|
|
|
|
<object class="GtkPasswordEntry" id="password_entry">
|
|
|
|
<property name="hexpand">True</property>
|
|
|
|
<property name="show-peek-icon">True</property>
|
|
|
|
<property name="valign">center</property>
|
|
|
|
<signal name="notify::text" handler="password_entry_changed" object="CcPasswordDialog" swapped="yes"/>
|
|
|
|
<signal name="activate" handler="password_entry_focus_out_cb" object="CcPasswordDialog" swapped="yes"/>
|
|
|
|
<child>
|
|
|
|
<object class="GtkEventControllerKey">
|
|
|
|
<signal name="key-pressed" handler="password_entry_key_press_cb" object="CcPasswordDialog" swapped="no"/>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkEventControllerFocus">
|
|
|
|
<signal name="leave" handler="password_entry_focus_out_cb" object="CcPasswordDialog" swapped="yes"/>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child type="suffix">
|
|
|
|
<object class="GtkBox">
|
|
|
|
<child>
|
|
|
|
<object class="GtkButton" id="generate_password_button">
|
|
|
|
<property name="visible">False</property>
|
|
|
|
<property name="icon-name">emblem-system-symbolic</property>
|
|
|
|
<property name="valign">center</property>
|
|
|
|
<signal name="clicked" handler="generate_password" object="CcPasswordDialog" swapped="yes"/>
|
|
|
|
<style>
|
|
|
|
<class name="flat"/>
|
|
|
|
</style>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkImage" id="password_entry_status_icon">
|
|
|
|
<property name="icon-name">dialog-warning-symbolic</property>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
</object>
|
|
|
|
</child>
|
2010-10-30 16:14:30 -04:00
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
2022-01-26 10:13:58 +01:00
|
|
|
<object class="AdwActionRow" id="verify_password_row">
|
|
|
|
<property name="title" translatable="yes">Confirm Password</property>
|
|
|
|
<property name="activatable-widget">verify_entry</property>
|
|
|
|
<child>
|
|
|
|
<object class="GtkPasswordEntry" id="verify_entry">
|
|
|
|
<property name="valign">center</property>
|
|
|
|
<property name="hexpand">True</property>
|
|
|
|
<property name="show-peek-icon">True</property>
|
|
|
|
<signal name="notify::text" handler="verify_entry_changed" object="CcPasswordDialog" swapped="yes"/>
|
|
|
|
<signal name="activate" handler="password_entry_focus_out_cb" object="CcPasswordDialog" swapped="yes"/>
|
|
|
|
<child>
|
|
|
|
<object class="GtkEventControllerFocus">
|
|
|
|
<signal name="leave" handler="password_entry_focus_out_cb" object="CcPasswordDialog" swapped="yes"/>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child type="suffix">
|
|
|
|
<object class="GtkImage" id="verify_password_status_icon">
|
|
|
|
<property name="icon-name">dialog-warning-symbolic</property>
|
|
|
|
</object>
|
|
|
|
</child>
|
2013-03-01 13:38:56 +01:00
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
2018-11-06 15:42:06 +13:00
|
|
|
<object class="GtkLevelBar" id="strength_indicator">
|
2022-01-26 10:13:58 +01:00
|
|
|
<property name="mode">continuous</property>
|
2017-04-05 13:29:30 +02:00
|
|
|
<property name="max-value">5</property>
|
2022-01-26 10:13:58 +01:00
|
|
|
<property name="margin-top">12</property>
|
2013-07-23 14:52:49 +02:00
|
|
|
<offsets>
|
2017-04-05 13:29:30 +02:00
|
|
|
<offset name="strength-weak" value="1"/>
|
|
|
|
<offset name="strength-low" value="2"/>
|
|
|
|
<offset name="strength-medium" value="3"/>
|
|
|
|
<offset name="strength-good" value="4"/>
|
|
|
|
<offset name="strength-high" value="5"/>
|
2013-07-23 14:52:49 +02:00
|
|
|
</offsets>
|
2010-10-30 16:14:30 -04:00
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
2022-01-26 10:13:58 +01:00
|
|
|
<object class="GtkLabel" id="password_hint_label">
|
|
|
|
<property name="halign">start</property>
|
|
|
|
<property name="margin-top">12</property>
|
|
|
|
<property name="wrap">True</property>
|
2011-03-14 14:14:56 -04:00
|
|
|
<style>
|
|
|
|
<class name="dim-label"/>
|
|
|
|
</style>
|
2010-10-30 16:14:30 -04:00
|
|
|
</object>
|
|
|
|
</child>
|
2022-01-26 10:13:58 +01:00
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="AdwPreferencesGroup" id="password_on_next_login_group">
|
|
|
|
<property name="visible">False</property>
|
2010-10-30 16:14:30 -04:00
|
|
|
<child>
|
2022-01-26 10:13:58 +01:00
|
|
|
<object class="AdwActionRow" id="action_login_row">
|
|
|
|
<property name="title" translatable="yes">Allow user to change their password on next login</property>
|
|
|
|
<child type="prefix">
|
|
|
|
<object class="GtkCheckButton" id="action_login_radio">
|
2013-03-01 13:38:56 +01:00
|
|
|
<property name="receives_default">False</property>
|
|
|
|
<property name="active">True</property>
|
2010-10-30 16:14:30 -04:00
|
|
|
</object>
|
|
|
|
</child>
|
2022-01-26 10:13:58 +01:00
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="AdwActionRow" id="action_now_row">
|
|
|
|
<property name="title" translatable="yes">Set a password now</property>
|
|
|
|
<child type="prefix">
|
|
|
|
<object class="GtkCheckButton" id="action_now_radio">
|
2013-03-01 13:38:56 +01:00
|
|
|
<property name="receives_default">False</property>
|
|
|
|
<property name="active">True</property>
|
2018-11-06 15:42:06 +13:00
|
|
|
<property name="group">action_login_radio</property>
|
2018-11-07 09:28:46 +13:00
|
|
|
<signal name="toggled" handler="action_now_radio_toggled_cb" object="CcPasswordDialog" swapped="yes"/>
|
2010-10-30 16:14:30 -04:00
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
</object>
|
|
|
|
</child>
|
2018-11-06 15:42:06 +13:00
|
|
|
</template>
|
2010-10-30 16:14:30 -04:00
|
|
|
</interface>
|