Enlightenment CVS committal

Author  : devilhorns
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_border.c e_config.c e_config.h e_ipc_handlers.h 
        e_ipc_handlers_list.h 


Log Message:
Fix recent winlist iconified commit (values were not added in the correct
place, and was not IFCFG'd for the version it was added in).

Add ability to turn on/off remembering E internal dialogs (only setable via
ipc for now)

===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_border.c,v
retrieving revision 1.561
retrieving revision 1.562
diff -u -3 -r1.561 -r1.562
--- e_border.c  1 Dec 2006 15:01:44 -0000       1.561
+++ e_border.c  16 Dec 2006 21:28:45 -0000      1.562
@@ -5897,8 +5897,7 @@
             bd->placed = 1;
          }
 
-       /* always remember internal windows - config */
-       if ((bd->internal) && (!bd->remember) && (1)) /* FIXME: config value */
+       if ((bd->internal) && (!bd->remember) && 
(e_config->remember_internal_windows))
          {
             E_Remember *rem;
             
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_config.c,v
retrieving revision 1.216
retrieving revision 1.217
diff -u -3 -r1.216 -r1.217
--- e_config.c  15 Dec 2006 05:03:07 -0000      1.216
+++ e_config.c  16 Dec 2006 21:28:46 -0000      1.217
@@ -424,6 +424,7 @@
    E_CONFIG_VAL(D, T, transition_desk, STR); /**/
    E_CONFIG_VAL(D, T, transition_change, STR); /**/
    E_CONFIG_LIST(D, T, remembers, _e_config_remember_edd);
+   E_CONFIG_VAL(D, T, remember_internal_windows, INT);
    E_CONFIG_VAL(D, T, move_info_follows, INT); /**/
    E_CONFIG_VAL(D, T, resize_info_follows, INT); /**/
    E_CONFIG_VAL(D, T, move_info_visible, INT); /**/
@@ -603,8 +604,6 @@
    e_config->winlist_scroll_animate = 1;
    e_config->winlist_scroll_speed = 0.1;
    e_config->winlist_list_show_iconified = 1;
-   e_config->winlist_list_show_other_desk_iconified = 1;
-   e_config->winlist_list_show_other_screen_iconified = 0;
    e_config->winlist_list_show_other_desk_windows = 0;
    e_config->winlist_list_show_other_screen_windows = 0;
    e_config->winlist_list_uncover_while_selecting = 0;
@@ -687,7 +686,7 @@
    e_config->display_res_height = 0;
    e_config->display_res_hz = 0;
    e_config->display_res_rotation = 0;
-   
+
      {
        E_Config_Module *em;
 
@@ -1274,6 +1273,15 @@
    IFCFG(0x00103);
    e_config->theme_default_border_style = evas_stringshare_add("default");
    IFCFGEND;
+
+   IFCFG(0x00104);
+   e_config->winlist_list_show_other_desk_iconified = 1;
+   e_config->winlist_list_show_other_screen_iconified = 0;
+   IFCFGEND;
+   
+   IFCFG(0x00105);
+   e_config->remember_internal_windows = 1;
+   IFCFGEND;
    
 #if 0 /* example of new config */
    IFCFG(0x0090); /* the version # where this value(s) was introduced */
@@ -1369,6 +1377,7 @@
    E_CONFIG_LIMIT(e_config->border_raise_on_mouse_action, 0, 1);
    E_CONFIG_LIMIT(e_config->border_raise_on_focus, 0, 1);
    E_CONFIG_LIMIT(e_config->desk_flip_wrap, 0, 1);
+   E_CONFIG_LIMIT(e_config->remember_internal_windows, 0, 1);
    
    /* FIXME: disabled auto apply because it causes problems */
    e_config->cfgdlg_auto_apply = 0;
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_config.h,v
retrieving revision 1.132
retrieving revision 1.133
diff -u -3 -r1.132 -r1.133
--- e_config.h  15 Dec 2006 05:03:08 -0000      1.132
+++ e_config.h  16 Dec 2006 21:28:46 -0000      1.133
@@ -51,7 +51,7 @@
 /* increment this whenever a new set of config values are added but the users
  * config doesn't need top be wiped - simply new values need to be put in
  */
-#define E_CONFIG_FILE_GENERATION 0x0104
+#define E_CONFIG_FILE_GENERATION 0x0105
 #define E_CONFIG_FILE_VERSION    ((E_CONFIG_FILE_EPOCH << 16) | 
E_CONFIG_FILE_GENERATION)
 
 #define E_EVAS_ENGINE_DEFAULT      0
@@ -175,6 +175,7 @@
    const char *transition_desk; // GUI
    const char *transition_change; // GUI
    Evas_List  *remembers;
+   int         remember_internal_windows;
    int         move_info_follows; // GUI
    int         resize_info_follows; // GUI
    int         move_info_visible; // GUI
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_ipc_handlers.h,v
retrieving revision 1.138
retrieving revision 1.139
diff -u -3 -r1.138 -r1.139
--- e_ipc_handlers.h    15 Dec 2006 05:03:09 -0000      1.138
+++ e_ipc_handlers.h    16 Dec 2006 21:28:46 -0000      1.139
@@ -7712,3 +7712,43 @@
    END_INT;
 #endif
 #undef HDL
+
+/****************************************************************************/
+#define HDL E_IPC_OP_REMEMBER_INTERNAL_WINDOWS_SET
+#if (TYPE == E_REMOTE_OPTIONS)
+   OP("-remember-internal-windows-set", 1, "Set whether internal windows 
should be remembered", 0, HDL)
+#elif (TYPE == E_REMOTE_OUT)
+   REQ_INT(atoi(params[0]), HDL);
+#elif (TYPE == E_WM_IN)
+   START_INT(val, HDL);
+   e_config->remember_internal_windows = val;
+   E_CONFIG_LIMIT(e_config->remember_internal_windows, 0, 1);
+   SAVE;
+   END_INT;
+#elif (TYPE == E_REMOTE_IN)
+#endif
+#undef HDL
+
+/****************************************************************************/
+#define HDL E_IPC_OP_REMEMBER_INTERNAL_WINDOWS_GET
+#if (TYPE == E_REMOTE_OPTIONS)
+   OP("-remember-internal-windows-get", 0, "Get whether internal windows are 
remembered", 1, HDL)
+#elif (TYPE == E_REMOTE_OUT)
+   REQ_NULL(HDL);
+#elif (TYPE == E_WM_IN)
+   SEND_INT(e_config->remember_internal_windows, 
E_IPC_OP_REMEMBER_INTERNAL_WINDOWS_GET_REPLY, HDL);
+#elif (TYPE == E_REMOTE_IN)
+#endif
+#undef HDL
+
+/****************************************************************************/
+#define HDL E_IPC_OP_REMEMBER_INTERNAL_WINDOWS_GET_REPLY
+#if (TYPE == E_REMOTE_OPTIONS)
+#elif (TYPE == E_REMOTE_OUT)
+#elif (TYPE == E_WM_IN)
+#elif (TYPE == E_REMOTE_IN)
+   START_INT(val, HDL);
+   printf("REPLY: %d\n", val);
+   END_INT;
+#endif
+#undef HDL
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_ipc_handlers_list.h,v
retrieving revision 1.51
retrieving revision 1.52
diff -u -3 -r1.51 -r1.52
--- e_ipc_handlers_list.h       15 Dec 2006 05:03:09 -0000      1.51
+++ e_ipc_handlers_list.h       16 Dec 2006 21:28:46 -0000      1.52
@@ -404,3 +404,7 @@
 #define E_IPC_OP_WINLIST_LIST_SHOW_OTHER_SCREEN_ICONIFIED_SET 369
 #define E_IPC_OP_WINLIST_LIST_SHOW_OTHER_SCREEN_ICONIFIED_GET 370
 #define E_IPC_OP_WINLIST_LIST_SHOW_OTHER_SCREEN_ICONIFIED_GET_REPLY 371
+
+#define E_IPC_OP_REMEMBER_INTERNAL_WINDOWS_SET 372
+#define E_IPC_OP_REMEMBER_INTERNAL_WINDOWS_GET 373
+#define E_IPC_OP_REMEMBER_INTERNAL_WINDOWS_GET_REPLY 374



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to