Enlightenment CVS committal Author : raster Project : e17 Module : apps/e
Dir : e17/apps/e/src/bin Modified Files: Makefile.am e_border.c e_border.h e_canvas.c e_canvas.h e_config.c e_config.h e_desklock.c e_exehist.c e_fm_custom.c e_fm_main.c e_gadcon.c e_includes.h e_int_menus.c e_ipc_handlers.h e_main.c e_menu.c e_place.c e_pointer.c e_pointer.h e_popup.c e_utils.c Added Files: e_powersave.c e_powersave.h Log Message: e: 1. configure/build changes to allow cross-compiling painlessly 2. pager module namespace changes - this was still dirty afdter the namespace cleanup, so clean it up 3. add a powersave subsystem - doesnt have an "automatic" way to turn on and off right now, this i think is best provided by modules (that do things like monitor acpi status's (eg close lid of laptop), AC power status etc. etc. this allows e to nicely defer "power" expensive actions to avoid disk spinups etc. 4. move to use the new ecore poller system - discussed long ago as part of power management/saving issues. now it exists 5. add a canvas idle flush call that helsp cope with the new shm greedy software x11 engine stuff 6. use the new powersave subsystem where appropriate 7. fix non-zeroed/initted memory access in e_fm_main 8. fix mem leak for e menus 9. remove ipc handlers for changed/removed config values 10. use animaotr not timer for menu scrolls - then menu scrolls obey the fps config 11. fix up timer/poll happienss of cursor idle stuff 12. remove avoid damage from popups for now - causing problems 13. change battery and temp readouts to b e shorter so they fit 14. pager can emit signals on focus change for mini-windows now 15. temperature module now uses a slave process and uses stdin/out to talk to it and get output - this makes e smoother as in my expereicne i found getting the temp on my laptop actually took like 200ms so e "hang" for 200ms while reading the acpi files - so now the subprocess does it and just writesa back to e when it gets it. ecore: 1. add ecore_pollers. see the documentation on them in doxygen comments :) 2. fix timers to only go off when they have to - bug there that made e's select time out a LOT more than it needed to. defensive coding hid the problem. now fixed. e should be much more power friendly now. 3. formatting/niceness in ecore_exe stuff 4. some comments on comments with SIGIO ideas vs. select 5. add call to be able to add an idle enterer at the start of the list of them, not just the end (as has been the default) 6. fix ecore_evas to support auto evas idler calls after 0.5 secs of idle in all canvases - and to do it right 7. if argb destination - set the shape EVENT shape (to mask out events in transparent regions much like shape does withotu translucency) 8. in ecore_x add support for the event shape evas: 1. fix cache to work properly and not just always fill up (as it seemed to like to think cahce useage dropped below 0 when it didnt and thus just over-fill) 2. software x11 engine now ONLY uses shm segments - no ximages over the socket. this ximage hack was there to avoid the 2 round trips involved in setting up an shm image - now i mitigated that wih an shm image cache pool. it keeps shm images around and repurposes them for new update regions if appropriate. this means many fewer shm creates (about 1/100th the number) and since we recycle the memory less 0 memory page filling by the kernel - in the end, i recorded about a 10-20% speedup over the old software x11 engine. simple tests i have seen up to 120% speedups. idle flush now does something - it frees all the cached shm segments. it has a hard-coded limit of 4mb worth of shm segments (or 32 segments - whichever comes first) to keep around. once can never complain much about speedups methinks :). also evas will defer sync until the NEXT frame is written - this means evas can calculate the next frame of data while x dma's/copies the images to the screen at the same time (if you hve a dual core or multi-cpu machnike or your xserver is able to use DMA to copy image data to the screen/video ram then this should see a decent speedup). =================================================================== RCS file: /cvs/e/e17/apps/e/src/bin/Makefile.am,v retrieving revision 1.205 retrieving revision 1.206 diff -u -3 -r1.205 -r1.206 --- Makefile.am 31 Oct 2007 10:09:51 -0000 1.205 +++ Makefile.am 11 Jan 2008 07:33:54 -0000 1.206 @@ -158,7 +158,8 @@ e_config_data.h \ e_intl_data.h \ e_toolbar.h \ -e_int_toolbar_config.h +e_int_toolbar_config.h \ +e_powersave.h enlightenment_src = \ e_user.c \ @@ -290,6 +291,7 @@ e_fm_custom.c \ e_toolbar.c \ e_int_toolbar_config.c \ +e_powersave.c \ $(ENLIGHTENMENTHEADERS) enlightenment_SOURCES = \ =================================================================== RCS file: /cvs/e/e17/apps/e/src/bin/e_border.c,v retrieving revision 1.620 retrieving revision 1.621 diff -u -3 -r1.620 -r1.621 --- e_border.c 28 Dec 2007 22:57:49 -0000 1.620 +++ e_border.c 11 Jan 2008 07:33:54 -0000 1.621 @@ -93,7 +93,7 @@ static int _e_border_move_end(E_Border *bd); static void _e_border_move_update(E_Border *bd); -static int _e_border_cb_ping_timer(void *data); +static int _e_border_cb_ping_poller(void *data); static int _e_border_cb_kill_timer(void *data); static void _e_border_pointer_resize_begin(E_Border *bd); @@ -2887,9 +2887,10 @@ bd->ping_ok = 0; 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(e_config->ping_clients_wait, - _e_border_cb_ping_timer, bd); + if (bd->ping_poller) ecore_poller_del(bd->ping_poller); + bd->ping_poller = ecore_poller_add(ECORE_POLLER_CORE, + e_config->ping_clients_interval, + _e_border_cb_ping_poller, bd); } EAPI void @@ -3213,10 +3214,10 @@ ecore_timer_del(bd->kill_timer); bd->kill_timer = NULL; } - if (bd->ping_timer) + if (bd->ping_poller) { - ecore_timer_del(bd->ping_timer); - bd->ping_timer = NULL; + ecore_poller_del(bd->ping_poller); + bd->ping_poller = NULL; } while (bd->pending_move_resize) { @@ -5352,8 +5353,8 @@ e_border_ping(bd); else { - if (bd->ping_timer) ecore_timer_del(bd->ping_timer); - bd->ping_timer = NULL; + if (bd->ping_poller) ecore_timer_del(bd->ping_poller); + bd->ping_poller = NULL; } bd->client.icccm.fetch.protocol = 0; } @@ -6285,15 +6286,15 @@ if ((bd->shaded) && (!bd->shading)) { evas_obscured_clear(bd->bg_evas); - if (0) - { - if (bd->post_job) ecore_idle_enterer_del(bd->post_job); - bd->post_job = ecore_idle_enterer_add(_e_border_post_move_resize_job, - bd); - bd->post_move = 1; - bd->post_resize = 1; - } - else +// if (0) +// { +// if (bd->post_job) ecore_idle_enterer_del(bd->post_job); +// bd->post_job = ecore_idle_enterer_add(_e_border_post_move_resize_job, +// bd); +// bd->post_move = 1; +// bd->post_resize = 1; +// } +// else { ecore_x_window_move_resize(bd->win, bd->x + bd->fx.x, @@ -6319,15 +6320,15 @@ bd->client_inset.l, bd->client_inset.t, bd->w - (bd->client_inset.l + bd->client_inset.r), bd->h - (bd->client_inset.t + bd->client_inset.b)); - if (0) - { - if (bd->post_job) ecore_idle_enterer_del(bd->post_job); - bd->post_job = ecore_idle_enterer_add(_e_border_post_move_resize_job, - bd); - bd->post_move = 1; - bd->post_resize = 1; - } - else +// if (0) +// { +// if (bd->post_job) ecore_idle_enterer_del(bd->post_job); +// bd->post_job = ecore_idle_enterer_add(_e_border_post_move_resize_job, +// bd); +// bd->post_move = 1; +// bd->post_resize = 1; +// } +// else { ecore_x_window_move_resize(bd->win, bd->x + bd->fx.x, @@ -7467,7 +7468,7 @@ } static int -_e_border_cb_ping_timer(void *data) +_e_border_cb_ping_poller(void *data) { E_Border *bd; @@ -7499,7 +7500,7 @@ e_border_act_kill_begin(bd); } } - bd->ping_timer = NULL; + bd->ping_poller = NULL; e_border_ping(bd); return 0; } =================================================================== RCS file: /cvs/e/e17/apps/e/src/bin/e_border.h,v retrieving revision 1.168 retrieving revision 1.169 diff -u -3 -r1.168 -r1.169 --- e_border.h 9 Dec 2007 15:40:14 -0000 1.168 +++ e_border.h 11 Jan 2008 07:33:55 -0000 1.169 @@ -460,7 +460,7 @@ unsigned int layer; E_Action *cur_mouse_action; Ecore_Timer *raise_timer; - Ecore_Timer *ping_timer; + Ecore_Timer *ping_poller; Ecore_Timer *kill_timer; int shape_rects_num; Ecore_X_Rectangle *shape_rects; =================================================================== RCS file: /cvs/e/e17/apps/e/src/bin/e_canvas.c,v retrieving revision 1.16 retrieving revision 1.17 diff -u -3 -r1.16 -r1.17 --- e_canvas.c 3 Oct 2007 09:00:49 -0000 1.16 +++ e_canvas.c 11 Jan 2008 07:33:55 -0000 1.17 @@ -8,7 +8,7 @@ /* local subsystem globals */ static Evas_List *_e_canvases = NULL; -static Ecore_Timer *_e_canvas_cache_flush_timer = NULL; +static Ecore_Poller *_e_canvas_cache_flush_poller = NULL; /* externally accessible functions */ EAPI void @@ -86,16 +86,17 @@ } edje_file_cache_set(e_config->edje_cache); edje_collection_cache_set(e_config->edje_collection_cache); - if (_e_canvas_cache_flush_timer) + if (_e_canvas_cache_flush_poller) { - ecore_timer_del(_e_canvas_cache_flush_timer); - _e_canvas_cache_flush_timer = NULL; + ecore_poller_del(_e_canvas_cache_flush_poller); + _e_canvas_cache_flush_poller = NULL; } - if (e_config->cache_flush_interval > 0.0) + if (e_config->cache_flush_poll_interval > 0) { - _e_canvas_cache_flush_timer = - ecore_timer_add(e_config->cache_flush_interval, _e_canvas_cb_flush, - NULL); + _e_canvas_cache_flush_poller = + ecore_poller_add(ECORE_POLLER_CORE, + e_config->cache_flush_poll_interval, + _e_canvas_cb_flush, NULL); } } @@ -116,6 +117,7 @@ } edje_file_cache_flush(); edje_collection_cache_flush(); + printf("...caches flushed.\n"); } EAPI void @@ -131,6 +133,22 @@ ee = l->data; e = ecore_evas_get(ee); evas_image_cache_reload(e); + } +} + +EAPI void +e_canvas_idle_flush(void) +{ + Evas_List *l; + + for (l = _e_canvases; l; l = l->next) + { + Ecore_Evas *ee; + Evas *e; + + ee = l->data; + e = ecore_evas_get(ee); + evas_render_idle_flush(e); } } =================================================================== RCS file: /cvs/e/e17/apps/e/src/bin/e_canvas.h,v retrieving revision 1.7 retrieving revision 1.8 diff -u -3 -r1.7 -r1.8 --- e_canvas.h 1 Mar 2006 03:47:51 -0000 1.7 +++ e_canvas.h 11 Jan 2008 07:33:55 -0000 1.8 @@ -12,6 +12,7 @@ EAPI void e_canvas_recache(void); EAPI void e_canvas_cache_flush(void); EAPI void e_canvas_cache_reload(void); +EAPI void e_canvas_idle_flush(void); EAPI void e_canvas_rehint(void); EAPI Ecore_Evas *e_canvas_new(int engine_hint, Ecore_X_Window win, int x, int y, int w, int h, int direct_resize, int override, Ecore_X_Window *win_ret, Ecore_X_Window *subwin_ret); =================================================================== RCS file: /cvs/e/e17/apps/e/src/bin/e_config.c,v retrieving revision 1.277 retrieving revision 1.278 diff -u -3 -r1.277 -r1.278 --- e_config.c 22 Dec 2007 01:46:22 -0000 1.277 +++ e_config.c 11 Jan 2008 07:33:55 -0000 1.278 @@ -12,14 +12,14 @@ EAPI E_Config *e_config = NULL; /* local subsystem functions */ -static int _e_config_save_cb(void *data); +static void _e_config_save_cb(void *data); static void _e_config_free(void); static int _e_config_cb_timer(void *data); static int _e_config_eet_close_handle(Eet_File *ef, char *file); /* local subsystem globals */ static int _e_config_save_block = 0; -static Ecore_Timer *_e_config_save_timer = NULL; +static E_Powersave_Deferred_Action *_e_config_save_defer = NULL; static char *_e_config_profile = NULL; static E_Config_DD *_e_config_edd = NULL; @@ -81,6 +81,7 @@ } else _e_config_profile = strdup("default"); + e_util_env_set("E_CONF_PROFILE", _e_config_profile); } else _e_config_profile = strdup(_e_config_profile); @@ -370,7 +371,6 @@ E_CONFIG_VAL(D, T, font_cache, INT); /**/ E_CONFIG_VAL(D, T, edje_cache, INT); /**/ E_CONFIG_VAL(D, T, edje_collection_cache, INT); /**/ - E_CONFIG_VAL(D, T, cache_flush_interval, DOUBLE); /**/ E_CONFIG_VAL(D, T, zone_desks_x_count, INT); /**/ E_CONFIG_VAL(D, T, zone_desks_y_count, INT); /**/ E_CONFIG_VAL(D, T, use_virtual_roots, INT); /* should not make this a config option (for now) */ @@ -449,7 +449,6 @@ 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_VAL(D, T, transition_start, STR); /**/ E_CONFIG_VAL(D, T, transition_desk, STR); /**/ E_CONFIG_VAL(D, T, transition_change, STR); /**/ @@ -575,6 +574,9 @@ E_CONFIG_VAL(D, T, menu_favorites_show, INT); E_CONFIG_VAL(D, T, menu_apps_show, INT); + E_CONFIG_VAL(D, T, ping_clients_interval, INT); + E_CONFIG_VAL(D, T, cache_flush_poll_interval, INT); + e_config = e_config_domain_load("e", _e_config_edd); if (e_config) { @@ -631,7 +633,6 @@ e_config->font_cache = 512; e_config->edje_cache = 32; e_config->edje_collection_cache = 64; - e_config->cache_flush_interval = 60.0; e_config->zone_desks_x_count = 4; e_config->zone_desks_y_count = 1; e_config->use_virtual_roots = 0; @@ -689,7 +690,6 @@ 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->transition_start = NULL; e_config->transition_desk = evas_stringshare_add("vswipe"); e_config->transition_change = evas_stringshare_add("crossfade"); @@ -1477,6 +1477,11 @@ e_config->show_desktop_icons = 1; IFCFGEND; + IFCFG(0x0123); + e_config->ping_clients_interval = 128; + e_config->cache_flush_poll_interval = 512; + IFCFGEND; + e_config->config_version = E_CONFIG_FILE_VERSION; #if 0 /* example of new config */ @@ -1497,7 +1502,7 @@ E_CONFIG_LIMIT(e_config->font_cache, 0, 32 * 1024); E_CONFIG_LIMIT(e_config->edje_cache, 0, 256); E_CONFIG_LIMIT(e_config->edje_collection_cache, 0, 512); - E_CONFIG_LIMIT(e_config->cache_flush_interval, 0.0, 600.0); + E_CONFIG_LIMIT(e_config->cache_flush_poll_interval, 8, 32768); E_CONFIG_LIMIT(e_config->zone_desks_x_count, 1, 64); E_CONFIG_LIMIT(e_config->zone_desks_y_count, 1, 64); E_CONFIG_LIMIT(e_config->show_desktop_icons, 0, 1); @@ -1545,7 +1550,6 @@ 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); E_CONFIG_LIMIT(e_config->move_info_follows, 0, 1); E_CONFIG_LIMIT(e_config->resize_info_follows, 0, 1); E_CONFIG_LIMIT(e_config->move_info_visible, 0, 1); @@ -1609,6 +1613,8 @@ E_CONFIG_LIMIT(e_config->menu_favorites_show, 0, 1); E_CONFIG_LIMIT(e_config->menu_apps_show, 0, 1); + + E_CONFIG_LIMIT(e_config->ping_clients_interval, 4, 1024); /* FIXME: disabled auto apply because it causes problems */ e_config->cfgdlg_auto_apply = 0; @@ -1649,10 +1655,10 @@ EAPI int e_config_save(void) { - if (_e_config_save_timer) + if (_e_config_save_defer) { - ecore_timer_del(_e_config_save_timer); - _e_config_save_timer = NULL; + e_powersave_deferred_action_del(_e_config_save_defer); + _e_config_save_defer = NULL; } _e_config_save_cb(NULL); return e_config_domain_save("e", _e_config_edd, e_config); @@ -1661,10 +1667,10 @@ EAPI void e_config_save_flush(void) { - if (_e_config_save_timer) + if (_e_config_save_defer) { - ecore_timer_del(_e_config_save_timer); - _e_config_save_timer = NULL; + e_powersave_deferred_action_del(_e_config_save_defer); + _e_config_save_defer = NULL; _e_config_save_cb(NULL); } } @@ -1672,8 +1678,10 @@ EAPI void e_config_save_queue(void) { - if (_e_config_save_timer) ecore_timer_del(_e_config_save_timer); - _e_config_save_timer = ecore_timer_add(0.25, _e_config_save_cb, NULL); + if (_e_config_save_defer) + e_powersave_deferred_action_del(_e_config_save_defer); + _e_config_save_defer = e_powersave_deferred_action_add(_e_config_save_cb, + NULL); } EAPI char * @@ -1687,6 +1695,7 @@ { E_FREE(_e_config_profile); _e_config_profile = strdup(prof); + e_util_env_set("E_CONF_PROFILE", _e_config_profile); } EAPI Evas_List * @@ -1970,14 +1979,13 @@ } /* local subsystem functions */ -static int +static void _e_config_save_cb(void *data) { e_config_profile_save(); e_module_save_all(); e_config_domain_save("e", _e_config_edd, e_config); - _e_config_save_timer = NULL; - return 0; + _e_config_save_defer = NULL; } static void =================================================================== RCS file: /cvs/e/e17/apps/e/src/bin/e_config.h,v retrieving revision 1.165 retrieving revision 1.166 diff -u -3 -r1.165 -r1.166 --- e_config.h 22 Dec 2007 01:46:22 -0000 1.165 +++ e_config.h 11 Jan 2008 07:33:55 -0000 1.166 @@ -33,7 +33,7 @@ /* increment this whenever a new set of config values are added but the users * config doesn't need to be wiped - simply new values need to be put in */ -#define E_CONFIG_FILE_GENERATION 0x0122 +#define E_CONFIG_FILE_GENERATION 0x0123 #define E_CONFIG_FILE_VERSION ((E_CONFIG_FILE_EPOCH << 16) | E_CONFIG_FILE_GENERATION) #define E_EVAS_ENGINE_DEFAULT 0 @@ -74,7 +74,6 @@ int font_cache; // GUI int edje_cache; // GUI int edje_collection_cache; // GUI - double cache_flush_interval; // GUI int zone_desks_x_count; // GUI int zone_desks_y_count; // GUI int use_virtual_roots; // NO GUI - maybe remove? @@ -154,7 +153,6 @@ int kill_process; double kill_timer_wait; int ping_clients; - double ping_clients_wait; const char *transition_start; // GUI const char *transition_desk; // GUI const char *transition_change; // GUI @@ -279,6 +277,9 @@ int desk_auto_switch; // GUI; int thumb_nice; + + int ping_clients_interval; + int cache_flush_poll_interval; // GUI }; struct _E_Config_Module =================================================================== RCS file: /cvs/e/e17/apps/e/src/bin/e_desklock.c,v retrieving revision 1.44 retrieving revision 1.45 diff -u -3 -r1.44 -r1.45 --- e_desklock.c 13 Sep 2007 21:09:11 -0000 1.44 +++ e_desklock.c 11 Jan 2008 07:33:55 -0000 1.45 @@ -59,7 +59,7 @@ #endif static Ecore_Exe *_e_custom_desklock_exe = NULL; static Ecore_Event_Handler *_e_custom_desklock_exe_handler = NULL; -static Ecore_Timer *_e_desklock_idle_timer = NULL; +static Ecore_Poller *_e_desklock_idle_poller = NULL; static int _e_desklock_user_idle = 0; /***********************************************************************/ @@ -70,7 +70,7 @@ static int _e_desklock_cb_mouse_wheel(void *data, int type, void *event); static int _e_desklock_cb_mouse_move(void *data, int type, void *event); static int _e_desklock_cb_custom_desklock_exit(void *data, int type, void *event); -static int _e_desklock_cb_idle_timer(void *data); +static int _e_desklock_cb_idle_poller(void *data); static void _e_desklock_passwd_update(void); static void _e_desklock_backspace(void); @@ -93,9 +93,9 @@ EAPI int e_desklock_init(void) { - /* A timer to tick every second, watching for an idle user */ - _e_desklock_idle_timer = ecore_timer_add(1.0, - _e_desklock_cb_idle_timer, NULL); + /* A poller to tick every 256 ticks, watching for an idle user */ + _e_desklock_idle_poller = ecore_poller_add(ECORE_POLLER_CORE, 256, + _e_desklock_cb_idle_poller, NULL); if (e_config->desklock_background) e_filereg_register(e_config->desklock_background); @@ -841,7 +841,7 @@ } static int -_e_desklock_cb_idle_timer(void *data) +_e_desklock_cb_idle_poller(void *data) { if (e_config->desklock_autolock_idle) { @@ -870,6 +870,6 @@ _e_desklock_user_idle = 0; } - /* Make sure our timer persists. */ + /* Make sure our poller persists. */ return 1; } =================================================================== RCS file: /cvs/e/e17/apps/e/src/bin/e_exehist.c,v retrieving revision 1.10 retrieving revision 1.11 diff -u -3 -r1.10 -r1.11 --- e_exehist.c 10 Nov 2007 23:37:35 -0000 1.10 +++ e_exehist.c 11 Jan 2008 07:33:55 -0000 1.11 @@ -3,8 +3,6 @@ */ #include "e.h" -/* currently default bind is alt+` buf alt+space has been suggested */ - /* local subsystem functions */ typedef struct _E_Exehist E_Exehist; typedef struct _E_Exehist_Item E_Exehist_Item; @@ -27,13 +25,14 @@ static void _e_exehist_clear(void); static void _e_exehist_unload(void); static void _e_exehist_limit(void); -static int _e_exehist_cb_unload(void *data); +static void _e_exehist_cb_unload(void *data); /* local subsystem globals */ static E_Config_DD *_e_exehist_config_edd = NULL; static E_Config_DD *_e_exehist_config_item_edd = NULL; static E_Exehist *_e_exehist = NULL; -static Ecore_Timer *_e_exehist_unload_timer = NULL; +static E_Powersave_Deferred_Action *_e_exehist_unload_defer = NULL; +static int _e_exehist_changes = 0; /* externally accessible functions */ EAPI int @@ -61,7 +60,12 @@ EAPI int e_exehist_shutdown(void) { - _e_exehist_unload(); + if (_e_exehist_unload_defer) + { + e_powersave_deferred_action_del(_e_exehist_unload_defer); + _e_exehist_unload_defer = NULL; + } + _e_exehist_cb_unload(NULL); E_CONFIG_DD_FREE(_e_exehist_config_item_edd); E_CONFIG_DD_FREE(_e_exehist_config_edd); return 1; @@ -85,7 +89,7 @@ ei->exetime = ecore_time_get(); _e_exehist->history = evas_list_append(_e_exehist->history, ei); _e_exehist_limit(); - e_config_domain_save("exehist", _e_exehist_config_edd, _e_exehist); + _e_exehist_changes++; _e_exehist_unload_queue(); } @@ -95,7 +99,7 @@ _e_exehist_load(); if (!_e_exehist) return; _e_exehist_clear(); - e_config_domain_save("exehist", _e_exehist_config_edd, _e_exehist); + _e_exehist_changes++; _e_exehist_unload_queue(); } @@ -114,6 +118,7 @@ ei = l->data; if ((ei->exe) && (!strcmp(exe, ei->exe))) count++; } + _e_exehist_unload_queue(); return count; } @@ -129,8 +134,13 @@ E_Exehist_Item *ei; ei = l->data; - if ((ei->exe) && (!strcmp(exe, ei->exe))) return ei->exetime; + if ((ei->exe) && (!strcmp(exe, ei->exe))) + { + _e_exehist_unload_queue(); + } + return ei->exetime; } + _e_exehist_unload_queue(); return 0.0; } @@ -169,6 +179,7 @@ } if (count > max) break; } + _e_exehist_unload_queue(); return list; } @@ -200,6 +211,7 @@ if (ei->launch_method) evas_stringshare_del(ei->launch_method); free(ei); _e_exehist->mimes = evas_list_remove_list(_e_exehist->mimes, l); + _e_exehist_changes++; break; } } @@ -214,7 +226,7 @@ ei->exetime = ecore_time_get(); _e_exehist->mimes = evas_list_append(_e_exehist->mimes, ei); _e_exehist_limit(); - e_config_domain_save("exehist", _e_exehist_config_edd, _e_exehist); + _e_exehist_changes++; _e_exehist_unload_queue(); } @@ -250,8 +262,10 @@ static void _e_exehist_unload_queue(void) { - if (_e_exehist_unload_timer) ecore_timer_del(_e_exehist_unload_timer); - _e_exehist_unload_timer = ecore_timer_add(2.0, _e_exehist_cb_unload, NULL); + if (_e_exehist_unload_defer) + e_powersave_deferred_action_del(_e_exehist_unload_defer); + _e_exehist_unload_defer = + e_powersave_deferred_action_add(_e_exehist_cb_unload, NULL); } static void @@ -331,10 +345,14 @@ } } -static int +static void _e_exehist_cb_unload(void *data) { + if (_e_exehist_changes) + { + e_config_domain_save("exehist", _e_exehist_config_edd, _e_exehist); + _e_exehist_changes = 0; + } _e_exehist_unload(); - _e_exehist_unload_timer = NULL; - return 0; + _e_exehist_unload_defer = NULL; } =================================================================== RCS file: /cvs/e/e17/apps/e/src/bin/e_fm_custom.c,v retrieving revision 1.8 retrieving revision 1.9 diff -u -3 -r1.8 -r1.9 --- e_fm_custom.c 13 Sep 2007 21:09:12 -0000 1.8 +++ e_fm_custom.c 11 Jan 2008 07:33:55 -0000 1.9 @@ -12,9 +12,9 @@ static void _e_fm2_custom_file_info_load(void); static void _e_fm2_custom_file_info_save(void); static void _e_fm2_custom_file_info_free(void); -static int _e_fm2_custom_file_cb_timer_save(void *data); +static void _e_fm2_custom_file_cb_defer_save(void *data); -static Ecore_Timer *_e_fm2_flush_timer = NULL; +static E_Powersave_Deferred_Action*_e_fm2_flush_defer = NULL; static Eet_File *_e_fm2_custom_file = NULL; static Eet_Data_Descriptor *_e_fm2_custom_file_edd = NULL; static Evas_Hash *_e_fm2_custom_hash = NULL; @@ -75,8 +75,8 @@ { _e_fm2_custom_file_info_save(); _e_fm2_custom_file_info_free(); - if (_e_fm2_flush_timer) ecore_timer_del(_e_fm2_flush_timer); - _e_fm2_flush_timer = NULL; + if (_e_fm2_flush_defer) e_powersave_deferred_action_del(_e_fm2_flush_defer); + _e_fm2_flush_defer = NULL; eet_data_descriptor_free(_e_fm2_custom_file_edd); _e_fm2_custom_file_edd = NULL; } @@ -88,7 +88,7 @@ _e_fm2_custom_file_info_load(); if (!_e_fm2_custom_file) return NULL; - if (_e_fm2_flush_timer) e_fm2_custom_file_flush(); + if (_e_fm2_flush_defer) e_fm2_custom_file_flush(); cf = evas_hash_find(_e_fm2_custom_hash, path); return cf; } @@ -98,7 +98,7 @@ { _e_fm2_custom_file_info_load(); if (!_e_fm2_custom_file) return; - if (_e_fm2_flush_timer) e_fm2_custom_file_flush(); + if (_e_fm2_flush_defer) e_fm2_custom_file_flush(); if (evas_hash_find(_e_fm2_custom_hash, path) != cf) { E_Fm2_Custom_File *cf2; @@ -125,7 +125,7 @@ _e_fm2_custom_file_info_load(); if (!_e_fm2_custom_file) return; - if (_e_fm2_flush_timer) e_fm2_custom_file_flush(); + if (_e_fm2_flush_defer) e_fm2_custom_file_flush(); list = _e_fm2_custom_hash_key_base_list(_e_fm2_custom_hash, path); if (list) @@ -155,7 +155,7 @@ _e_fm2_custom_file_info_load(); if (!_e_fm2_custom_file) return; - if (_e_fm2_flush_timer) e_fm2_custom_file_flush(); + if (_e_fm2_flush_defer) e_fm2_custom_file_flush(); cf2 = evas_hash_find(_e_fm2_custom_hash, path); if (cf2) { @@ -203,8 +203,11 @@ e_fm2_custom_file_flush(void) { if (!_e_fm2_custom_file) return; - if (_e_fm2_flush_timer) ecore_timer_del(_e_fm2_flush_timer); - _e_fm2_flush_timer = ecore_timer_add(1.0, _e_fm2_custom_file_cb_timer_save, NULL); + + if (_e_fm2_flush_defer) + e_powersave_deferred_action_del(_e_fm2_flush_defer); + _e_fm2_flush_defer = + e_powersave_deferred_action_add(_e_fm2_custom_file_cb_defer_save, NULL); } /**/ @@ -372,11 +375,10 @@ } } -static int -_e_fm2_custom_file_cb_timer_save(void *data) +static void +_e_fm2_custom_file_cb_defer_save(void *data) { _e_fm2_custom_file_info_save(); _e_fm2_custom_file_info_free(); - _e_fm2_flush_timer = NULL; - return 0; + _e_fm2_flush_defer = NULL; } =================================================================== RCS file: /cvs/e/e17/apps/e/src/bin/e_fm_main.c,v retrieving revision 1.38 retrieving revision 1.39 diff -u -3 -r1.38 -r1.39 --- e_fm_main.c 24 Nov 2007 13:23:35 -0000 1.38 +++ e_fm_main.c 11 Jan 2008 07:33:55 -0000 1.39 @@ -280,7 +280,7 @@ ecore_list_first_goto(ret->strings); while ((device = ecore_list_next(ret->strings))) { -// printf("DB INIT DEV+: %s\n", device); + printf("DB INIT DEV+: %s\n", device); char *udi; udi = device; @@ -308,7 +308,7 @@ ecore_list_first_goto(ret->strings); while ((device = ecore_list_next(ret->strings))) { -// printf("DB STORE+: %s\n", device); + printf("DB STORE+: %s\n", device); e_storage_add(device); } } @@ -330,7 +330,7 @@ ecore_list_first_goto(ret->strings); while ((device = ecore_list_next(ret->strings))) { -// printf("DB VOL+: %s\n", device); + printf("DB VOL+: %s\n", device); e_volume_add(device); } } @@ -349,7 +349,7 @@ if (ret && ret->boolean) { -// printf("DB STORE IS+: %s\n", udi); + printf("DB STORE IS+: %s\n", udi); e_storage_add(udi); } @@ -362,7 +362,7 @@ { char *udi = user_data; E_Hal_Device_Query_Capability_Return *ret = reply_data; - + if (dbus_error_is_set(error)) { dbus_error_free(error); @@ -371,7 +371,7 @@ if (ret && ret->boolean) { -// printf("DB VOL IS+: %s\n", udi); + printf("DB VOL IS+: %s\n", udi); e_volume_add(udi); } @@ -389,7 +389,7 @@ dbus_error_init(&err); dbus_message_get_args(msg, &err, DBUS_TYPE_STRING, &udi, DBUS_TYPE_INVALID); udi = strdup(udi); -// printf("DB DEV+: %s\n", udi); + printf("DB DEV+: %s\n", udi); ret = e_hal_device_query_capability(_e_dbus_conn, udi, "storage", _e_dbus_cb_store_is, strdup(udi)); e_hal_device_query_capability(_e_dbus_conn, udi, "volume", @@ -407,7 +407,7 @@ dbus_message_get_args(msg, &err, DBUS_TYPE_STRING, &udi, DBUS_TYPE_INVALID); -// printf("DB DEV-: %s\n", udi); + printf("DB DEV-: %s\n", udi); e_storage_del(udi); e_volume_del(udi); } @@ -426,7 +426,7 @@ &capability, DBUS_TYPE_INVALID); if (!strcmp(capability, "storage")) { -// printf("DB STORE CAP+: %s\n", udi); + printf("DB STORE CAP+: %s\n", udi); e_storage_add(udi); } } @@ -1485,6 +1485,7 @@ } // printf("MOD %s %3.3f\n", path, ecore_time_get()); lnk = ecore_file_readlink(path); + memset(&st, 0, sizeof(struct stat)); if (stat(path, &st) == -1) { if ((path[0] == 0) || (lnk)) broken_lnk = 1; @@ -1848,6 +1849,7 @@ char buf[PATH_MAX], buf2[PATH_MAX], *lnk; fop = (E_Fop *)data; + memset(&st, 0, sizeof(struct stat)); if (!fop->data) { fd = calloc(1, sizeof(struct Fop_Data)); =================================================================== RCS file: /cvs/e/e17/apps/e/src/bin/e_gadcon.c,v retrieving revision 1.98 retrieving revision 1.99 diff -u -3 -r1.98 -r1.99 --- e_gadcon.c 27 Dec 2007 21:05:35 -0000 1.98 +++ e_gadcon.c 11 Jan 2008 07:33:55 -0000 1.99 @@ -453,7 +453,8 @@ cf_gcc = l->data; if ((cf_gcc->name) && (cc->name) && - (!strcmp(cf_gcc->name, cc->name))) + (!strcmp(cf_gcc->name, cc->name)) && + (cf_gcc->id) && (cf_gcc->style)) { E_Gadcon_Client *gcc; =================================================================== RCS file: /cvs/e/e17/apps/e/src/bin/e_includes.h,v retrieving revision 1.173 retrieving revision 1.174 diff -u -3 -r1.173 -r1.174 --- e_includes.h 31 Oct 2007 10:09:51 -0000 1.173 +++ e_includes.h 11 Jan 2008 07:33:55 -0000 1.174 @@ -131,3 +131,4 @@ #include "e_msgbus.h" #include "e_toolbar.h" #include "e_int_toolbar_config.h" +#include "e_powersave.h" =================================================================== RCS file: /cvs/e/e17/apps/e/src/bin/e_int_menus.c,v retrieving revision 1.231 retrieving revision 1.232 diff -u -3 -r1.231 -r1.232 --- e_int_menus.c 27 Aug 2007 09:01:46 -0000 1.231 +++ e_int_menus.c 11 Jan 2008 07:33:55 -0000 1.232 @@ -12,6 +12,7 @@ E_Menu *all_apps; E_Menu *desktops; E_Menu *clients; + E_Menu *enlightenment; E_Menu *config; E_Menu *lost_clients; E_Menu *sys; @@ -162,6 +163,7 @@ if (l) _e_int_menus_augmentation_add(m, l); subm = e_menu_new(); + dat->enlightenment = subm; mi = e_menu_item_new(m); e_menu_item_label_set(mi, _("Enlightenment")); e_util_menu_item_edje_icon_set(mi, "enlightenment/e"); @@ -415,6 +417,7 @@ if (dat->all_apps) e_object_del(E_OBJECT(dat->all_apps)); e_object_del(E_OBJECT(dat->desktops)); e_object_del(E_OBJECT(dat->clients)); + e_object_del(E_OBJECT(dat->enlightenment)); e_object_del(E_OBJECT(dat->config)); if (dat->lost_clients) e_object_del(E_OBJECT(dat->lost_clients)); e_object_del(E_OBJECT(dat->sys)); @@ -473,6 +476,8 @@ static void _e_int_menus_main_lock(void *data, E_Menu *m, E_Menu_Item *mi) { + /* this is correct - should be after other idle enteres have run - i.e. + * after e_menu's idler_enterer has been run */ ecore_idle_enterer_add(_e_int_menus_main_lock_defer_cb, m->zone); } =================================================================== RCS file: /cvs/e/e17/apps/e/src/bin/e_ipc_handlers.h,v retrieving revision 1.150 retrieving revision 1.151 diff -u -3 -r1.150 -r1.151 --- e_ipc_handlers.h 24 Aug 2007 04:22:25 -0000 1.150 +++ e_ipc_handlers.h 11 Jan 2008 07:33:55 -0000 1.151 @@ -2080,47 +2080,6 @@ #undef HDL /****************************************************************************/ -#define HDL E_IPC_OP_CACHE_FLUSH_INTERVAL_SET -#if (TYPE == E_REMOTE_OPTIONS) - OP("-cache-flush-interval-set", 1, "Set the cache flush interval (sec) (0.0 = off)", 0, HDL) -#elif (TYPE == E_REMOTE_OUT) - REQ_DOUBLE(atof(params[0]), HDL); -#elif (TYPE == E_WM_IN) - START_DOUBLE(dbl, HDL); - e_config->cache_flush_interval = dbl; - E_CONFIG_LIMIT(e_config->cache_flush_interval, 0.0, 600.0); - e_canvas_recache(); - SAVE; - END_DOUBLE; -#elif (TYPE == E_REMOTE_IN) -#endif -#undef HDL - -/****************************************************************************/ -#define HDL E_IPC_OP_CACHE_FLUSH_INTERVAL_GET -#if (TYPE == E_REMOTE_OPTIONS) - OP("-cache-flush-interval-get", 0, "Get the interval between cache flushed (sec)", 1, HDL) -#elif (TYPE == E_REMOTE_OUT) - REQ_NULL(HDL); -#elif (TYPE == E_WM_IN) - SEND_DOUBLE(e_config->cache_flush_interval, E_IPC_OP_CACHE_FLUSH_INTERVAL_GET_REPLY, HDL); -#elif (TYPE == E_REMOTE_IN) -#endif -#undef HDL - -/****************************************************************************/ -#define HDL E_IPC_OP_CACHE_FLUSH_INTERVAL_GET_REPLY -#if (TYPE == E_REMOTE_OPTIONS) -#elif (TYPE == E_REMOTE_OUT) -#elif (TYPE == E_WM_IN) -#elif (TYPE == E_REMOTE_IN) - START_DOUBLE(fint, HDL); - printf("REPLY: %3.3f\n", fint); - END_DOUBLE; -#endif -#undef HDL - -/****************************************************************************/ #define HDL E_IPC_OP_MENUS_FAST_MOVE_THRESHOLD_SET #if (TYPE == E_REMOTE_OPTIONS) OP("-menus-fast-move-threshold-set", 1, "Set the mouse speed (pixels/second) that is considered a 'fast move'", 0, HDL) @@ -4556,46 +4515,6 @@ START_INT(val, HDL); printf("REPLY: %d\n", val); END_INT; -#endif -#undef HDL - -/****************************************************************************/ -#define HDL E_IPC_OP_PING_CLIENTS_WAIT_SET -#if (TYPE == E_REMOTE_OPTIONS) - OP("-ping-clients-wait-set", 1, "Set client ping interval (0.0-120.0)", 0, HDL) -#elif (TYPE == E_REMOTE_OUT) - REQ_DOUBLE(atof(params[0]), HDL); -#elif (TYPE == E_WM_IN) - START_DOUBLE(val, HDL); - e_config->ping_clients_wait = val; - E_CONFIG_LIMIT(e_config->ping_clients_wait, 0.0, 120.0); - SAVE; - END_DOUBLE; -#elif (TYPE == E_REMOTE_IN) -#endif -#undef HDL - -/****************************************************************************/ -#define HDL E_IPC_OP_PING_CLIENTS_WAIT_GET -#if (TYPE == E_REMOTE_OPTIONS) - OP("-ping-clients-wait-get", 0, "Get client ping interval", 1, HDL) -#elif (TYPE == E_REMOTE_OUT) - REQ_NULL(HDL); -#elif (TYPE == E_WM_IN) - SEND_DOUBLE(e_config->ping_clients_wait, E_IPC_OP_PING_CLIENTS_WAIT_GET_REPLY, HDL); -#elif (TYPE == E_REMOTE_IN) -#endif -#undef HDL - -/****************************************************************************/ -#define HDL E_IPC_OP_PING_CLIENTS_WAIT_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 =================================================================== RCS file: /cvs/e/e17/apps/e/src/bin/e_main.c,v retrieving revision 1.241 retrieving revision 1.242 diff -u -3 -r1.241 -r1.242 --- e_main.c 19 Nov 2007 20:03:05 -0000 1.241 +++ e_main.c 11 Jan 2008 07:33:55 -0000 1.242 @@ -357,7 +357,7 @@ } /* an idle enterer to be called before all others */ - _e_main_idle_enterer_before = ecore_idle_enterer_add(_e_main_cb_idler_before, NULL); + _e_main_idle_enterer_before = ecore_idle_enterer_before_add(_e_main_cb_idler_before, NULL); TS("x connect"); /* init x */ @@ -862,8 +862,17 @@ } _e_main_shutdown_push(e_order_shutdown); + e_init_status_set(_("Set Up Powersave modes")); + TS("powersave"); + if (!e_powersave_init()) + { + e_error_message_show(_("Enlightenment cannot set up its powersave modes.")); + _e_main_shutdown(-1); + } + _e_main_shutdown_push(e_powersave_shutdown); + TS("add idle enterers"); - /* add in a handler that just before we go idle we flush x */ + /* add in a handler that just before we go idle we flush x - will happen after ecore_evas's idle rendering as it's after ecore_evas_init() */ _e_main_idle_enterer_flusher = ecore_idle_enterer_add(_e_main_cb_x_flusher, NULL); e_managers_keys_grab(); @@ -926,6 +935,8 @@ starting = 0; /* start our main loop */ ecore_main_loop_begin(); + + e_canvas_idle_flush(); stopping = 1; /* ask all modules to save their config and then shutdown */ =================================================================== RCS file: /cvs/e/e17/apps/e/src/bin/e_menu.c,v retrieving revision 1.74 retrieving revision 1.75 diff -u -3 -r1.74 -r1.75 --- e_menu.c 25 Mar 2007 22:45:00 -0000 1.74 +++ e_menu.c 11 Jan 2008 07:33:55 -0000 1.75 @@ -82,7 +82,7 @@ static int _e_menu_cb_mouse_up (void *data, int type, void *event); static int _e_menu_cb_mouse_move (void *data, int type, void *event); static int _e_menu_cb_mouse_wheel (void *data, int type, void *event); -static int _e_menu_cb_scroll_timer (void *data); +static int _e_menu_cb_scroll_animator (void *data); static int _e_menu_cb_window_shape (void *data, int ev_type, void *ev); static void _e_menu_cb_item_submenu_post_default (void *data, E_Menu *m, E_Menu_Item *mi); @@ -98,7 +98,7 @@ static int _e_menu_activate_floating = 0; static int _e_menu_activate_maybe_drag = 0; static int _e_menu_activate_dragging = 0; -static Ecore_Timer *_e_menu_scroll_timer = NULL; +static Ecore_Animator *_e_menu_scroll_animator = NULL; static double _e_menu_scroll_start = 0.0; static int _e_menu_x = 0; static int _e_menu_y = 0; @@ -2394,9 +2394,9 @@ _e_menu_autoscroll_x = autoscroll_x; _e_menu_autoscroll_y = autoscroll_y; if ((!autoscroll_x) && (!autoscroll_y)) return; - if (_e_menu_scroll_timer) return; - _e_menu_scroll_timer = ecore_timer_add(1.0 / 60.0, - _e_menu_cb_scroll_timer, NULL); + if (_e_menu_scroll_animator) return; + _e_menu_scroll_animator = ecore_animator_add(_e_menu_cb_scroll_animator, + NULL); _e_menu_scroll_start = ecore_time_get(); } @@ -2786,7 +2786,7 @@ } static int -_e_menu_cb_scroll_timer(void *data) +_e_menu_cb_scroll_animator(void *data) { double t, dt; double dx, dy; @@ -2829,7 +2829,7 @@ _e_menu_mouse_autoscroll_check(); if ((_e_menu_autoscroll_x == 0) && (_e_menu_autoscroll_y == 0)) { - _e_menu_scroll_timer = NULL; + _e_menu_scroll_animator = NULL; return 0; } return 1; =================================================================== RCS file: /cvs/e/e17/apps/e/src/bin/e_place.c,v retrieving revision 1.28 retrieving revision 1.29 diff -u -3 -r1.28 -r1.29 --- e_place.c 31 Oct 2007 02:41:52 -0000 1.28 +++ e_place.c 11 Jan 2008 07:33:55 -0000 1.29 @@ -442,7 +442,7 @@ if ((*ry + h) > zone->h) *ry = zone->h - h; if (*ry < 0) *ry = 0; - printf("0 - PLACE %i %i | %ix%i\n", *rx, *ry, w, h); +// printf("0 - PLACE %i %i | %ix%i\n", *rx, *ry, w, h); *rx += zone->x; *ry += zone->y; =================================================================== RCS file: /cvs/e/e17/apps/e/src/bin/e_pointer.c,v retrieving revision 1.34 retrieving revision 1.35 diff -u -3 -r1.34 -r1.35 --- e_pointer.c 27 Dec 2007 22:53:30 -0000 1.34 +++ e_pointer.c 11 Jan 2008 07:33:55 -0000 1.35 @@ -33,7 +33,8 @@ static int _e_pointer_cb_mouse_move(void *data, int type, void *event); static int _e_pointer_cb_mouse_wheel(void *data, int type, void *event); static int _e_pointer_cb_idle_timer_pre(void *data); -static int _e_pointer_cb_idle_timer(void *data); +static int _e_pointer_cb_idle_timer_wait(void *data); +static int _e_pointer_cb_idle_poller(void *data); /* externally accessible functions */ EAPI int @@ -331,6 +332,7 @@ if (p->type) evas_stringshare_del(p->type); if (p->idle_timer) ecore_timer_del(p->idle_timer); + if (p->idle_poller) ecore_poller_del(p->idle_poller); free(p); } @@ -477,6 +479,11 @@ /* we got some mouse event - if there was an idle timer emit an active * signal as we WERE idle, NOW we are active */ if (p->idle_timer) ecore_timer_del(p->idle_timer); + if (p->idle_poller) + { + ecore_poller_del(p->idle_poller); + p->idle_poller = NULL; + } if (p->idle) { if (p->pointer_object) @@ -569,12 +576,25 @@ ecore_x_pointer_xy_get(p->win, &x, &y); p->x = x; p->y = y; - p->idle_timer = ecore_timer_add(4.0, _e_pointer_cb_idle_timer, p); + p->idle_timer = ecore_timer_add(4.0, _e_pointer_cb_idle_timer_wait, p); + return 0; +} + +static int +_e_pointer_cb_idle_timer_wait(void *data) +{ + E_Pointer *p; + + p = data; + if (!p->idle_poller) + p->idle_poller = ecore_poller_add(ECORE_POLLER_CORE, 64, + _e_pointer_cb_idle_poller, p); + p->idle_timer = NULL; return 0; } static int -_e_pointer_cb_idle_timer(void *data) +_e_pointer_cb_idle_poller(void *data) { E_Pointer *p; int x, y; @@ -595,6 +615,7 @@ edje_object_signal_emit(p->pointer_object, "e,state,mouse,active", "e"); p->idle = 0; } + /* use poller to check from now on */ return 1; } /* we are idle - report it if not idle before */ @@ -604,6 +625,5 @@ edje_object_signal_emit(p->pointer_object, "e,state,mouse,idle", "e"); p->idle = 1; } - /* and check again in 4 seconds */ return 1; } =================================================================== RCS file: /cvs/e/e17/apps/e/src/bin/e_pointer.h,v retrieving revision 1.15 retrieving revision 1.16 diff -u -3 -r1.15 -r1.16 --- e_pointer.h 4 Nov 2007 04:13:59 -0000 1.15 +++ e_pointer.h 11 Jan 2008 07:33:55 -0000 1.16 @@ -26,6 +26,7 @@ Ecore_X_Window win; int w, h; Ecore_Timer *idle_timer; + Ecore_Poller *idle_poller; int x, y; const char *type; =================================================================== RCS file: /cvs/e/e17/apps/e/src/bin/e_popup.c,v retrieving revision 1.18 retrieving revision 1.19 diff -u -3 -r1.18 -r1.19 --- e_popup.c 29 Dec 2007 23:00:52 -0000 1.18 +++ e_popup.c 11 Jan 2008 07:33:55 -0000 1.19 @@ -61,7 +61,7 @@ pop->zone->x + pop->x, pop->zone->y + pop->y, pop->w, pop->h, 1, 1, &(pop->evas_win), NULL); /* avoid excess exposes when shaped - set damage avoid to 1 */ - ecore_evas_avoid_damage_set(pop->ecore_evas, 1); +// ecore_evas_avoid_damage_set(pop->ecore_evas, 1); e_canvas_add(pop->ecore_evas); pop->shape = e_container_shape_add(pop->zone->container); =================================================================== RCS file: /cvs/e/e17/apps/e/src/bin/e_utils.c,v retrieving revision 1.78 retrieving revision 1.79 diff -u -3 -r1.78 -r1.79 --- e_utils.c 30 Oct 2007 20:01:41 -0000 1.78 +++ e_utils.c 11 Jan 2008 07:33:55 -0000 1.79 @@ -947,7 +947,7 @@ if (stopping) e_object_del(obj); else - ecore_idle_enterer_add(_e_util_cb_delayed_del, obj); + ecore_idle_enterer_before_add(_e_util_cb_delayed_del, obj); } EAPI const char * ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs