Enlightenment CVS committal

Author  : raster
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_ipc_handlers.h e_ipc_handlers_list.h 


Log Message:


and behold - shorne did code some more!

===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_ipc_handlers.h,v
retrieving revision 1.48
retrieving revision 1.49
diff -u -3 -r1.48 -r1.49
--- e_ipc_handlers.h    2 Jul 2005 13:14:24 -0000       1.48
+++ e_ipc_handlers.h    3 Jul 2005 03:12:29 -0000       1.49
@@ -3958,6 +3958,66 @@
    END_STRING(s);
 #endif
 #undef HDL
+
+/****************************************************************************/
+#define HDL E_IPC_OP_FOCUS_SETTING_SET
+#if (TYPE == E_REMOTE_OPTIONS)
+   OP("-focus-setting-set", 1, "Set the focus setting policy (\"NONE\", 
\"NEW_WINDOW\", \"NEW_DIALOG\", \"NEW_DIALOG_IF_OWNER_FOCUSED\")", 0, HDL)
+#elif (TYPE == E_REMOTE_OUT)
+   REQ_INT_START(HDL)
+   int value = 0;
+   if (!strcmp(params[0], "NONE")) value = E_FOCUS_NONE;
+   else if (!strcmp(params[0], "NEW_WINDOW")) value = E_FOCUS_NEW_WINDOW;
+   else if (!strcmp(params[0], "NEW_DIALOG")) value = E_FOCUS_NEW_DIALOG;
+   else if (!strcmp(params[0], "NEW_DIALOG_IF_OWNER_FOCUSED")) value = 
E_FOCUS_NEW_DIALOG_IF_OWNER_FOCUSED;
+   else
+     {
+        printf("focus setting must be \"NONE\", \"NEW_WINDOW\", 
\"NEW_DIALOG\", \"NEW_DIALOG_IF_OWNER_FOCUSED\"\n");
+        exit(-1);
+     }
+   REQ_INT_END(value, HDL);
+#elif (TYPE == E_WM_IN)
+   START_INT(value, HDL);
+   e_border_button_bindings_ungrab_all();
+   e_config->focus_setting = value;
+   E_CONFIG_LIMIT(e_config->focus_setting, 0, 3);
+   e_border_button_bindings_grab_all();
+   SAVE;
+   END_INT
+#elif (TYPE == E_REMOTE_IN)
+#endif
+#undef HDL
+     
+/****************************************************************************/
+#define HDL E_IPC_OP_FOCUS_SETTING_GET
+#if (TYPE == E_REMOTE_OPTIONS)
+   OP("-focus-setting-get", 0, "Get the focus setting policy", 1, HDL)
+#elif (TYPE == E_REMOTE_OUT)
+   REQ_NULL(HDL);
+#elif (TYPE == E_WM_IN)
+   SEND_INT(e_config->focus_setting, E_IPC_OP_FOCUS_SETTING_GET_REPLY, HDL);
+#elif (TYPE == E_REMOTE_IN)
+#endif
+#undef HDL
+     
+/****************************************************************************/
+#define HDL E_IPC_OP_FOCUS_SETTING_GET_REPLY
+#if (TYPE == E_REMOTE_OPTIONS)
+#elif (TYPE == E_REMOTE_OUT)
+#elif (TYPE == E_WM_IN)
+#elif (TYPE == E_REMOTE_IN)
+   START_INT(setting, HDL);
+   if (setting == E_FOCUS_NONE)
+     printf("REPLY: NONE\n");
+   else if (setting == E_FOCUS_NEW_WINDOW)
+     printf("REPLY: NEW_WINDOW\n");
+   else if (setting == E_FOCUS_NEW_DIALOG)
+     printf("REPLY: NEW_DIALOG\n");
+   else if (setting == E_FOCUS_NEW_DIALOG_IF_OWNER_FOCUSED)
+     printf("REPLY: NEW_DIALOG_IF_OWNER_FOCUSED\n");
+   END_INT
+#endif
+#undef HDL
  
 #if 0
 }
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_ipc_handlers_list.h,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -3 -r1.8 -r1.9
--- e_ipc_handlers_list.h       2 Jul 2005 13:14:24 -0000       1.8
+++ e_ipc_handlers_list.h       3 Jul 2005 03:12:30 -0000       1.9
@@ -193,3 +193,6 @@
 #define E_IPC_OP_TRANSITION_CHANGE_SET 193
 #define E_IPC_OP_TRANSITION_CHANGE_GET 194
 #define E_IPC_OP_TRANSITION_CHANGE_GET_REPLY 195
+#define E_IPC_OP_FOCUS_SETTING_SET 196
+#define E_IPC_OP_FOCUS_SETTING_GET 197
+#define E_IPC_OP_FOCUS_SETTING_GET_REPLY 198




-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to