app: make GimpScaleComboBox build with GTK+ >= 2.23.1

This commit is contained in:
Michael Natterer 2010-10-26 16:40:41 +02:00
parent d3c97238a3
commit 8c65edcc55
1 changed files with 10 additions and 0 deletions

View File

@ -22,6 +22,16 @@
#define __GIMP_SCALE_COMBO_BOX_H__
#if GTK_CHECK_VERSION(2,23,1)
#undef GTK_DISABLE_DEPRECATED
#undef GTK_DISABLE_SINGLE_INCLUDES
#undef __GTK_COMBO_BOX_ENTRY_H__
#include <gtk/gtkcomboboxentry.h>
#define GTK_DISABLE_SINGLE_INCLUDES
#define GTK_DISABLE_DEPRECATED
#endif
#define GIMP_TYPE_SCALE_COMBO_BOX (gimp_scale_combo_box_get_type ())
#define GIMP_SCALE_COMBO_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIMP_TYPE_SCALE_COMBO_BOX, GimpScaleComboBox))
#define GIMP_SCALE_COMBO_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GIMP_TYPE_SCALE_COMBO_BOX, GimpScaleComboBoxClass))