From bb21b7c1e8745f97d1e135dbd0e1a596148bf6f2 Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Fri, 3 Jun 2005 18:15:04 +0000 Subject: [PATCH] - add in -menus-scroll-speed-get/set SVN revision: 15098 --- src/bin/e_ipc_handlers.h | 43 ++++++++++++++++++++++++++++++++++++++-- 1 file changed, 41 insertions(+), 2 deletions(-) diff --git a/src/bin/e_ipc_handlers.h b/src/bin/e_ipc_handlers.h index 13181f77a..7519b497a 100644 --- a/src/bin/e_ipc_handlers.h +++ b/src/bin/e_ipc_handlers.h @@ -602,11 +602,10 @@ break; /****************************************************************************/ #define HDL E_IPC_OP_FRAMERATE_SET #if (TYPE == E_REMOTE_OPTIONS) - OP("-framerate-set", 1, "Get the animation framerate (fps)", 0, HDL) + OP("-framerate-set", 1, "Set the animation framerate (fps)", 0, HDL) #elif (TYPE == E_REMOTE_OUT) REQ_DOUBLE(atof(params[0]), HDL); #elif (TYPE == E_WM_IN) - double dbl; START_DOUBLE(dbl, HDL); e_config->framerate = dbl; e_config_save_queue(); @@ -639,6 +638,46 @@ break; #endif #undef HDL + +/****************************************************************************/ +#define HDL E_IPC_OP_MENUS_SCROLL_SPEED_SET +#if (TYPE == E_REMOTE_OPTIONS) + OP("-menus-scroll-speed-set", 1, "Set the scroll speed of menus (pixels/sec)", 0, HDL) +#elif (TYPE == E_REMOTE_OUT) + REQ_DOUBLE(atof(params[0]), HDL); +#elif (TYPE == E_WM_IN) + START_DOUBLE(dbl, HDL); + e_config->menus_scroll_speed = dbl; + e_config_save_queue(); + END_DOUBLE(); +#elif (TYPE == E_REMOTE_IN) +#endif +#undef HDL + +/****************************************************************************/ +#define HDL E_IPC_OP_MENUS_SCROLL_SPEED_GET +#if (TYPE == E_REMOTE_OPTIONS) + OP("-menus-scroll-speed-get", 0, "Get the scroll speed of menus (pixels/sec)", 1, HDL) +#elif (TYPE == E_REMOTE_OUT) + REQ_NULL(HDL); +#elif (TYPE == E_WM_IN) + SEND_DOUBLE(e_config->menus_scroll_speed, E_IPC_OP_MENUS_SCROLL_SPEED_GET_REPLY, HDL); +#elif (TYPE == E_REMOTE_IN) +#endif +#undef HDL + +/****************************************************************************/ +#define HDL E_IPC_OP_MENUS_SCROLL_SPEED_GET_REPLY +#if (TYPE == E_REMOTE_OPTIONS) +#elif (TYPE == E_REMOTE_OUT) +#elif (TYPE == E_WM_IN) +#elif (TYPE == E_REMOTE_IN) + START_DOUBLE(speed, HDL); + printf("REPLY: %3.3f\n", speed); + END_DOUBLE(); +#endif +#undef HDL + #if 0 } #endif