[krb5-auth-dialog] prefs: Use property binding to toggle sensitivity of cert group



commit bbd90bde7cd371b36bb4cea6efde0d06743b63e7
Author: Guido Günther <agx sigxcpu org>
Date:   Thu Oct 20 17:00:16 2022 +0200

    prefs: Use property binding to toggle sensitivity of cert group

 src/ka-preferences.c | 10 ----------
 1 file changed, 10 deletions(-)
---
diff --git a/src/ka-preferences.c b/src/ka-preferences.c
index 7a1ca87..659506d 100644
--- a/src/ka-preferences.c
+++ b/src/ka-preferences.c
@@ -254,14 +254,6 @@ ka_preferences_setup_pkanchors_entry (KaPreferences *self)
 }
 
 
-static void
-ka_preferences_toggle_pkuserid_entry (KaPreferences *self, gboolean state)
-{
-    gtk_widget_set_sensitive (self->pkuserid_entry, state);
-    gtk_widget_set_sensitive (self->pkuserid_button, state);
-}
-
-
 static void
 on_smartcard_toggled_active_changd (GtkWidget  *toggle,
                                     GParamSpec *pspec,
@@ -280,10 +272,8 @@ on_smartcard_toggled_active_changd (GtkWidget  *toggle,
             old_path = g_strdup (path);
         }
 
-        ka_preferences_toggle_pkuserid_entry (self, FALSE);
         g_object_set (self->applet, KA_PROP_NAME_PK_USERID, PKINIT_SMARTCARD, NULL);
     } else {
-        ka_preferences_toggle_pkuserid_entry (self, TRUE);
         if (old_path && strlen(old_path))
             g_object_set (self->applet, KA_PROP_NAME_PK_USERID, old_path, NULL);
         else


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