Mixer/Backlight: Set correct levels on creation.

This fixes T5500
This commit is contained in:
Stephen 'Okra' Houston 2017-05-19 10:52:18 -05:00
parent 7d095c3fe3
commit e5c337abfb
2 changed files with 3 additions and 0 deletions

View File

@ -261,6 +261,8 @@ _backlight_gadget_created_cb(void *data, Evas_Object *obj, void *event_info EINA
inst);
elm_box_pack_end(inst->o_main, inst->o_backlight);
evas_object_show(inst->o_backlight);
inst->val = e_backlight_level_get(e_zone_current_get());
_backlight_gadget_update(inst);
}
evas_object_smart_callback_del_full(obj, "gadget_created", _backlight_gadget_created_cb, data);
}

View File

@ -625,6 +625,7 @@ _mixer_gadget_created_cb(void *data, Evas_Object *obj, void *event_info EINA_UNU
elm_box_pack_end(inst->o_main, inst->o_mixer);
evas_object_show(inst->o_mixer);
gmixer_context->instances = eina_list_append(gmixer_context->instances, inst);
_mixer_gadget_update();
}
evas_object_smart_callback_del_full(obj, "gadget_created", _mixer_gadget_created_cb, data);
}