temperature: have_temp is an Eina_Bool, use it as such

This commit is contained in:
Jérémy Zurcher 2014-05-07 12:05:14 +02:00
parent 316b4030e7
commit c12e9740a9
3 changed files with 5 additions and 5 deletions

View File

@ -91,7 +91,7 @@ _gc_init(E_Gadcon *gc, const char *name, const char *id, const char *style)
inst->gcc = gcc;
inst->o_temp = o;
inst->module = temperature_config->module;
inst->have_temp = -1;
inst->have_temp = EINA_FALSE;
#ifdef HAVE_EEZE
if (inst->backend == TEMPGET)
{

View File

@ -35,7 +35,7 @@ _temperature_cb_exe_data(void *data, __UNUSED__ int type, void *event)
{
/* enable therm object */
edje_object_signal_emit(inst->o_temp, "e,state,known", "");
inst->have_temp = 1;
inst->have_temp = EINA_TRUE;
}
if (inst->units == FAHRENHEIT)
@ -56,7 +56,7 @@ _temperature_cb_exe_data(void *data, __UNUSED__ int type, void *event)
edje_object_signal_emit(inst->o_temp, "e,state,unknown", "");
edje_object_part_text_set(inst->o_temp, "e.text.reading", "N/A");
_temperature_face_level_set(inst, 0.5);
inst->have_temp = 0;
inst->have_temp = EINA_FALSE;
}
}
return ECORE_CALLBACK_DONE;

View File

@ -58,7 +58,7 @@ temperature_udev_update(void *data)
{
/* enable therm object */
edje_object_signal_emit(inst->o_temp, "e,state,known", "");
inst->have_temp = 1;
inst->have_temp = EINA_TRUE;
}
if (inst->units == FAHRENHEIT)
@ -79,7 +79,7 @@ temperature_udev_update(void *data)
edje_object_signal_emit(inst->o_temp, "e,state,unknown", "");
edje_object_part_text_set(inst->o_temp, "e.text.reading", "N/A");
_temperature_face_level_set(inst, 0.5);
inst->have_temp = 0;
inst->have_temp = EINA_FALSE;
}
}
}