Commit 7efba021 authored by Sébastien Blin's avatar Sébastien Blin

settings: align account box items

Change-Id: I695411010129eeffea3da11bceb2f413237baeca
parent 8dd6d762
......@@ -2109,9 +2109,8 @@ new_account_settings_view_update(NewAccountSettingsView *view, gboolean reset_vi
auto max_width = label_id.size();
max_width = std::max(max_width, label_username.size());
max_width = std::max(max_width, label_password.size());
gtk_label_set_width_chars(GTK_LABEL(priv->label_id), max_width + 1);
gtk_label_set_width_chars(GTK_LABEL(priv->label_username), max_width + 1);
gtk_label_set_width_chars(GTK_LABEL(priv->label_password), max_width + 1);
if (label_id.size() != max_width)
gtk_label_set_width_chars(GTK_LABEL(priv->label_id), max_width + 1);
} else {
gtk_switch_set_active(GTK_SWITCH(priv->sip_account_enabled), (*priv->accountInfo_)->enabled);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment