Commit | Line | Data |
---|---|---|
f762cef9 JA |
1 | #ifndef GFIO_GTK_COMPAT |
2 | #define GFIO_GTK_COMPAT | |
3 | ||
4 | #include <gtk/gtk.h> | |
5 | ||
6 | #if GTK_MAJOR_VERSION <= 2 && GTK_MINOR_VERSION < 24 | |
7 | struct GtkComboBoxText; | |
8 | typedef GtkComboBox GtkComboBoxText; | |
9 | GtkWidget *gtk_combo_box_text_new(void); | |
10 | GtkWidget *gtk_combo_box_text_new_with_entry(void); | |
11 | void gtk_combo_box_text_append_text(GtkComboBoxText *combo_box, const gchar *text); | |
12 | void gtk_combo_box_text_insert_text(GtkComboBoxText *combo_box, gint position, const gchar *text); | |
13 | void gtk_combo_box_text_prepend_text(GtkComboBoxText *combo_box, const gchar *text); | |
14 | void gtk_combo_box_text_remove(GtkComboBoxText *combo_box, gint position); | |
15 | gchar *gtk_combo_box_text_get_active_text (GtkComboBoxText *combo_box); | |
16 | ||
17 | #define GTK_COMBO_BOX_TEXT GTK_COMBO_BOX | |
18 | #endif /* GTK_MAJOR_VERSION <= 2 && GTK_MINOR_VERSION < 24 */ | |
19 | ||
20 | #if GTK_MAJOR_VERSION <= 2 && GTK_MINOR_VERSION < 14 | |
21 | static inline GtkWidget *gtk_dialog_get_content_area(GtkDialog *dialog) | |
22 | { | |
23 | return dialog->vbox; | |
24 | } | |
25 | #endif | |
26 | ||
27 | #endif |