[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:
John Ralls 2023-01-22 15:35:21 -08:00
parent 432f2d4bb8
commit 062f3fb19d

View File

@ -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);