mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
[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.
This commit is contained in:
parent
432f2d4bb8
commit
062f3fb19d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user