From efdea7757b3bbdb4e092844b30be091d066cfe79 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sun, 5 May 2019 15:38:19 +0100 Subject: fix enum name incompatability between gtk 2 and 3 --- frontends/gtk/compat.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'frontends/gtk/compat.h') 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, -- cgit v1.2.3