From 803f8414632fc7bf5d4dcee92a0d913c6fc6c8bc Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch Date: Sat, 20 Nov 2021 14:28:13 +0100 Subject: Fix key handling and Meson --- fastiv.c | 2 +- meson.build | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/fastiv.c b/fastiv.c index 7524021..d0bed31 100644 --- a/fastiv.c +++ b/fastiv.c @@ -405,12 +405,12 @@ on_key_press_view(G_GNUC_UNUSED GtkWidget *widget, GdkEventKey *event, case GDK_KEY_space: on_next(); return TRUE; - } case GDK_KEY_Tab: case GDK_KEY_Return: gtk_stack_set_visible_child(GTK_STACK(g.stack), g.browser_paned); return TRUE; + } } return FALSE; } diff --git a/meson.build b/meson.build index 1f8764e..7599285 100644 --- a/meson.build +++ b/meson.build @@ -1,4 +1,10 @@ -project('fastiv', 'c', default_options : ['c_std=gnu99'], version : '0.1.0') +project('fastiv', 'c', + default_options : ['c_std=gnu99', 'warning_level=2'], + version : '0.1.0') +add_project_arguments( + meson.get_compiler('c').get_supported_arguments('-Wno-cast-function-type'), + language: 'c', +) # TODO(p): Use libraw_r later, when we start parallelizing/preloading. libraw = dependency('libraw', required : get_option('libraw')) -- cgit v1.2.3-70-g09d2