From f011d8b384782d02d88df117b6e759b879012622 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 16 Oct 2026 23:35:25 +0200 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- TODO | 12 +++++++----- char-table.c | 6 +----- 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'; } -- cgit v1.3.1