From 2508973576b0855720787e67159dca615ed2549e Mon Sep 17 00:00:00 2001 From: waker Date: Thu, 2 Feb 2012 20:17:19 +0100 Subject: restored gtk<2.24 compatibility in converter gui plugin --- plugins/converter/support.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'plugins/converter') diff --git a/plugins/converter/support.h b/plugins/converter/support.h index 7037765f..84d6a665 100644 --- a/plugins/converter/support.h +++ b/plugins/converter/support.h @@ -75,3 +75,14 @@ gtk_combo_box_entry_new_text(void); void gtk_dialog_set_has_separator (GtkDialog *dlg, gboolean has); #endif + +#if !GTK_CHECK_VERSION(2,24,0) +#define GTK_COMBO_BOX_TEXT GTK_COMBO_BOX +typedef GtkComboBox GtkComboBoxText; +GtkWidget *gtk_combo_box_text_new (); +GtkWidget *gtk_combo_box_text_new_with_entry (void); +void gtk_combo_box_text_append_text (GtkComboBoxText *combo_box, const gchar *text); +void gtk_combo_box_text_insert_text (GtkComboBoxText *combo_box, gint position, const gchar *text); +void gtk_combo_box_text_prepend_text (GtkComboBoxText *combo_box, const gchar *text); +gchar *gtk_combo_box_text_get_active_text (GtkComboBoxText *combo_box); +#endif -- cgit v1.2.3