work round missing functionality

This commit is contained in:
Vincent Sanders 2013-06-28 13:20:05 +01:00
parent 2f280f16eb
commit a93e32de37

View File

@ -56,6 +56,17 @@ typedef enum {
#if !GTK_CHECK_VERSION(3,0,0)
typedef GtkStateType GtkStateFlags;
typedef GtkStyle GtkStyleContext;
#if GTK_CHECK_VERSION(2,22,0)
enum {
GTK_IN_DESTRUCTION = 1 << 0,
};
#define GTK_OBJECT_FLAGS(obj) (GTK_OBJECT (obj)->flags)
#endif
#define gtk_widget_in_destruction(widget) \
(GTK_OBJECT_FLAGS(GTK_OBJECT(widget)) & GTK_IN_DESTRUCTION)
#endif
GtkWidget *nsgtk_entry_new(void);