summaryrefslogtreecommitdiff
path: root/frontends/gtk/compat.h
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2018-08-26 11:22:20 +0100
committerVincent Sanders <vince@kyllikki.org>2018-08-26 11:22:20 +0100
commit487309a1e673c406f97cdd3cfd64b77f7d2e5582 (patch)
tree09dfd683863f1b8ea1837540a7b2a94a80d18f9c /frontends/gtk/compat.h
parent4765c68a15545a2c5465781f2957d771e5c7eb77 (diff)
downloadnetsurf-487309a1e673c406f97cdd3cfd64b77f7d2e5582.tar.gz
netsurf-487309a1e673c406f97cdd3cfd64b77f7d2e5582.tar.bz2
fixup usage of gvalue init macro
Diffstat (limited to 'frontends/gtk/compat.h')
-rw-r--r--frontends/gtk/compat.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/frontends/gtk/compat.h b/frontends/gtk/compat.h
index d822e2dee..2276229c1 100644
--- a/frontends/gtk/compat.h
+++ b/frontends/gtk/compat.h
@@ -80,6 +80,12 @@ typedef enum {
} GtkAlign;
#endif
+/* value init since gtk 2.30 */
+#ifndef G_VALUE_INIT
+#define G_VALUE_INIT { 0, { { 0 } } }
+#endif
+
+
/**
* Set the alignment of a widget.
*