Enlightenment CVS committal

Author  : dj2
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_ipc.c e_ipc_handlers.h e_remote_main.c 


Log Message:
-menus-click-drag-timeout-set/get

===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_ipc.c,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -3 -r1.42 -r1.43
--- e_ipc.c     5 Jun 2005 19:51:56 -0000       1.42
+++ e_ipc.c     5 Jun 2005 20:55:40 -0000       1.43
@@ -385,19 +385,6 @@
               }
          }
        break;
-      case E_IPC_OP_MENUS_CLICK_DRAG_TIMEOUT_SET:
-       if (e_ipc_codec_double_dec(e->data, e->size,
-                                  &(e_config->menus_click_drag_timeout)))
-         {
-            E_CONFIG_LIMIT(e_config->menus_click_drag_timeout, 0.0, 10.0);
-            e_config_save_queue();
-         }
-       break;
-      case E_IPC_OP_MENUS_CLICK_DRAG_TIMEOUT_GET:
-       _e_ipc_reply_double_send(e->client,
-                                e_config->menus_click_drag_timeout,
-                                E_IPC_OP_MENUS_CLICK_DRAG_TIMEOUT_GET_REPLY);
-       break;
       case E_IPC_OP_BORDER_SHADE_ANIMATE_SET:
        if (e_ipc_codec_int_dec(e->data, e->size,
                                &(e_config->border_shade_animate)))
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_ipc_handlers.h,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -3 -r1.31 -r1.32
--- e_ipc_handlers.h    5 Jun 2005 19:51:56 -0000       1.31
+++ e_ipc_handlers.h    5 Jun 2005 20:55:40 -0000       1.32
@@ -1070,6 +1070,46 @@
 #endif
 #undef HDL
 
+/****************************************************************************/
+#define HDL E_IPC_OP_MENUS_CLICK_DRAG_TIMEOUT_SET
+#if (TYPE == E_REMOTE_OPTIONS)
+   OP("-menus-click-drag-timeout-set", 1, "Set the time (in sec) between a 
mouse press and release that will keep the menu up anyway", 0, HDL)
+#elif (TYPE == E_REMOTE_OUT)
+   REQ_DOUBLE(atof(params[0]), HDL);
+#elif (TYPE == E_WM_IN)
+   START_DOUBLE(val, HDL);
+   e_config->menus_click_drag_timeout = val;
+   E_CONFIG_LIMIT(e_config->menus_click_drag_timeout, 0.0, 10.0);
+   SAVE;
+   END_DOUBLE;
+#elif (TYPE == E_REMOTE_IN)
+#endif
+#undef HDL
+
+/****************************************************************************/
+#define HDL E_IPC_OP_MENUS_CLICK_DRAG_TIMEOUT_GET
+#if (TYPE == E_REMOTE_OPTIONS)
+   OP("-menus-click-drag-timeout-get", 0, "Get the time (in sec) between a 
mouse press and release that will keep the menu up anyway", 1, HDL)
+#elif (TYPE == E_REMOTE_OUT)
+   REQ_NULL(HDL)
+#elif (TYPE == E_WM_IN)
+   SEND_DOUBLE(e_config->menus_click_drag_timeout, 
E_IPC_OP_MENUS_CLICK_DRAG_TIMEOUT_GET_REPLY, HDL);
+#elif (TYPE == E_REMOTE_IN)
+#endif
+#undef HDL
+
+/****************************************************************************/
+#define HDL E_IPC_OP_MENUS_CLICK_DRAG_TIMEOUT_GET_REPLY
+#if (TYPE == E_REMOTE_OPTIONS)
+#elif (TYPE == E_REMOTE_OUT)
+#elif (TYPE == E_WM_IN)
+#elif (TYPE == E_REMOTE_IN)
+   START_DOUBLE(val, HDL)
+   printf("REPLY: %3.3f\n", val);
+   END_DOUBLE;
+#endif
+#undef HDL
+
 #if 0
 }
 #endif
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_remote_main.c,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -3 -r1.43 -r1.44
--- e_remote_main.c     5 Jun 2005 19:51:56 -0000       1.43
+++ e_remote_main.c     5 Jun 2005 20:55:40 -0000       1.44
@@ -583,8 +583,6 @@
    OREQ("-binding-key-list", "List all key bindings", 
E_IPC_OP_BINDING_KEY_LIST, 1),
    OFNC("-binding-key-add", "Add an existing key binding. OPT1 = Context, OPT2 
= key, OPT3 = modifiers, OPT4 = any modifier ok, OPT5 = action, OPT6 = action 
parameters", 6, _e_opt_binding_key_add, 0),
    OFNC("-binding-key-del", "Delete an existing key binding. OPT1 = Context, 
OPT2 = key, OPT3 = modifiers, OPT4 = any modifier ok, OPT5 = action, OPT6 = 
action parameters", 6, _e_opt_binding_key_del, 0),
-   ODBL("-menus-click-drag-timeout-set", "Set the time (in seconds) between a 
mouse press and release that will keep the menu up anyway", 
E_IPC_OP_MENUS_CLICK_DRAG_TIMEOUT_SET, 0),
-   OREQ("-menus-click-drag-timeout-get", "Get the above value", 
E_IPC_OP_MENUS_CLICK_DRAG_TIMEOUT_GET, 1),
    OINT("-border-shade-animate-set", "Set the shading animation flag (0/1)", 
E_IPC_OP_BORDER_SHADE_ANIMATE_SET, 0),
    OREQ("-border-shade-animate-get", "Get the shading animation flag", 
E_IPC_OP_BORDER_SHADE_ANIMATE_GET, 1),
    OINT("-border-shade-transition-set", "Set the shading animation algorithm 
(0, 1, 2 or 3)", E_IPC_OP_BORDER_SHADE_TRANSITION_SET, 0),
@@ -1134,15 +1132,6 @@
               printf("REPLY: %3.3f\n", val);
          }
        break;
-      case E_IPC_OP_MENUS_CLICK_DRAG_TIMEOUT_GET_REPLY:
-       if (e->data)
-         {
-            double val;
-            
-            if (e_ipc_codec_double_dec(e->data, e->size, &val))
-              printf("REPLY: %3.3f\n", val);
-         }
-       break;
       case E_IPC_OP_BORDER_SHADE_ANIMATE_GET_REPLY:
        if (e->data)
          {




-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to