summaryrefslogtreecommitdiff
path: root/frontends/gtk/compat.h
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2019-05-05 15:38:19 +0100
committerVincent Sanders <vince@kyllikki.org>2019-05-05 15:38:19 +0100
commitefdea7757b3bbdb4e092844b30be091d066cfe79 (patch)
tree7fee20ef5156f6f8af7b9671fbbd2a569d294d77 /frontends/gtk/compat.h
parent9a3b644bf01f746d8e0c57706277ab0bd4ec8002 (diff)
downloadnetsurf-efdea7757b3bbdb4e092844b30be091d066cfe79.tar.gz
netsurf-efdea7757b3bbdb4e092844b30be091d066cfe79.tar.bz2
fix enum name incompatability between gtk 2 and 3
Diffstat (limited to 'frontends/gtk/compat.h')
-rw-r--r--frontends/gtk/compat.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/frontends/gtk/compat.h b/frontends/gtk/compat.h
index 2276229c1..20a75a3f0 100644
--- a/frontends/gtk/compat.h
+++ b/frontends/gtk/compat.h
@@ -159,6 +159,9 @@ GtkStateType nsgtk_widget_get_state(GtkWidget *widget);
typedef GtkStateType GtkStateFlags;
typedef GtkStyle GtkStyleContext;
+/* gtk 3 changed the enum name for the state flags */
+#define GTK_STATE_FLAG_NORMAL GTK_STATE_NORMAL
+
#if GTK_CHECK_VERSION(2,22,0)
enum {
GTK_IN_DESTRUCTION = 1 << 0,