[seahorse] [libcryptui] Migrate to new GtkComboBoxText widget in GTK3



commit 77c537b5523ca2ceff3de1f1ea76c306384d536f
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Oct 20 03:31:54 2010 +0000

    [libcryptui] Migrate to new GtkComboBoxText widget in GTK3
    
    https://bugzilla.gnome.org/show_bug.cgi?id=632604

 libcryptui/cryptui-key-chooser.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/libcryptui/cryptui-key-chooser.c b/libcryptui/cryptui-key-chooser.c
index b5582d9..5adda48 100644
--- a/libcryptui/cryptui-key-chooser.c
+++ b/libcryptui/cryptui-key-chooser.c
@@ -169,10 +169,17 @@ construct_recipients (CryptUIKeyChooser *chooser, GtkBox *box)
     hbox = gtk_hbox_new (FALSE, 12);
     
     /* Filter Combo */
+#if GTK_CHECK_VERSION (2,91,2)
+    chooser->priv->filtermode = GTK_COMBO_BOX (gtk_combo_box_text_new ());
+    gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (chooser->priv->filtermode), _("All Keys"));
+    gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (chooser->priv->filtermode), _("Selected Recipients"));
+    gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (chooser->priv->filtermode), _("Search Results"));
+#else
     chooser->priv->filtermode = GTK_COMBO_BOX (gtk_combo_box_new_text ());
     gtk_combo_box_append_text (chooser->priv->filtermode, _("All Keys"));
     gtk_combo_box_append_text (chooser->priv->filtermode, _("Selected Recipients"));
     gtk_combo_box_append_text (chooser->priv->filtermode, _("Search Results"));
+#endif
     gtk_combo_box_set_active (chooser->priv->filtermode, 0);
     g_signal_connect (chooser->priv->filtermode, "changed", 
                         G_CALLBACK (filtermode_changed), chooser);



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