summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean Guyomarc'h <jean.guyomarch@gmail.com>2015-11-05 16:12:44 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2015-11-05 16:12:44 +0900
commit44cb457604bb324e448aeab24799498ea3b42d9f (patch)
tree485cd57ccddab925308bc0d9c486f920202c7d05
parent4ccb501a346133fbcc56238e107fbf55bf350433 (diff)
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
-rw-r--r--src/lib/elm_segment_control.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/elm_segment_control.c b/src/lib/elm_segment_control.c
index 53319e454..169f32bfd 100644
--- a/src/lib/elm_segment_control.c
+++ b/src/lib/elm_segment_control.c
@@ -568,7 +568,7 @@ _item_new(Evas_Object *obj,
568 edje_object_part_text_escaped_set(VIEW(it), "elm.text", label); 568 edje_object_part_text_escaped_set(VIEW(it), "elm.text", label);
569 569
570 it->icon = icon; 570 it->icon = icon;
571 if (it->icon) elm_widget_sub_object_add(VIEW(it), it->icon); 571 if (it->icon) elm_widget_sub_object_add(obj, it->icon);
572 evas_object_event_callback_add 572 evas_object_event_callback_add
573 (VIEW(it), EVAS_CALLBACK_MOUSE_DOWN, _on_mouse_down, it); 573 (VIEW(it), EVAS_CALLBACK_MOUSE_DOWN, _on_mouse_down, it);
574 evas_object_event_callback_add 574 evas_object_event_callback_add