forked from enlightenment/efl
elm_segment_control: fix invalid parameter
Summary: Eo complained about an invalid type 'Edje_Object' passed to elm_widget_sub_object_add(). It is the segment control itself that should be the subject of the call to this function. @fix Test Plan: elementary_test: no more Eo errors Reviewers: cedric, stefan_schmidt Differential Revision: https://phab.enlightenment.org/D3277
This commit is contained in:
parent
0d81f89fe7
commit
6c462c653b
|
@ -568,7 +568,7 @@ _item_new(Evas_Object *obj,
|
|||
edje_object_part_text_escaped_set(VIEW(it), "elm.text", label);
|
||||
|
||||
it->icon = icon;
|
||||
if (it->icon) elm_widget_sub_object_add(VIEW(it), it->icon);
|
||||
if (it->icon) elm_widget_sub_object_add(obj, it->icon);
|
||||
evas_object_event_callback_add
|
||||
(VIEW(it), EVAS_CALLBACK_MOUSE_DOWN, _on_mouse_down, it);
|
||||
evas_object_event_callback_add
|
||||
|
|
Loading…
Reference in New Issue