raster pushed a commit to branch master.


commit 44cb457604bb324e448aeab24799498ea3b42d9f
Author: Jean Guyomarc'h <jean.guyoma...@gmail.com>
Date:   Thu Nov 5 16:12:44 2015 +0900

    elm_segment_control: fix invalid parameter
    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.
    Test Plan: elementary_test: no more Eo errors
    Reviewers: cedric, stefan_schmidt
    Differential Revision: https://phab.enlightenment.org/D3277
 src/lib/elm_segment_control.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/elm_segment_control.c b/src/lib/elm_segment_control.c
index 53319e4..169f32b 100644
--- a/src/lib/elm_segment_control.c
+++ b/src/lib/elm_segment_control.c
@@ -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);
      (VIEW(it), EVAS_CALLBACK_MOUSE_DOWN, _on_mouse_down, it);


Reply via email to