forked from enlightenment/enlightenment
E gadgets: Prepare for sysinfo to arrive.
This commit is contained in:
parent
02224ae8b3
commit
501ea95e2c
|
@ -131,5 +131,8 @@ include src/modules/Makefile_policy_mobile.mk
|
|||
|
||||
include src/modules/Makefile_geolocation.mk
|
||||
|
||||
include src/modules/Makefile_sysinfo.mk
|
||||
|
||||
include src/modules/Makefile_wireless.mk
|
||||
|
||||
include src/modules/Makefile_time.mk
|
||||
|
|
|
@ -219,7 +219,7 @@ _battery_udev_battery_update(const char *syspath, Battery *bat)
|
|||
if (!bat->got_prop) /* only need to get these once */
|
||||
{
|
||||
GET_STR(bat, technology, POWER_SUPPLY_TECHNOLOGY);
|
||||
GET_STR(bat, model, POWER_SUPPLY_MODEL_NAME);
|
||||
GET_STR(bat, model, POWER_SUPPLY_MODEL_NAME);
|
||||
GET_STR(bat, vendor, POWER_SUPPLY_MANUFACTURER);
|
||||
GET_NUM(bat, design_charge, POWER_SUPPLY_ENERGY_FULL_DESIGN);
|
||||
if (eina_dbleq(bat->design_charge, 0))
|
||||
|
|
|
@ -238,7 +238,8 @@ _pager_gadget_destroyed_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event
|
|||
{
|
||||
Instance *inst = data;
|
||||
|
||||
inst->destroyed = EINA_TRUE;
|
||||
if (inst)
|
||||
inst->destroyed = EINA_TRUE;
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in New Issue