From 8da37ea812d5b784dade3dc0f05df54fdc60fc7a Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 20 Oct 2010 15:06:38 -0400 Subject: Bug 632641 - Handle combo box text API going away --- e-util/gtk-compat.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'e-util/gtk-compat.h') diff --git a/e-util/gtk-compat.h b/e-util/gtk-compat.h index 786cc04721..cc27e0e7ec 100644 --- a/e-util/gtk-compat.h +++ b/e-util/gtk-compat.h @@ -5,6 +5,15 @@ /* Provide a GTK+ compatibility layer. */ +#if !GTK_CHECK_VERSION (2,23,0) +#define gtk_combo_box_text_new gtk_combo_box_new_text +#define gtk_combo_box_text_append_text gtk_combo_box_append_text +#define gtk_combo_box_text_prepend_text gtk_combo_box_prepend_text +#define gtk_combo_box_text_get_active_text gtk_combo_box_get_active_text +#define GTK_COMBO_BOX_TEXT GTK_COMBO_BOX +#define GtkComboBoxText GtkComboBox +#endif + #if GTK_CHECK_VERSION (2,90,5) /* Recreate GdkRegion until we drop GTK2 compatibility. */ -- cgit v1.2.3