Enlightenment CVS committal

Author  : raster
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


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


Log Message:


TODO--

===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_border.c,v
retrieving revision 1.293
retrieving revision 1.294
diff -u -3 -r1.293 -r1.294
--- e_border.c  28 Jun 2005 07:59:12 -0000      1.293
+++ e_border.c  29 Jun 2005 08:49:54 -0000      1.294
@@ -1691,23 +1691,21 @@
        if (bd->client.netwm.ping)
          e_border_ping(bd);
      }
-   else
+   else if (e_config->kill_if_close_not_possible)
      e_border_act_kill_begin(bd);
 }
 
 void
 e_border_act_kill_begin(E_Border *bd)
 {
-   if (bd->client.netwm.pid > 1)
+   if ((bd->client.netwm.pid > 1) && (e_config->kill_process))
      {
-       printf("%i\n", bd->client.netwm.pid);
        kill(bd->client.netwm.pid, SIGINT);
-       bd->kill_timer = ecore_timer_add(10.0, _e_border_cb_kill_timer, bd);
+       bd->kill_timer = ecore_timer_add(e_config->kill_timer_wait,
+                                        _e_border_cb_kill_timer, bd);
      }
    else
-     {
-       ecore_x_kill(bd->client.win);
-     }
+     ecore_x_kill(bd->client.win);
    e_border_hide(bd, 0);
 }
 
@@ -1846,7 +1844,9 @@
    ecore_x_netwm_ping_send(bd->client.win);
    bd->ping = ecore_time_get();
    if (bd->ping_timer) ecore_timer_del(bd->ping_timer);
-   bd->ping_timer = ecore_timer_add(10.0, _e_border_cb_ping_timer, bd);
+   if (e_config->ping_clients)
+     bd->ping_timer = ecore_timer_add(e_config->ping_clients_wait,
+                                     _e_border_cb_ping_timer, bd);
 }
 
 void
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_config.c,v
retrieving revision 1.66
retrieving revision 1.67
diff -u -3 -r1.66 -r1.67
--- e_config.c  27 Jun 2005 12:05:25 -0000      1.66
+++ e_config.c  29 Jun 2005 08:49:54 -0000      1.67
@@ -170,6 +170,11 @@
    E_CONFIG_VAL(D, T, winlist_pos_max_w, INT);
    E_CONFIG_VAL(D, T, winlist_pos_max_h, INT);
    E_CONFIG_VAL(D, T, maximize_policy, INT);
+   E_CONFIG_VAL(D, T, kill_if_close_not_possible, INT);
+   E_CONFIG_VAL(D, T, kill_process, INT);
+   E_CONFIG_VAL(D, T, kill_timer_wait, DOUBLE);
+   E_CONFIG_VAL(D, T, ping_clients, INT);
+   E_CONFIG_VAL(D, T, ping_clients_wait, DOUBLE);
    
    e_config = e_config_domain_load("e", _e_config_edd);
    if (e_config)
@@ -262,6 +267,11 @@
        e_config->winlist_pos_max_w = 320;
        e_config->winlist_pos_max_h = 320;
        e_config->maximize_policy = E_MAXIMIZE_FULLSCREEN;
+       e_config->kill_if_close_not_possible = 1;
+       e_config->kill_process = 1;
+       e_config->kill_timer_wait = 10.0;
+       e_config->ping_clients = 1;
+       e_config->ping_clients_wait = 10.0;
        
          {
             E_Config_Module *em;
@@ -787,7 +797,12 @@
    E_CONFIG_LIMIT(e_config->winlist_pos_max_w, 8, 4000);
    E_CONFIG_LIMIT(e_config->winlist_pos_max_h, 8, 4000);
    E_CONFIG_LIMIT(e_config->maximize_policy, E_MAXIMIZE_FULLSCREEN, 
E_MAXIMIZE_FILL);
-;
+   E_CONFIG_LIMIT(e_config->kill_if_close_not_possible, 0, 1);
+   E_CONFIG_LIMIT(e_config->kill_process, 0, 1);
+   E_CONFIG_LIMIT(e_config->kill_timer_wait, 0.0, 120.0);
+   E_CONFIG_LIMIT(e_config->ping_clients, 0, 1);
+   E_CONFIG_LIMIT(e_config->ping_clients_wait, 0.0, 120.0);
+
    /* apply lang config - exception because config is loaded after intl setup 
*/
    
    if ((e_config->language) && (strlen(e_config->language) > 0))
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_config.h,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -3 -r1.33 -r1.34
--- e_config.h  27 Jun 2005 12:05:26 -0000      1.33
+++ e_config.h  29 Jun 2005 08:49:54 -0000      1.34
@@ -46,7 +46,7 @@
  * defaults for e to work - started at 100 when we introduced this config
  * versioning feature
  */
-#define E_CONFIG_FILE_VERSION 114
+#define E_CONFIG_FILE_VERSION 115
 
 #define E_EVAS_ENGINE_DEFAULT      0
 #define E_EVAS_ENGINE_SOFTWARE_X11 1
@@ -124,6 +124,11 @@
    int         winlist_pos_max_w;
    int         winlist_pos_max_h;
    int         maximize_policy;
+   int         kill_if_close_not_possible;
+   int         kill_process;
+   double      kill_timer_wait;
+   int         ping_clients;
+   double      ping_clients_wait;
 };
 
 /* FIXME: all of thsie needs to become eet lumps for enmcode/decode */




-------------------------------------------------------
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