5 /* Disable old GTK+ functions */
6 #define GDK_DISABLE_DEPRECATED 1
7 #define GTK_DISABLE_DEPRECATED 1
8 #define GDK_DISABLE_SINGLE_INCLUDES 1
9 #define GTK_DISABLE_SINGLE_INCLUDES 1
13 #include <sys/types.h>
19 #include <gdk/gdkprivate.h>
21 #include <glib/gprintf.h>
29 /* Various includes */
30 #include <libxml/HTMLparser.h>
31 #include <libxml/tree.h>
32 #include <libxml/xpath.h>
33 #include <pango/pangox.h>
36 /* Platform specific includes */
38 #include <X11/Xatom.h>
40 #include <gdk/gdkkeysyms.h>
41 #include <gdk-pixbuf/gdk-pixbuf.h>
43 /* EB Library includes */
48 #include <eb/appendix.h>
50 #include <eb/binary.h>
52 #ifdef ENABLE_GSTREAMER
54 #include <gst/base/gstbasesrc.h>
55 #include <gst/interfaces/xoverlay.h>
56 #include <gst/video/video.h>
59 #include "../config.h"
61 #define ENC_UTF8 "utf-8"
62 #define ENC_EUC_JP "euc-jp"
63 #define ENC_SHIFT_JIS "shift-jis"
64 #define ENC_ISO_2022_JP "iso-2022-jp"
65 #define ENC_ASCII "ascii"
68 #define SZ(a) (sizeof(a)/sizeof(a[0]))
73 gboolean active, available;
74 gchar *title, *path, *appendix_path, *subbook_dir;
76 EB_Appendix *appendix;
77 EB_Subbook_Code subbook_no, appendix_subbook_no;
80 typedef struct _result_eb
90 #define SEARCH_METHOD_FORWARD 0
91 #define SEARCH_METHOD_BACKWARD 1
92 #define SEARCH_METHOD_EXACTWORD 2
93 #define SEARCH_METHOD_KEYWORD 3
94 #define SEARCH_METHOD_MENU 10
95 #define SEARCH_METHOD_COPYRIGHT 11
96 #define SEARCH_METHOD_UNKNOWN 99
100 SEARCH_METHOD_FORWARD,
101 SEARCH_METHOD_BACKWARD,
102 SEARCH_METHOD_EXACTWORD,
103 SEARCH_METHOD_KEYWORD,
105 SEARCH_METHOD_COPYRIGHT,
106 SEARCH_METHOD_UNKNOWN
128 #define FILENAME_DICTS "dictionaries.xml"
129 #define FILENAME_PREFS "preferences.xml"
130 #define FILENAME_HOTKEYS "hotkeys.xml"
131 #define FILENAME_HISTORY "history.xml"
133 #endif /* __DEFS_H__ */