gnucash master: [c++options]Fix key-press handling on macOS.

John Ralls jralls at code.gnucash.org
Sun Jan 22 18:38:22 EST 2023


Updated	 via  https://github.com/Gnucash/gnucash/commit/062f3fb1 (commit)
	from  https://github.com/Gnucash/gnucash/commit/432f2d4b (commit)



commit 062f3fb19d9fbe91a89883eaa812f76e267c4552
Author: John Ralls <jralls at ceridwen.us>
Date:   Sun Jan 22 15:35:21 2023 -0800

    [c++options]Fix key-press handling on macOS.
    
    gcc apparently can convert the bool value false to the C equivalent
    0. Clang apparently not, dialog_window_key_press_cb was blocking
    further key press handling meaning the GtkWindow never saw the
    event.

diff --git a/gnucash/gnome-utils/dialog-options.cpp b/gnucash/gnome-utils/dialog-options.cpp
index 59fa64d27..19f901b27 100644
--- a/gnucash/gnome-utils/dialog-options.cpp
+++ b/gnucash/gnome-utils/dialog-options.cpp
@@ -444,7 +444,7 @@ dialog_destroy_cb (GtkWidget *object, GncOptionsDialog *win)
 }
 
 // "key_press_event" signal handler
-static bool
+static int
 dialog_window_key_press_cb(GtkWidget *widget, GdkEventKey *event, gpointer data)
 {
     GncOptionsDialog *win = static_cast<decltype(win)>(data);



Summary of changes:
 gnucash/gnome-utils/dialog-options.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)



More information about the gnucash-changes mailing list