mirror of
https://github.com/Gnucash/gnucash.git
synced 2026-11-02 20:30:45 -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:
1 parent
432f2d4bb8
commit
062f3fb19d
1 file changed
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user