user-accounts: remove email configuration
We don't use it yet. We can add it back if we want.
This commit is contained in:
parent
31f2e6bbe5
commit
0cc58a4efa
2 changed files with 0 additions and 57 deletions
|
@ -325,34 +325,6 @@
|
||||||
<property name="y_options"></property>
|
<property name="y_options"></property>
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
|
||||||
<object class="GtkLabel" id="email-label">
|
|
||||||
<property name="visible">True</property>
|
|
||||||
<property name="xalign">1</property>
|
|
||||||
<property name="label" translatable="yes">E-mail address:</property>
|
|
||||||
<attributes>
|
|
||||||
<attribute name="foreground" value="#555555555555"/>
|
|
||||||
</attributes>
|
|
||||||
</object>
|
|
||||||
<packing>
|
|
||||||
<property name="top_attach">3</property>
|
|
||||||
<property name="bottom_attach">4</property>
|
|
||||||
<property name="x_options">GTK_FILL</property>
|
|
||||||
<property name="y_options"></property>
|
|
||||||
</packing>
|
|
||||||
</child>
|
|
||||||
<child>
|
|
||||||
<object class="UmEditableEntry" id="account-email-entry">
|
|
||||||
<property name="visible">True</property>
|
|
||||||
</object>
|
|
||||||
<packing>
|
|
||||||
<property name="left_attach">1</property>
|
|
||||||
<property name="right_attach">2</property>
|
|
||||||
<property name="top_attach">3</property>
|
|
||||||
<property name="bottom_attach">4</property>
|
|
||||||
<property name="y_options"></property>
|
|
||||||
</packing>
|
|
||||||
</child>
|
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkLabel" id="language-label">
|
<object class="GtkLabel" id="language-label">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
|
@ -505,7 +477,6 @@
|
||||||
<widgets>
|
<widgets>
|
||||||
<widget name="account-fingerprint-label"/>
|
<widget name="account-fingerprint-label"/>
|
||||||
<widget name="language-label"/>
|
<widget name="language-label"/>
|
||||||
<widget name="email-label"/>
|
|
||||||
<widget name="password-label"/>
|
<widget name="password-label"/>
|
||||||
<widget name="account-type-label"/>
|
<widget name="account-type-label"/>
|
||||||
</widgets>
|
</widgets>
|
||||||
|
|
|
@ -518,9 +518,6 @@ show_user (UmUser *user, UmUserPanelPrivate *d)
|
||||||
widget = get_widget (d, "account-password-button");
|
widget = get_widget (d, "account-password-button");
|
||||||
um_editable_button_set_text (UM_EDITABLE_BUTTON (widget), get_password_mode_text (user));
|
um_editable_button_set_text (UM_EDITABLE_BUTTON (widget), get_password_mode_text (user));
|
||||||
|
|
||||||
widget = get_widget (d, "account-email-entry");
|
|
||||||
um_editable_entry_set_text (UM_EDITABLE_ENTRY (widget), um_user_get_email (user));
|
|
||||||
|
|
||||||
widget = get_widget (d, "account-language-combo");
|
widget = get_widget (d, "account-language-combo");
|
||||||
model = um_editable_combo_get_model (UM_EDITABLE_COMBO (widget));
|
model = um_editable_combo_get_model (UM_EDITABLE_COMBO (widget));
|
||||||
um_add_user_languages (model);
|
um_add_user_languages (model);
|
||||||
|
@ -712,22 +709,6 @@ change_password (GtkButton *button, UmUserPanelPrivate *d)
|
||||||
g_object_unref (user);
|
g_object_unref (user);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
change_email_done (UmEditableEntry *e,
|
|
||||||
UmUserPanelPrivate *d)
|
|
||||||
{
|
|
||||||
const gchar *text;
|
|
||||||
UmUser *user;
|
|
||||||
|
|
||||||
user = get_selected_user (d);
|
|
||||||
|
|
||||||
text = um_editable_entry_get_text (e);
|
|
||||||
|
|
||||||
if (g_strcmp0 (text, um_user_get_email (user)) != 0) {
|
|
||||||
um_user_set_email (user, text);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
change_fingerprint (GtkButton *button, UmUserPanelPrivate *d)
|
change_fingerprint (GtkButton *button, UmUserPanelPrivate *d)
|
||||||
{
|
{
|
||||||
|
@ -932,9 +913,6 @@ on_permission_changed (GPermission *permission,
|
||||||
um_editable_entry_set_editable (UM_EDITABLE_ENTRY (get_widget (d, "full-name-entry")), TRUE);
|
um_editable_entry_set_editable (UM_EDITABLE_ENTRY (get_widget (d, "full-name-entry")), TRUE);
|
||||||
remove_unlock_tooltip (get_widget (d, "full-name-entry"));
|
remove_unlock_tooltip (get_widget (d, "full-name-entry"));
|
||||||
|
|
||||||
um_editable_entry_set_editable (UM_EDITABLE_ENTRY (get_widget (d, "account-email-entry")), TRUE);
|
|
||||||
remove_unlock_tooltip (get_widget (d, "account-email-entry"));
|
|
||||||
|
|
||||||
um_editable_combo_set_editable (UM_EDITABLE_COMBO (get_widget (d, "account-language-combo")), TRUE);
|
um_editable_combo_set_editable (UM_EDITABLE_COMBO (get_widget (d, "account-language-combo")), TRUE);
|
||||||
remove_unlock_tooltip (get_widget (d, "account-language-combo"));
|
remove_unlock_tooltip (get_widget (d, "account-language-combo"));
|
||||||
|
|
||||||
|
@ -950,9 +928,6 @@ on_permission_changed (GPermission *permission,
|
||||||
um_editable_entry_set_editable (UM_EDITABLE_ENTRY (get_widget (d, "full-name-entry")), FALSE);
|
um_editable_entry_set_editable (UM_EDITABLE_ENTRY (get_widget (d, "full-name-entry")), FALSE);
|
||||||
add_unlock_tooltip (get_widget (d, "full-name-entry"));
|
add_unlock_tooltip (get_widget (d, "full-name-entry"));
|
||||||
|
|
||||||
um_editable_entry_set_editable (UM_EDITABLE_ENTRY (get_widget (d, "account-email-entry")), FALSE);
|
|
||||||
add_unlock_tooltip (get_widget (d, "account-email-entry"));
|
|
||||||
|
|
||||||
um_editable_combo_set_editable (UM_EDITABLE_COMBO (get_widget (d, "account-language-combo")), FALSE);
|
um_editable_combo_set_editable (UM_EDITABLE_COMBO (get_widget (d, "account-language-combo")), FALSE);
|
||||||
add_unlock_tooltip (get_widget (d, "account-language-combo"));
|
add_unlock_tooltip (get_widget (d, "account-language-combo"));
|
||||||
|
|
||||||
|
@ -1126,9 +1101,6 @@ setup_main_window (UmUserPanelPrivate *d)
|
||||||
button = get_widget (d, "account-password-button");
|
button = get_widget (d, "account-password-button");
|
||||||
g_signal_connect (button, "start-editing", G_CALLBACK (change_password), d);
|
g_signal_connect (button, "start-editing", G_CALLBACK (change_password), d);
|
||||||
|
|
||||||
button = get_widget (d, "account-email-entry");
|
|
||||||
g_signal_connect (button, "editing-done", G_CALLBACK (change_email_done), d);
|
|
||||||
|
|
||||||
button = get_widget (d, "account-language-combo");
|
button = get_widget (d, "account-language-combo");
|
||||||
g_signal_connect (button, "editing-done", G_CALLBACK (language_changed), d);
|
g_signal_connect (button, "editing-done", G_CALLBACK (language_changed), d);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue