From b6c362cf2ec0da1cde8af355baf639bb361a49d2 Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Sun, 9 Mar 2014 14:30:51 +0900 Subject: [PATCH] use accel preference if elm 1.10 --- src/bin/main.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/bin/main.c b/src/bin/main.c index 14ab518..eac8d80 100644 --- a/src/bin/main.c +++ b/src/bin/main.c @@ -38,7 +38,11 @@ elm_main(int argc, char **argv) elm_app_compile_bin_dir_set(PACKAGE_BIN_DIR); elm_app_compile_data_dir_set(PACKAGE_DATA_DIR); elm_app_info_set(elm_main, "rage", "themes/default.edj"); - + +#if (ELM_VERSION_MAJOR > 1) || (ELM_VERSION_MINOR >= 10) + elm_config_accel_preference_set("accel"); +#endif + snprintf(buf, sizeof(buf), "%s/themes/default.edj", elm_app_data_dir_get()); elm_theme_overlay_add(NULL, buf);