Skip to content

Commit

Permalink
[c++options]Fix key-press handling on macOS.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jralls committed Jan 22, 2023
1 parent 432f2d4 commit 062f3fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gnucash/gnome-utils/dialog-options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 062f3fb

Please sign in to comment.