[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[E-devel] two small patches for e17



first patch adds a corresponding option to eremote for the allowing of
shading/resizing for maximized windows, and the second one just fixes a
string
Index: src/bin/e_ipc_handlers.h
===================================================================
RCS file: /root/e17/apps/e/src/bin/e_ipc_handlers.h,v
retrieving revision 1.1.1.18
diff -u -r1.1.1.18 e_ipc_handlers.h
--- src/bin/e_ipc_handlers.h	23 Feb 2006 15:39:48 -0000	1.1.1.18
+++ src/bin/e_ipc_handlers.h	24 Feb 2006 17:52:15 -0000
@@ -2430,6 +2430,46 @@
 #undef HDL
 
 /****************************************************************************/
+#define HDL E_IPC_OP_MAXIMIZE_MANIPULATION_SET
+#if (TYPE == E_REMOTE_OPTIONS)
+   OP("-maximize-manipulation-set", 1, "Allow shading/resizing, 1 for enabled 0 for disabled", 0, HDL)
+#elif (TYPE == E_REMOTE_OUT)
+   REQ_INT(atoi(params[0]), HDL);
+#elif (TYPE == E_WM_IN)
+   START_INT(policy, HDL);
+   e_config->allow_shading = policy;
+   E_CONFIG_LIMIT(e_config->allow_shading, 0, 1);
+   SAVE;
+   END_INT;
+#elif (TYPE == E_REMOTE_IN)
+#endif
+#undef HDL
+
+/****************************************************************************/
+#define HDL E_IPC_OP_MAXIMIZE_MANIPULATION_GET
+#if (TYPE == E_REMOTE_OPTIONS)
+   OP("-maximize-manipulation-get", 0, "Get shading/resizing, 1 for enabled 0 for disabled", 1, HDL)
+#elif (TYPE == E_REMOTE_OUT)
+   REQ_NULL(HDL);
+#elif (TYPE == E_WM_IN)
+   SEND_INT(e_config->allow_shading, E_IPC_OP_MAXIMIZE_MANIPULATION_GET_REPLY, HDL);
+#elif (TYPE == E_REMOTE_IN)
+#endif
+#undef HDL
+
+/****************************************************************************/
+#define HDL E_IPC_OP_MAXIMIZE_MANIPULATION_GET_REPLY
+#if (TYPE == E_REMOTE_OPTIONS)
+#elif (TYPE == E_REMOTE_OUT)
+#elif (TYPE == E_WM_IN)
+#elif (TYPE == E_REMOTE_IN)
+   START_INT(policy, HDL);
+   printf("REPLY: POLICY=%d\n", policy);
+   END_INT;
+#endif
+#undef HDL
+
+/****************************************************************************/
 
 #define HDL E_IPC_OP_BINDING_MOUSE_LIST 
 #if (TYPE == E_REMOTE_OPTIONS)
Index: src/bin/e_ipc_handlers_list.h
===================================================================
RCS file: /root/e17/apps/e/src/bin/e_ipc_handlers_list.h,v
retrieving revision 1.1.1.8
diff -u -r1.1.1.8 e_ipc_handlers_list.h
--- src/bin/e_ipc_handlers_list.h	15 Feb 2006 21:35:48 -0000	1.1.1.8
+++ src/bin/e_ipc_handlers_list.h	24 Feb 2006 17:52:16 -0000
@@ -373,3 +373,7 @@
 #define E_IPC_OP_CFGDLG_DEFAULT_MODE_SET 347
 #define E_IPC_OP_CFGDLG_DEFAULT_MODE_GET 348
 #define E_IPC_OP_CFGDLG_DEFAULT_MODE_GET_REPLY 349
+
+#define E_IPC_OP_MAXIMIZE_MANIPULATION_SET 350
+#define E_IPC_OP_MAXIMIZE_MANIPULATION_GET 351
+#define E_IPC_OP_MAXIMIZE_MANIPULATION_GET_REPLY 352
Index: src/bin/e_int_config_background.c
===================================================================
RCS file: /root/e17/apps/e/src/bin/e_int_config_background.c,v
retrieving revision 1.1.1.38
diff -u -r1.1.1.38 e_int_config_background.c
--- src/bin/e_int_config_background.c	15 Feb 2006 20:35:58 -0000	1.1.1.38
+++ src/bin/e_int_config_background.c	24 Feb 2006 15:07:25 -0000
@@ -114,7 +114,7 @@
    e_widget_table_object_append(ot, il, 0, 0, 1, 2, 1, 1, 1, 1);
 
    /* Add import Button */
-   o = e_widget_button_add(evas, _("Select Another Image..."), NULL, _bg_config_dialog_cb_import, cfd, NULL);
+   o = e_widget_button_add(evas, _("Select Another Image"), NULL, _bg_config_dialog_cb_import, cfd, NULL);
    e_widget_table_object_append(ot, o, 0, 2, 1, 1, 1, 0, 0, 0);
    
    of = e_widget_framelist_add(evas, _("Background Preview"), 0);