Enlightenment CVS committal

Author  : onefang
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_apps.c e_fdo_menu_to_order.c e_int_menus.c 


Log Message:
Use the ecore_desktop instrumentation at useful points.

===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_apps.c,v
retrieving revision 1.195
retrieving revision 1.196
diff -u -3 -r1.195 -r1.196
--- e_apps.c    19 Sep 2006 21:50:20 -0000      1.195
+++ e_apps.c    22 Sep 2006 10:12:32 -0000      1.196
@@ -127,12 +127,14 @@
    _e_apps_repositories = evas_list_append(_e_apps_repositories, 
evas_stringshare_add(buf));
    _e_apps_exit_handler = ecore_event_handler_add(ECORE_EXE_EVENT_DEL, 
_e_apps_cb_exit, NULL);
    _e_apps_border_add_handler = ecore_event_handler_add(E_EVENT_BORDER_ADD, 
_e_app_cb_event_border_add, NULL);
+   ecore_desktop_instrumentation_reset();
    _e_apps_all = e_app_new(buf, 1);
 #if NO_APP_LIST
    /* The list already exists, and it doesn't care what order it is in. */
    if (_e_apps_all)
       _e_apps_list = _e_apps_all->subapps;
 #endif
+   ecore_desktop_instrumentation_print();
    return 1;
 }
 
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_fdo_menu_to_order.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -3 -r1.13 -r1.14
--- e_fdo_menu_to_order.c       21 Sep 2006 20:07:02 -0000      1.13
+++ e_fdo_menu_to_order.c       22 Sep 2006 10:12:32 -0000      1.14
@@ -32,18 +32,21 @@
 {
    char dir[PATH_MAX];
 
+   ecore_desktop_instrumentation_reset();
    /* Nuke the old menus. */
    snprintf(dir, sizeof(dir), "%s/.e/e/applications/menu/all/", 
ecore_desktop_home_get());
    ecore_file_recursive_rm(dir);
    menu_count = 0;
    item_count = 0;
    ecore_desktop_menu_for_each(_e_fdo_menu_to_order_make_apps);
+   ecore_desktop_instrumentation_print();
    /* This is a hueristic to guess if there are not enough apps.  Feel free to 
tweak it. */
    if ((item_count < 50) || (menu_count > (item_count * 3)))
       {
          struct category_data cat_data;
 
          // FIXME: search out all .desktop files and generate menus ala 
e17genmenu.
+         ecore_desktop_instrumentation_reset();
          cat_data.menus = ecore_hash_new(ecore_str_hash, ecore_str_compare);
         if (cat_data.menus)
            {
@@ -52,6 +55,7 @@
                ecore_desktop_paths_for_each(ECORE_DESKTOP_PATHS_DESKTOPS, 
_e_fdo_menu_to_order_cb_desktop_dir_foreach, &cat_data);
                ecore_hash_for_each_node(cat_data.menus, 
_e_fdo_menu_to_order_dump_each_hash_node2, &cat_data);
            }
+         ecore_desktop_instrumentation_print();
       }
 }
 
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_int_menus.c,v
retrieving revision 1.163
retrieving revision 1.164
diff -u -3 -r1.163 -r1.164
--- e_int_menus.c       21 Sep 2006 19:53:38 -0000      1.163
+++ e_int_menus.c       22 Sep 2006 10:12:32 -0000      1.164
@@ -457,6 +457,7 @@
    Evas_List *l;
    int app_count = 0;
    
+   ecore_desktop_instrumentation_reset();
    a = e_object_data_get(E_OBJECT(m));
    if (a)
      {
@@ -510,6 +511,7 @@
        mi = e_menu_item_new(m);
        e_menu_item_label_set(mi, _("(No Applications)"));
      }
+   ecore_desktop_instrumentation_print();
 }
 
 static void



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