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



commit 1220e4e87b07bf919258ef28632ae8b0e6cdf26a
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 ece427e..3eca0d0 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]