Enlightenment CVS committal
Author : englebass
Project : e17
Module : apps/e
Dir : e17/apps/e/src/bin
Modified Files:
e_order.c
Log Message:
Don't need to listen for list change. The calls e_order uses should
discover the .desktop files whether the cache is filled or not.
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_order.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -3 -r1.19 -r1.20
--- e_order.c 9 Apr 2007 23:12:24 -0000 1.19
+++ e_order.c 10 Apr 2007 07:25:25 -0000 1.20
@@ -10,7 +10,6 @@
static void _e_order_save (E_Order *eo);
static int _e_order_cb_efreet_desktop_change(void *data, int ev_type, void
*ev);
-static int _e_order_cb_efreet_desktop_list_change(void *data, int ev_type,
void *ev);
static Evas_List *orders = NULL;
static Evas_List *handlers = NULL;
@@ -20,7 +19,6 @@
e_order_init(void)
{
handlers = evas_list_append(handlers,
ecore_event_handler_add(EFREET_EVENT_DESKTOP_CHANGE,
_e_order_cb_efreet_desktop_change, NULL));
- handlers = evas_list_append(handlers,
ecore_event_handler_add(EFREET_EVENT_DESKTOP_LIST_CHANGE,
_e_order_cb_efreet_desktop_list_change, NULL));
return 1;
}
@@ -247,8 +245,6 @@
fclose(f);
}
-static int list_changed = 0;
-
static int
_e_order_cb_efreet_desktop_change(void *data, int ev_type, void *ev)
{
@@ -256,7 +252,6 @@
Evas_List *l;
event = ev;
- if (!list_changed) return 1;
switch (event->change)
{
case EFREET_DESKTOP_CHANGE_ADD:
@@ -310,25 +305,6 @@
if ((changed) && (eo->cb.update)) eo->cb.update(eo->cb.data, eo);
}
break;
- }
- return 1;
-}
-
-static int
-_e_order_cb_efreet_desktop_list_change(void *data, int ev_type, void *ev)
-{
- Evas_List *l;
-
- if (!list_changed)
- {
- list_changed = 1;
- for (l = orders; l; l = l->next)
- {
- E_Order *eo;
-
- eo = l->data;
- if (eo->cb.update) eo->cb.update(eo->cb.data, eo);
- }
}
return 1;
}
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs