From bcdb7bcf9a9a4ca23217ecc2d687b39f96c3390f Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Sun, 5 Jun 2005 14:07:45 +0000 Subject: [PATCH] fix handlers to work dynamically SVN revision: 15134 --- src/bin/e_ipc_handlers.h | 6 ++++++ src/bin/e_remote_main.c | 2 ++ 2 files changed, 8 insertions(+) diff --git a/src/bin/e_ipc_handlers.h b/src/bin/e_ipc_handlers.h index 183a9f400..2d28eac2f 100644 --- a/src/bin/e_ipc_handlers.h +++ b/src/bin/e_ipc_handlers.h @@ -765,6 +765,8 @@ break; #elif (TYPE == E_WM_IN) START_DOUBLE(dbl, HDL); e_config->framerate = dbl; + E_CONFIG_LIMIT(e_config->framerate, 1.0, 200.0); + edje_frametime_set(1.0 / e_config->framerate); SAVE; END_DOUBLE; #elif (TYPE == E_REMOTE_IN) @@ -805,6 +807,7 @@ break; #elif (TYPE == E_WM_IN) START_DOUBLE(dbl, HDL); e_config->menus_scroll_speed = dbl; + E_CONFIG_LIMIT(e_config->menus_scroll_speed, 1.0, 20000.0); SAVE; END_DOUBLE; #elif (TYPE == E_REMOTE_IN) @@ -856,6 +859,7 @@ break; START_INT(value, HDL); e_border_button_bindings_ungrab_all(); e_config->focus_policy = value; + E_CONFIG_LIMIT(e_config->focus_policy, 0, 2); e_border_button_bindings_grab_all(); SAVE; END_INT @@ -982,6 +986,7 @@ break; START_INT(val, HDL); e_config->font_cache = val; E_CONFIG_LIMIT(e_config->font_cache, 0, 32 * 1024); + e_canvas_recache(); SAVE; END_INT; #elif (TYPE == E_REMOTE_IN) @@ -1022,6 +1027,7 @@ break; START_INT(val, HDL); e_config->image_cache = val; E_CONFIG_LIMIT(e_config->image_cache, 0, 256 * 1024); + e_canvas_recache(); SAVE; END_INT; #elif (TYPE == E_REMOTE_IN) diff --git a/src/bin/e_remote_main.c b/src/bin/e_remote_main.c index 337a99757..d31a45819 100644 --- a/src/bin/e_remote_main.c +++ b/src/bin/e_remote_main.c @@ -238,6 +238,7 @@ _e_ipc_cb_server_data(void *data, int type, void *event) break; } printf("REPLY <- END\n"); + reply_count++; if (reply_count >= reply_expect) ecore_main_loop_quit(); return 1; } @@ -1204,6 +1205,7 @@ _e_ipc_cb_server_data(void *data, int type, void *event) } printf("REPLY: END\n"); reply_count++; + printf("%i == %i\n", reply_count, reply_expect); if (reply_count >= reply_expect) ecore_main_loop_quit(); return 1; }