[libnma] Revert "cert-chooser-button: fix detection of selected item"
- From: Lubomir Rintel <lkundrak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libnma] Revert "cert-chooser-button: fix detection of selected item"
- Date: Fri, 9 Sep 2022 13:23:34 +0000 (UTC)
commit aec96815cf59e516e332cdffcf2d3a36972bb529
Author: Lubomir Rintel <lkundrak v3 sk>
Date: Fri Sep 9 15:19:53 2022 +0200
Revert "cert-chooser-button: fix detection of selected item"
This pops up the chooser even if nobody pressed the button.
This reverts commit 7d58bf8536779a7fddc4e827ecf83614124a14ff.
src/nma-cert-chooser-button.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/nma-cert-chooser-button.c b/src/nma-cert-chooser-button.c
index 1e73a72a..863af63a 100644
--- a/src/nma-cert-chooser-button.c
+++ b/src/nma-cert-chooser-button.c
@@ -362,7 +362,7 @@ changed (GtkComboBox *combo_box, gpointer user_data)
gchar *label;
GckSlot *slot;
- if (gtk_combo_box_get_active (combo_box) == -1)
+ if (gtk_combo_box_get_active (combo_box) == 0)
return;
gtk_combo_box_popdown (combo_box);
@@ -380,7 +380,7 @@ changed (GtkComboBox *combo_box, gpointer user_data)
g_free (label);
g_clear_object (&slot);
- gtk_combo_box_set_active (combo_box, -1);
+ gtk_combo_box_set_active (combo_box, 0);
}
static gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]