summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2018-07-16 13:40:22 +0200
committerLubomir Rintel <lkundrak@v3.sk>2018-07-16 13:40:22 +0200
commitb81d4200991bf21fe0608cd339cff5b2a1a77de7 (patch)
tree40993ecb0f975a18f648b9c19e31b16d54abaada
parenta7e3a00b85ab280cdbd3e670cbae3a1fd16be275 (diff)
downloadnetwork-manager-applet-lr/nma-mnemonic.tar.gz
password-dialog: preserve mnemoniclr/nma-mnemonic
The password labels as specified in the .ui file have "use_underline" property set. However it gets reset upon gtk_label_set_text(). Let's preserve it. This fixes an ugliness with VPNC plugin and perhaps more.
-rw-r--r--src/libnma/nma-vpn-password-dialog.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/libnma/nma-vpn-password-dialog.c b/src/libnma/nma-vpn-password-dialog.c
index 278db5c7..7ff13e66 100644
--- a/src/libnma/nma-vpn-password-dialog.c
+++ b/src/libnma/nma-vpn-password-dialog.c
@@ -318,7 +318,7 @@ void nma_vpn_password_dialog_set_password_label (NMAVpnPasswordDialog *dialog,
priv = NMA_VPN_PASSWORD_DIALOG_GET_PRIVATE (dialog);
- gtk_label_set_text (GTK_LABEL (priv->password_label), label);
+ gtk_label_set_text_with_mnemonic (GTK_LABEL (priv->password_label), label);
}
void nma_vpn_password_dialog_set_password_secondary_label (NMAVpnPasswordDialog *dialog,
@@ -331,7 +331,7 @@ void nma_vpn_password_dialog_set_password_secondary_label (NMAVpnPasswordDialog
priv = NMA_VPN_PASSWORD_DIALOG_GET_PRIVATE (dialog);
- gtk_label_set_text (GTK_LABEL (priv->password_label_secondary), label);
+ gtk_label_set_text_with_mnemonic (GTK_LABEL (priv->password_label_secondary), label);
}
void
@@ -345,6 +345,5 @@ nma_vpn_password_dialog_set_password_ternary_label (NMAVpnPasswordDialog *dialog
priv = NMA_VPN_PASSWORD_DIALOG_GET_PRIVATE (dialog);
- gtk_label_set_text (GTK_LABEL (priv->password_label_tertiary), label);
+ gtk_label_set_text_with_mnemonic (GTK_LABEL (priv->password_label_tertiary), label);
}
-