[network-manager-openvpn/th/ui-init-cleanup: 11/11] properties: refactor initialization of entry for "tls-remote"
- From: Thomas Haller <thaller src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-openvpn/th/ui-init-cleanup: 11/11] properties: refactor initialization of entry for "tls-remote"
- Date: Mon, 15 Aug 2016 12:30:01 +0000 (UTC)
commit 25230cfce558fb5678cc059f962482f681056ac5
Author: Thomas Haller <thaller redhat com>
Date: Mon Aug 15 14:25:05 2016 +0200
properties: refactor initialization of entry for "tls-remote"
properties/auth-helpers.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/properties/auth-helpers.c b/properties/auth-helpers.c
index 2052565..e261df8 100644
--- a/properties/auth-helpers.c
+++ b/properties/auth-helpers.c
@@ -1669,11 +1669,9 @@ advanced_dialog_new (GHashTable *hash, const char *contype)
value = g_hash_table_lookup (hash, NM_OPENVPN_KEY_AUTH);
populate_hmacauth_combo (GTK_COMBO_BOX (widget), value);
+ widget = GTK_WIDGET (gtk_builder_get_object (builder, "tls_remote_entry"));
value = g_hash_table_lookup (hash, NM_OPENVPN_KEY_TLS_REMOTE);
- if (value && strlen (value)) {
- widget = GTK_WIDGET (gtk_builder_get_object (builder, "tls_remote_entry"));
- gtk_entry_set_text (GTK_ENTRY(widget), value);
- }
+ gtk_entry_set_text (GTK_ENTRY (widget), value ?: "");
widget = GTK_WIDGET (gtk_builder_get_object (builder, "remote_cert_tls_checkbutton"));
value = g_hash_table_lookup (hash, NM_OPENVPN_KEY_REMOTE_CERT_TLS);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]