diff options
author | Daniel Juyung Seo <seojuyung2@gmail.com> | 2013-04-03 11:28:53 +0900 |
---|---|---|
committer | Daniel Juyung Seo <seojuyung2@gmail.com> | 2013-04-03 11:28:53 +0900 |
commit | 2bb32fd1ca8557bfbf4172abf7fe901855898993 (patch) | |
tree | 9c777100245629bc768e62400e317eee9e28afa1 /src/lib/elm_radio.c | |
parent | 553bc6ed95d808f7c5228a444448500c9493e7a4 (diff) | |
download | elementary-2bb32fd1ca8557bfbf4172abf7fe901855898993.tar.gz |
elm: print the error message inside elm_widget_sub_object_add().
1. Do not need to print the same error message from all the widget codes.
2. Even though elm_widget_sub_object_add() can be used internally, there should be no error message at all.
Elm devs should fix it beforehand.
So it looks ok to print the error message in elm_widget_sub_object_add() to force elm devs to fix it.
3. Got additional code cleanups.
Diffstat (limited to 'src/lib/elm_radio.c')
-rw-r--r-- | src/lib/elm_radio.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib/elm_radio.c b/src/lib/elm_radio.c index cf507e31a..7ebd092a4 100644 --- a/src/lib/elm_radio.c +++ b/src/lib/elm_radio.c @@ -334,9 +334,7 @@ _constructor(Eo *obj, void *_pd EINA_UNUSED, va_list *list EINA_UNUSED) evas_obj_type_set(MY_CLASS_NAME), evas_obj_smart_callbacks_descriptions_set(_smart_callbacks, NULL)); - Evas_Object *parent = eo_parent_get(obj); - if (!elm_widget_sub_object_add(parent, obj)) - ERR("could not add %p as sub object of %p", obj, parent); + elm_widget_sub_object_add(eo_parent_get(obj), obj); } EAPI void |