forked from enlightenment/efl
Remove silencing of errors when called on non elm widgets.
There was code to silence errors. Removing that exposed a lot of errors. I fixed them as well. In general, elm_widget functions should only be called on elm_widgets... More of commit 5ac398b156e8fb0aa44c6cfe8a2b113eb7229fbf
This commit is contained in:
parent
f6fa1ef612
commit
b2250c568d
|
@ -577,8 +577,7 @@ _item_new(Evas_Object *obj,
|
|||
elm_widget_item_content_get_hook_set(it, _item_content_get_hook);
|
||||
|
||||
VIEW(it) = edje_object_add(evas_object_evas_get(obj));
|
||||
edje_object_scale_set
|
||||
(VIEW(it), elm_widget_scale_get(VIEW(it)) * elm_config_scale_get());
|
||||
edje_object_scale_set(VIEW(it), elm_config_scale_get());
|
||||
evas_object_smart_member_add(VIEW(it), obj);
|
||||
|
||||
elm_widget_sub_object_add(obj, VIEW(it));
|
||||
|
|
|
@ -3403,15 +3403,18 @@ _elm_widget_focus_steal(Eo *obj, void *_pd, va_list *list EINA_UNUSED)
|
|||
sd = eo_data_scope_get(parent, MY_CLASS);
|
||||
if (sd)
|
||||
{
|
||||
if ((sd->resize_obj) && (elm_widget_focus_get(sd->resize_obj)))
|
||||
eo_do(sd->resize_obj, elm_wdg_focused_object_clear());
|
||||
if (sd->resize_obj && elm_widget_is(sd->resize_obj) &&
|
||||
elm_widget_focus_get(sd->resize_obj))
|
||||
{
|
||||
eo_do(sd->resize_obj, elm_wdg_focused_object_clear());
|
||||
}
|
||||
else
|
||||
{
|
||||
const Eina_List *l;
|
||||
Evas_Object *child;
|
||||
EINA_LIST_FOREACH(sd->subobjs, l, child)
|
||||
{
|
||||
if (elm_widget_focus_get(child))
|
||||
if (elm_widget_is(child) && elm_widget_focus_get(child))
|
||||
{
|
||||
eo_do(child, elm_wdg_focused_object_clear());
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue