Fix key handling and Meson

This commit is contained in:
Přemysl Eric Janouch 2021-11-20 14:28:13 +01:00
parent 09547184c3
commit 803f841463
Signed by: p
GPG Key ID: A0420B94F92B9493
2 changed files with 8 additions and 2 deletions

View File

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

View File

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