Enlightenment CVS committal
Author : englebass
Project : e17
Module : apps/e
Dir : e17/apps/e/src/bin
Modified Files:
e_shelf.c
Log Message:
Keep a hash with winid keys.
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_shelf.c,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -3 -r1.62 -r1.63
--- e_shelf.c 7 May 2007 17:46:25 -0000 1.62
+++ e_shelf.c 7 May 2007 18:14:28 -0000 1.63
@@ -27,6 +27,7 @@
static void _e_shelf_menu_pre_cb(void *data, E_Menu *m);
static Evas_List *shelves = NULL;
+static Evas_Hash *winid_shelves = NULL;
/* externally accessible functions */
EAPI int
@@ -187,7 +188,10 @@
e_gadcon_zone_set(es->gadcon, zone);
e_gadcon_ecore_evas_set(es->gadcon, es->ee);
if (popup)
- e_gadcon_dnd_window_set(es->gadcon, es->popup->evas_win);
+ {
+ e_gadcon_dnd_window_set(es->gadcon, es->popup->evas_win);
+ winid_shelves = evas_hash_add(winid_shelves,
e_util_winid_str_get(es->popup->evas_win), es);
+ }
else
e_gadcon_dnd_window_set(es->gadcon, zone->container->event_win);
e_gadcon_util_menu_attach_func_set(es->gadcon,
@@ -648,6 +652,7 @@
if (es->popup)
{
e_drop_xdnd_register_set(es->popup->evas_win, 0);
+ winid_shelves = evas_hash_del(winid_shelves,
e_util_winid_str_get(es->popup->evas_win), es);
e_object_del(E_OBJECT(es->popup));
}
free(es);
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs