diff options
author | Vincent Sanders <vince@kyllikki.org> | 2019-05-05 15:38:19 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2019-05-05 15:38:19 +0100 |
commit | efdea7757b3bbdb4e092844b30be091d066cfe79 (patch) | |
tree | 7fee20ef5156f6f8af7b9671fbbd2a569d294d77 /frontends/gtk/compat.h | |
parent | 9a3b644bf01f746d8e0c57706277ab0bd4ec8002 (diff) | |
download | netsurf-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.h | 3 |
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, |