[network-manager-openvpn/jk/bgo731891-gui-password-types: 3/6] properties: we don't need to store flags manually



commit 764a9ff6cba5b4fa0ea5e325380c57b6a17e50bd
Author: Jiří Klimeš <jklimes redhat com>
Date:   Thu Apr 9 11:22:43 2015 +0200

    properties: we don't need to store flags manually
    
    They are handled by password storage icon/menu.

 properties/auth-helpers.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/properties/auth-helpers.c b/properties/auth-helpers.c
index 5a50c86..54dc5db 100644
--- a/properties/auth-helpers.c
+++ b/properties/auth-helpers.c
@@ -58,7 +58,6 @@ setup_secret_widget (GtkBuilder *builder,
                      NMSettingVPN *s_vpn,
                      const char *secret_key)
 {
-       NMSettingSecretFlags pw_flags = NM_SETTING_SECRET_FLAG_NONE;
        GtkWidget *widget;
        GtkWidget *show_passwords;
        const char *tmp;
@@ -73,9 +72,6 @@ setup_secret_widget (GtkBuilder *builder,
                tmp = nm_setting_vpn_get_secret (s_vpn, secret_key);
                if (tmp)
                        gtk_entry_set_text (GTK_ENTRY (widget), tmp);
-
-               nm_setting_get_secret_flags (NM_SETTING (s_vpn), secret_key, &pw_flags, NULL);
-               g_object_set_data (G_OBJECT (widget), "flags", GUINT_TO_POINTER (pw_flags));
        }
 
        return widget;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]