Moved feature config from config.mk to config.def.h.
authorDaniel Carl <danielcarl@gmx.de>
Thu, 18 Jul 2013 00:22:07 +0000 (02:22 +0200)
committerDaniel Carl <danielcarl@gmx.de>
Thu, 18 Jul 2013 00:22:07 +0000 (02:22 +0200)
config.mk
src/config.def.h
src/main.h

index 460e588..15cf376 100644 (file)
--- a/config.mk
+++ b/config.mk
@@ -8,13 +8,6 @@ MANDIR  ?= $(PREFIX)/share/man
 
 #----------------compile options---------------------
 
-# features
-CPPFLAGS += -DFEATURE_COOKIE
-CPPFLAGS += -DFEATURE_SEARCH_HIGHLIGHT
-CPPFLAGS += -DFEATURE_NO_SCROLLBARS
-#CPPFLAGS += -DFEATURE_GTK_PROGRESSBAR
-CPPFLAGS += -DFEATURE_TITLE_IN_COMPLETION
-
 LIBS = libsoup-2.4
 
 GTK3LIBS=gtk+-3.0 webkitgtk-3.0
index 2172851..6ff2b10 100644 (file)
 #ifndef _CONFIG_H
 #define _CONFIG_H
 
+
+/* features */
+#define FEATURE_COOKIE
+#define FEATURE_SEARCH_HIGHLIGHT
+#define FEATURE_NO_SCROLLBARS
+#define FEATURE_GTK_PROGRESSBAR
+#define FEATURE_TITLE_IN_COMPLETION
+
+
 /* time in seconds after that message will be removed from inputbox if the
  * message where only temporary */
 #define MESSAGE_TIMEOUT              5
@@ -29,7 +38,7 @@
 
 #define MAXIMUM_HINTS              500
 
-
+/* remove this if the bookmark file fits to the new format "URL<tab>title of page<tab>tag1 tag2" */
 #define ANNOUNCEMENT "\
 <!DOCTYPE html><html lang=\"en\" dir=\"ltr\"><head> \
 <title>Bookmark file format changed</title> \
index 196f7b5..3bdb210 100644 (file)
@@ -32,6 +32,7 @@
 #include <gtk/gtkx.h>
 #else
 #endif
+#include "config.h"
 
 /* size of some I/O buffer */
 #define BUF_SIZE  512