Enlightenment CVS committal
Author : sebastid
Project : e17
Module : apps/e
Dir : e17/apps/e/src/bin
Modified Files:
e_zone.c
Log Message:
Free the desks on shutdown.
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_zone.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -3 -r1.23 -r1.24
--- e_zone.c 13 Feb 2005 12:33:30 -0000 1.23
+++ e_zone.c 15 Feb 2005 11:48:08 -0000 1.24
@@ -222,6 +222,7 @@
_e_zone_free(E_Zone *zone)
{
E_Container *con;
+ int x, y;
con = zone->container;
if (zone->name) free(zone->name);
@@ -229,6 +230,12 @@
evas_object_del(zone->bg_event_object);
evas_object_del(zone->bg_clip_object);
evas_object_del(zone->bg_object);
+ /* free desks */
+ for (x = 0; x < zone->desk_x_count; x++)
+ for(y = 0; y < zone->desk_y_count; y++)
+ e_object_del(E_OBJECT(zone->desks[x + (y * zone->desk_x_count)]));
+ free(zone->desks);
+
free(zone);
}
@@ -251,7 +258,7 @@
if (ev->button == 1)
{
E_Menu *m;
-
+
m = e_int_menus_main_new();
e_menu_post_deactivate_callback_set(m, _e_zone_cb_menu_end, NULL);
e_menu_activate_mouse(m, zone, ev->output.x, ev->output.y, 1, 1,
@@ -273,7 +280,7 @@
else if (ev->button == 3)
{
E_Menu *m;
-
+
m = e_int_menus_favorite_apps_new();
e_menu_post_deactivate_callback_set(m, _e_zone_cb_menu_end, NULL);
e_menu_activate_mouse(m, zone, ev->output.x, ev->output.y, 1, 1,
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs