aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/temperature/e_mod_main.c
diff options
context:
space:
mode:
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>2010-05-22 01:55:28 +0000
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>2010-05-22 01:55:28 +0000
commit95ee44e8c194416750f9439616d0f555019941d5 (patch)
tree5bbd2e383537e2b2b203beec64ae4d9217ce9b3e /src/modules/temperature/e_mod_main.c
parentAdd acpi_bindings dialog to build process. (diff)
downloadenlightenment-95ee44e8c194416750f9439616d0f555019941d5.tar.gz
updates to match eeze changes
SVN revision: 49119
Diffstat (limited to 'src/modules/temperature/e_mod_main.c')
-rw-r--r--src/modules/temperature/e_mod_main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/modules/temperature/e_mod_main.c b/src/modules/temperature/e_mod_main.c
index aea95818d..16f4d2228 100644
--- a/src/modules/temperature/e_mod_main.c
+++ b/src/modules/temperature/e_mod_main.c
@@ -63,7 +63,7 @@ _gc_init(E_Gadcon *gc, const char *name, const char *id, const char *style)
inst->sensor_name = NULL;
inst->units = CELCIUS;
#ifdef HAVE_EEZE_UDEV
- inst->backend = TEMPGET;
+ inst->backend = UDEV;
#endif
if (!temperature_config->faces)
temperature_config->faces = eina_hash_string_superfast_new(NULL);
@@ -103,6 +103,7 @@ _gc_init(E_Gadcon *gc, const char *name, const char *id, const char *style)
}
else
{
+ eeze_udev_init();
inst->temp_poller = ecore_poller_add(ECORE_POLLER_CORE, inst->poll_interval, temperature_udev_update_poll, inst);
temperature_udev_update(inst);
}
@@ -140,6 +141,7 @@ _gc_shutdown(E_Gadcon_Client *gcc)
#ifdef HAVE_EEEZ_UDEV
if (inst->temp_poller)
ecore_poller_del(inst->temp_poller);
+ eeze_udev_shutdown();
#endif
if (inst->o_temp) evas_object_del(inst->o_temp);
inst->o_temp = NULL;