Enlightenment CVS committal Author : raster Project : e17 Module : apps/e
Dir : e17/apps/e/src/bin Modified Files: e_container.c e_container.h e_main.c e_menu.c e_test.c Log Message: speed things up a little more =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_container.c,v retrieving revision 1.60 retrieving revision 1.61 diff -u -3 -r1.60 -r1.61 --- e_container.c 22 May 2005 23:43:26 -0000 1.60 +++ e_container.c 26 May 2005 15:30:10 -0000 1.61 @@ -810,6 +810,50 @@ free(list); } +void +e_container_all_freeze(void) +{ + Evas_List *managers, *l; + + managers = e_manager_list(); + for (l = managers; l; l = l->next) + { + Evas_List *ll; + E_Manager *man; + + man = l->data; + for (ll = man->containers; ll; ll = ll->next) + { + E_Container *con; + + con = ll->data; + evas_event_freeze(con->bg_evas); + } + } +} + +void +e_container_all_thaw(void) +{ + Evas_List *managers, *l; + + managers = e_manager_list(); + for (l = managers; l; l = l->next) + { + Evas_List *ll; + E_Manager *man; + + man = l->data; + for (ll = man->containers; ll; ll = ll->next) + { + E_Container *con; + + con = ll->data; + evas_event_thaw(con->bg_evas); + } + } +} + /* local subsystem functions */ static void _e_container_free(E_Container *con) =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_container.h,v retrieving revision 1.22 retrieving revision 1.23 diff -u -3 -r1.22 -r1.23 --- e_container.h 13 May 2005 13:34:21 -0000 1.22 +++ e_container.h 26 May 2005 15:30:10 -0000 1.23 @@ -133,6 +133,9 @@ EAPI void e_container_border_stack_above(E_Border *bd, E_Border *above); EAPI void e_container_border_stack_below(E_Border *bd, E_Border *below); +EAPI void e_container_all_freeze(void); +EAPI void e_container_all_thaw(void); + extern EAPI int E_EVENT_CONTAINER_RESIZE; #endif =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_main.c,v retrieving revision 1.84 retrieving revision 1.85 diff -u -3 -r1.84 -r1.85 --- e_main.c 26 May 2005 12:38:53 -0000 1.84 +++ e_main.c 26 May 2005 15:30:10 -0000 1.85 @@ -352,6 +352,9 @@ "failed. Perhaps another window manager is running?\n")); _e_main_shutdown(-1); } + + e_container_all_freeze(); + _e_main_shutdown_push(_e_main_screens_shutdown); /* init app system */ if (!e_app_init()) @@ -441,6 +444,8 @@ ecore_timer_add(16.0, _e_main_cb_startup_fake_end, NULL); } + e_container_all_thaw(); + /* run any testing code now we are set up */ e_test(); =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_menu.c,v retrieving revision 1.32 retrieving revision 1.33 diff -u -3 -r1.32 -r1.33 --- e_menu.c 20 May 2005 06:30:26 -0000 1.32 +++ e_menu.c 26 May 2005 15:30:10 -0000 1.33 @@ -1136,6 +1136,7 @@ ecore_evas_callback_resize_set(m->ecore_evas, _e_menu_cb_ecore_evas_resize); m->evas = ecore_evas_get(m->ecore_evas); + evas_event_freeze(m->evas); /* move cursor out to avoid event cycles during setup */ evas_event_feed_mouse_in(m->evas, NULL); evas_event_feed_mouse_move(m->evas, -1000000, -1000000, NULL); @@ -1190,6 +1191,7 @@ _e_menu_items_layout_update(m); e_box_thaw(o); evas_object_resize(m->bg_object, m->cur.w, m->cur.h); + evas_event_thaw(m->evas); } static void =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_test.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -3 -r1.4 -r1.5 --- e_test.c 3 Apr 2005 14:22:20 -0000 1.4 +++ e_test.c 26 May 2005 15:30:10 -0000 1.5 @@ -170,7 +170,7 @@ break; } } -#elif 0 +#elif 1 static int _e_test_timer(void *data) { ------------------------------------------------------- This SF.Net email is sponsored by Yahoo. Introducing Yahoo! Search Developer Network - Create apps using Yahoo! Search APIs Find out how you can build Yahoo! directly into your own Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs