From 2e601e3c6c27de6625c9b7d5d32177141e25acf6 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Sat, 1 Mar 2025 16:14:36 +0300 Subject: GTK: set the mouse cursor on the Scintilla view to signal business and on the popup entries * By default, use the "text" cursor - this is the default Scintilla cursor, but inhibited by the GtkEventBox I used to catch all input events. * When processing input events, the cursor is changed to "wait". This is done with a small delay in order to avoid flickering during normal typing. The cursor is only changed after 100ms of activity, i.e. only when executing long loops or external programs. * We use the raw GSource API since it's tricky to work with source ids if the source could be removed in the meantime. * The popup entries' cursor is also changed to "pointer" (hand) to give a hint that it can be clicked. --- TODO | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'TODO') diff --git a/TODO b/TODO index 289e724..d297e1b 100644 --- a/TODO +++ b/TODO @@ -345,9 +345,7 @@ Features: Perhaps blinking or invisible? The problem is, this won't work so easily once we use a Scintilla minibuffer everywhere. - Gtk could at the very least use the hourglass cursor. - * Gtk: Change the cursor when hovering over popup entries. - The text area should have the "I" beam unless we're busy. + Gtk already sets the "wait" cursor when busy. * Command to free Q-Register (remove from table). e.g. FQ (free Q). :FQ could free by QRegister prefix name for the common use case of Q-Register subtables and lists. -- cgit v1.2.3