Summary Files Commits Branches @commit @diff @stats
path: root / config.h
diff options
context:
space:
mode:
Commit3ae5614e9e8b5ad5f346a6ea43a2fd514e55f318 (patch)
Author
 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
2019-03-12 06:46:58 +0100
Committer
 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
2019-03-12 06:46:58 +0100
Files4538b0e53ed43f5bf6c0be1386a3e5c18f986c1d /config.h
goodwolf-3ae5614e9e8b5ad5f346a6ea43a2fd514e55f318.tar
goodwolf-3ae5614e9e8b5ad5f346a6ea43a2fd514e55f318.tar.gz
goodwolf-3ae5614e9e8b5ad5f346a6ea43a2fd514e55f318.zip
Parent5a95d17490a7acbb41ce797e0fc294be259b5d5a (diff)
Add configuration of tab label (ellipsis, size)
1 files changed, 12 insertions, 0 deletions
-rw-r--r--config.h12
diff --git a/config.h b/config.h
index 64fa5d6..9202a1e 100644
--- a/config.h
+++ b/config.h
@@ -8,6 +8,18 @@
*/
#define BADWOLF_TAB_POSITION GTK_POS_TOP
+// BADWOLF_TAB_LABEL_CHARWIDTH: Amount of characters the tab label text fits
+#define BADWOLF_TAB_LABEL_CHARWIDTH 26
+
+/* BADWOLF_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
+ */
+
// BADWOLF_BOX_PADDING: Amount of padding between browser’s box (tab child) elements
#define BADWOLF_BOX_PADDING 0