[seahorse-plugins] Compatibility with GTK+ 2.22



commit 74d78ed64937355c68ba783ff87368a2141164ea
Author: Stef Walter <stefw collabora co uk>
Date:   Thu Feb 10 23:41:46 2011 +0100

    Compatibility with GTK+ 2.22

 plugins/nautilus/seahorse-tool-files.c |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/plugins/nautilus/seahorse-tool-files.c b/plugins/nautilus/seahorse-tool-files.c
index 32b2fd3..fe2a270 100644
--- a/plugins/nautilus/seahorse-tool-files.c
+++ b/plugins/nautilus/seahorse-tool-files.c
@@ -432,8 +432,12 @@ prepare_dialog (FilesCtx *ctx, guint nfolders, guint nfiles, GFileInfo *info, gc
         save_type_list = save_type;
         
         for (i = 0; save_type_list[i] != FR_FILE_TYPE_NULL; i++) {
+#if GTK_CHECK_VERSION(2,23,0)
 		gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (combo),
-					        file_type_desc[save_type_list[i]].ext);
+#else
+		gtk_combo_box_append_text (GTK_COMBO_BOX (combo),
+#endif
+		                                file_type_desc[save_type_list[i]].ext);
 		    if (strcmp(ext, file_type_desc[save_type_list[i]].ext) == 0)
 		        gtk_combo_box_set_active (GTK_COMBO_BOX (combo), i);
     	}
@@ -473,7 +477,11 @@ get_results (SeahorseWidget *swidget)
         name = gtk_entry_get_text (GTK_ENTRY (w));
         
         w = GTK_WIDGET (seahorse_widget_get_widget (swidget, "package-extension"));
+#if GTK_CHECK_VERSION(2,23,0)
         ext = gtk_combo_box_text_get_active_text (GTK_COMBO_BOX_TEXT (w));
+#else
+        ext = gtk_combo_box_get_active_text (GTK_COMBO_BOX (w));
+#endif
         
         /* No paths */
         t = strrchr(name, '/');



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