summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorVincent Sanders <vince@netsurf-browser.org>2013-06-28 13:20:05 +0100
committerVincent Sanders <vince@netsurf-browser.org>2013-06-28 13:20:05 +0100
commita93e32de3767ade3931aaf661a720f53e7a27f90 (patch)
tree712af121cbf5acbe2eddd087a023628101eaa240 /gtk
parent2f280f16eb7e6ed9317f4bdf7aa818c53925fd9b (diff)
downloadnetsurf-a93e32de3767ade3931aaf661a720f53e7a27f90.tar.gz
netsurf-a93e32de3767ade3931aaf661a720f53e7a27f90.tar.bz2
work round missing functionality
Diffstat (limited to 'gtk')
-rw-r--r--gtk/compat.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/gtk/compat.h b/gtk/compat.h
index ff3222ca9..b8c91d914 100644
--- a/gtk/compat.h
+++ b/gtk/compat.h
@@ -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);