diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2025-03-15 02:46:39 +0300 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2025-03-15 02:46:39 +0300 |
commit | 24b08dac99804bed30824e9becb6f773d5db1874 (patch) | |
tree | dd73a18e9b7042d4c8ca7972dfcc9c22d01f07e4 /src/interface-curses/curses-icons.h | |
parent | 8d8d62a108d6329049dac63f25c6119db6c44d12 (diff) | |
download | sciteco-24b08dac99804bed30824e9becb6f773d5db1874.tar.gz |
Curses: use special ellipsis symbol instead of "..." when truncating strings
This requires Unicode icon support to be enabled via ED.
The ellipsis symbol is shorter and more distinctive, allowing more of the original
text to be preserved before truncation.
Diffstat (limited to 'src/interface-curses/curses-icons.h')
-rw-r--r-- | src/interface-curses/curses-icons.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/interface-curses/curses-icons.h b/src/interface-curses/curses-icons.h index 933241d..fce9d75 100644 --- a/src/interface-curses/curses-icons.h +++ b/src/interface-curses/curses-icons.h @@ -18,11 +18,15 @@ #include <glib.h> -/** - * Q-Register icon. - * 0xf04cf would look more similar to the current Gtk icon. - */ -#define TECO_CURSES_ICONS_QREG 0xe236 /* */ +enum { + /** + * Q-Register icon. + * 0xf04cf would look more similar to the current Gtk icon. + */ + TECO_CURSES_ICONS_QREG = 0xe236, /* */ + /** Ellipsis used for truncating text */ + TECO_CURSES_ICONS_ELLIPSIS = 0x2026 /* … */ +}; gunichar teco_curses_icons_lookup_file(const gchar *filename); gunichar teco_curses_icons_lookup_dir(const gchar *dirname); |