Summary Files Commits Branches @commit @diff @stats
path: root / config.h
blob: 8b82a1b2558d05bd47a5e2e435f2fa795c22f3c3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
#ifndef CONFIG_H_INCLUDED
#define CONFIG_H_INCLUDED
/* GOODWOLF_TAB_POSITION: Position of the tab listing, can be one of:
 * - GTK_POS_TOP
 * - GTK_POS_BOTTOM
 * - GTK_POS_RIGHT
 * - GTK_POS_LEFT
 *
 * See https://developer.gnome.org/gtk3/stable/gtk3-Standard-Enumerations.html#GtkPositionType
 */
#define GOODWOLF_TAB_POSITION GTK_POS_TOP

/* GOODWOLF_TAB_LABEL_CHARWIDTH: Amount of characters the tab label text fits
 * Quite conflicts with GOODWOLF_TAB_BOX_WIDTH, recommended to only define one
 */
#define GOODWOLF_TAB_LABEL_CHARWIDTH 26

/* GOODWOLF_TAB_BOX_WIDTH: Requested width (in pixels) for the whole tab
 * Quite conflicts with GOODWOLF_TAB_LABEL_CHARWIDTH, recommended to only define one
 */
//#define GOODWOLF_TAB_BOX_WIDTH 120

// GOODWOLF_TAB_HEXPAND: Should the tab try to fill the available horizontal space?
#define GOODWOLF_TAB_HEXPAND FALSE

/* GOODWOLF_TAB_LABEL_ELLIPSIZE: pango ellipsize mode of the tab label text, can be one of:
 * - PANGO_ELLIPSIZE_NONE
 * - PANGO_ELLIPSIZE_START
 * - PANGO_ELLIPSIZE_MIDDLE
 * - PANGO_ELLIPSIZE_END
 *
 * See https://developer.gnome.org/pango/stable/pango-Layout-Objects.html#PangoEllipsizeMode
 */
#define GOODWOLF_TAB_LABEL_ELLIPSIZE PANGO_ELLIPSIZE_MIDDLE

// GOODWOLF_BOX_PADDING: Amount of padding between browser’s box (tab child) elements
#define GOODWOLF_BOX_PADDING 0

// GOODWOLF_TOOLBAR_PADDING: Amount of padding between toolbar elements
#define GOODWOLF_TOOLBAR_PADDING 0

// GOODWOLF_TOOLBAR_PADDING: Amount of padding between toolbar elements
#define GOODWOLF_TOOLBAR_SEPARATOR_PADDING 4

// GOODWOLF_STATUSBAR_PADDING: Amount of padding between statusbar elements
#define GOODWOLF_STATUSBAR_PADDING 0

// GOODWOLF_DOWNLOAD_PADDING: Amount of padding between download list row-elements
#define GOODWOLF_DOWNLOAD_PADDING 5

/* GOODWOLF_DEFAULT_WIDTH / GOODWOLF_DEFAULT_HEIGHT:
 * Used to define the default width/height of the window,
 * useful for floating Window Managers, probably useless in tiling ones
 *
 * See https://developer.gnome.org/gtk3/stable/GtkWindow.html#gtk-window-set-default-size
 */
#define GOODWOLF_DEFAULT_WIDTH 800
#define GOODWOLF_DEFAULT_HEIGHT 600

/* GOODWOLF_WEBKIT_SETTINGS:
 * Used when creating a new view with webkit_settings_new_with_settings the usage is:
 * setting-name, setting-value, setting-name, …, NULL
 *
 * See: https://webkitgtk.org/reference/webkit2gtk/stable/WebKitSettings.html
 */
// clang-format off
#define GOODWOLF_WEBKIT_SETTINGS \
	"default-charset", "utf-8", \
	"enable-accelerated-2d-canvas", FALSE, \
	"enable-caret-browsing", FALSE, \
	"enable-developer-extras", TRUE, \
	"enable-dns-prefetching", FALSE, \
	"enable-hyperlink-auditing", FALSE, \
	"enable-java", FALSE, \
	"enable-javascript-markup", FALSE, \
	"enable-javascript", TRUE, \
	"enable-plugins", FALSE, \
	"javascript-can-access-clipboard", FALSE, \
	"javascript-can-open-windows-automatically", FALSE, \
	"media-playback-requires-user-gesture", TRUE, \
	"minimum-font-size", 9, \
	"allow-top-navigation-to-data-urls", FALSE, \
	NULL
// clang-format on

/* GOODWOLF_STATUSLABEL_ELLIPSIZE: pango ellipsize mode of the status bar label text, can be one of:
 * - PANGO_ELLIPSIZE_NONE
 * - PANGO_ELLIPSIZE_START
 * - PANGO_ELLIPSIZE_MIDDLE
 * - PANGO_ELLIPSIZE_END
 *
 * See https://developer.gnome.org/pango/stable/pango-Layout-Objects.html#PangoEllipsizeMode
 */
#define GOODWOLF_STATUSLABEL_ELLIPSIZE PANGO_ELLIPSIZE_MIDDLE

/* GOODWOLF_DOWNLOAD_FILE_PATH_ELLIPSIZE: pango ellipsize mode of the download destination path,
 * can be one of:
 * - PANGO_ELLIPSIZE_NONE
 * - PANGO_ELLIPSIZE_START
 * - PANGO_ELLIPSIZE_MIDDLE
 * - PANGO_ELLIPSIZE_END
 *
 * See https://developer.gnome.org/pango/stable/pango-Layout-Objects.html#PangoEllipsizeMode
 */
#define GOODWOLF_DOWNLOAD_FILE_PATH_ELLIPSIZE PANGO_ELLIPSIZE_MIDDLE

// GOODWOLF_LOCATION_INLINE_SELECTION: show selected completion as a selection in location entry
#define GOODWOLF_LOCATION_INLINE_SELECTION TRUE

#endif /* CONFIG_H_INCLUDED */