aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2026-10-16 23:35:25 +0200
committerMattias Andrée <m@maandree.se>2026-10-16 23:35:25 +0200
commitf011d8b384782d02d88df117b6e759b879012622 (patch)
treec973575b0f847f9545c3205b82ab389abf0fc701
parentMisc (diff)
downloadgcmap-f011d8b384782d02d88df117b6e759b879012622.tar.gz
gcmap-f011d8b384782d02d88df117b6e759b879012622.tar.bz2
gcmap-f011d8b384782d02d88df117b6e759b879012622.tar.xz
m
Signed-off-by: Mattias Andrée <m@maandree.se>
-rw-r--r--TODO12
-rw-r--r--char-table.c6
2 files changed, 8 insertions, 10 deletions
diff --git a/TODO b/TODO
index 071b4bc..34ca6a7 100644
--- a/TODO
+++ b/TODO
@@ -1,7 +1,7 @@
-Add drag-and-drop support, both in to find a character and out to copy a character
-
Scroll with wheel, page up/down, or scroll bar shall adjust the character selection to remain in view
+Keep selected character in view when resizing the chart or the cells
+
Show font and upscaled (based on same font size) glyph when Shift is held
(note: selection change via gcmap_char_table_key_press may require update)
@@ -9,11 +9,13 @@ Show font and upscaled (based on same font size) glyph when mouse button 3 (righ
is held down; this shall also select the character and do so continuously while
moving the pointer
-Middle-clicking should find the character stored in PRIMARY (SECONDARY if Mod1 is held down)
+The scaled up glyph popup should display metrics
-Keep selected character in view when resizing the chart or the cells
+When switching group, keep the codepoint selected if it also exists in then new group
+
+Middle-clicking should find the character stored in PRIMARY (SECONDARY if Mod1 is held down)
-Optionally show metrics
+Add drag-and-drop support, both in to find a character and out to copy a character
Add bookmarks expander under the tabbed pane
diff --git a/char-table.c b/char-table.c
index 7534600..0b812ca 100644
--- a/char-table.c
+++ b/char-table.c
@@ -36,11 +36,7 @@ is_printable_character(gunichar ch)
static void
format_character(gunichar ch, char *buf)
{
- if (!is_printable_character(ch)) {
- buf[0u] = '\0';
- return;
- }
- buf[g_unichar_to_utf8(ch, buf)] = '\0';
+ buf[is_printable_character(ch) ? g_unichar_to_utf8(ch, buf) : 0] = '\0';
}