summaryrefslogtreecommitdiff
path: root/frontends/gtk/toolbar_items.h
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2019-08-18 10:21:44 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2019-09-21 10:53:41 +0100
commit65d169da106d159d9fb53ceb55a5b5899cc0762f (patch)
treed1d35677357333c28aa94a7c6953c625abc16118 /frontends/gtk/toolbar_items.h
parent1fc51d1f4482243cc7d2a10517f04dcc471cef8e (diff)
downloadnetsurf-65d169da106d159d9fb53ceb55a5b5899cc0762f.tar.gz
netsurf-65d169da106d159d9fb53ceb55a5b5899cc0762f.tar.bz2
get the code to at least compile again. toolbar is completely broken
Diffstat (limited to 'frontends/gtk/toolbar_items.h')
-rw-r--r--frontends/gtk/toolbar_items.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/frontends/gtk/toolbar_items.h b/frontends/gtk/toolbar_items.h
index fd01103d8..0e1eae4fa 100644
--- a/frontends/gtk/toolbar_items.h
+++ b/frontends/gtk/toolbar_items.h
@@ -83,6 +83,11 @@ typedef enum {
* item initial visibility
*/
+#ifndef TOOLBAR_ITEM
+#define TOOLBAR_ITEM(a, b, c)
+#define TOOLBAR_ITEM_SET
+#endif
+
TOOLBAR_ITEM(BACK_BUTTON, back, false)
TOOLBAR_ITEM(HISTORY_BUTTON, history, true)
TOOLBAR_ITEM(FORWARD_BUTTON, forward, false)
@@ -134,3 +139,8 @@ TOOLBAR_ITEM(CONTENTS_BUTTON, contents, true)
TOOLBAR_ITEM(GUIDE_BUTTON, guide, true)
TOOLBAR_ITEM(INFO_BUTTON, info, true)
TOOLBAR_ITEM(ABOUT_BUTTON, about, true)
+
+#ifdef TOOLBAR_ITEM_SET
+#undef TOOLBAR_ITEM
+#undef TOOLBAR_ITEM_SET
+#endif