From 5fc5cfeb8790f8786cabcea2d4e2a423e6327e28 Mon Sep 17 00:00:00 2001 From: Robert Fewell <14uBobIT@gmail.com> Date: Tue, 16 Dec 2025 13:59:02 +0000 Subject: [PATCH] Additional change to recent About dialog changes Disable the cursor change for links when text is selected which is similar to the recent change to disabling the links for selected text. With the change to the text background, the selected text is not very clear so add some CSS to improve readability of selection. --- gnucash/gnome-utils/gnc-main-window.cpp | 4 +++- gnucash/gnucash.css | 5 +++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/gnucash/gnome-utils/gnc-main-window.cpp b/gnucash/gnome-utils/gnc-main-window.cpp index 2b07754413..3cb0c1647d 100644 --- a/gnucash/gnome-utils/gnc-main-window.cpp +++ b/gnucash/gnome-utils/gnc-main-window.cpp @@ -5287,7 +5287,9 @@ textview_motion_notify_cb (GtkWidget *textview, GdkEventMotion *event, gpointer user_data) { - if (event->state & GDK_BUTTON1_MASK) + if ((event->state & GDK_BUTTON1_MASK) || + gtk_text_buffer_get_has_selection (gtk_text_view_get_buffer + (GTK_TEXT_VIEW(textview)))) return false; GtkTextIter iter; diff --git a/gnucash/gnucash.css b/gnucash/gnucash.css index 0eecd09322..3805b8594d 100644 --- a/gnucash/gnucash.css +++ b/gnucash/gnucash.css @@ -94,9 +94,10 @@ dialog#GnuCash > box > box > label .gnc-class-textview * { background-color: rgb(246,245,244); } - .gnc-class-textview-dark * { background-color: rgb(53,53,53); } - +dialog#GnuCash * text selection { + background-color: rgb(27,106,203); +}