Enlightenment CVS committal
Author : sebastid
Project : e17
Module : apps/e
Dir : e17/apps/e/src/modules/temperature
Modified Files:
e_mod_main.c
Log Message:
Free config list.
Use switch to check gadman change.
Cleanup naming.
===================================================================
RCS file:
/cvsroot/enlightenment/e17/apps/e/src/modules/temperature/e_mod_main.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -3 -r1.11 -r1.12
--- e_mod_main.c 10 Feb 2005 16:48:36 -0000 1.11
+++ e_mod_main.c 16 Feb 2005 11:39:27 -0000 1.12
@@ -11,7 +11,7 @@
/* module private routines */
static Temperature *_temperature_new();
-static void _temperature_shutdown(Temperature *e);
+static void _temperature_free(Temperature *e);
static void _temperature_config_menu_new(Temperature *e);
static int _temperature_cb_check(void *data);
@@ -65,7 +65,7 @@
e = m->data;
if (e)
- _temperature_shutdown(e);
+ _temperature_free(e);
return 1;
}
@@ -210,7 +210,7 @@
}
static void
-_temperature_shutdown(Temperature *e)
+_temperature_free(Temperature *e)
{
Evas_List *l;
@@ -228,6 +228,7 @@
ecore_timer_del(e->temperature_check_timer);
+ evas_list_free(e->conf->faces);
free(e->conf);
free(e);
}
@@ -729,18 +730,25 @@
Evas_Coord x, y, w, h;
ef = data;
- if (change == E_GADMAN_CHANGE_MOVE_RESIZE)
+ switch (change)
{
- e_gadman_client_geometry_get(ef->gmc, &x, &y, &w, &h);
- evas_object_move(ef->temp_object, x, y);
- evas_object_move(ef->event_object, x, y);
- evas_object_resize(ef->temp_object, w, h);
- evas_object_resize(ef->event_object, w, h);
- }
- else if (change == E_GADMAN_CHANGE_RAISE)
- {
- evas_object_raise(ef->temp_object);
- evas_object_raise(ef->event_object);
+ case E_GADMAN_CHANGE_MOVE_RESIZE:
+ e_gadman_client_geometry_get(ef->gmc, &x, &y, &w, &h);
+ evas_object_move(ef->temp_object, x, y);
+ evas_object_move(ef->event_object, x, y);
+ evas_object_resize(ef->temp_object, w, h);
+ evas_object_resize(ef->event_object, w, h);
+ break;
+ case E_GADMAN_CHANGE_RAISE:
+ evas_object_raise(ef->temp_object);
+ evas_object_raise(ef->event_object);
+ break;
+ case E_GADMAN_CHANGE_EDGE:
+ case E_GADMAN_CHANGE_ZONE:
+ /* FIXME
+ * Must we do something here?
+ */
+ break;
}
}
-------------------------------------------------------
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