diff options
author | Cedric BAIL <cedric@osg.samsung.com> | 2018-03-15 12:50:20 -0400 |
---|---|---|
committer | Cedric Bail <cedric@osg.samsung.com> | 2018-03-20 17:20:56 -0700 |
commit | 4c4177ac207f982de8139c47c7afedd26ff9e15a (patch) | |
tree | 1913e890dc525621f4dec3ce281b340d81608a72 /src/bin/elementary/test_ui_button.c | |
parent | a1bf513920e813037756e01cc2e01770befea77c (diff) | |
download | efl-4c4177ac207f982de8139c47c7afedd26ff9e15a.tar.gz |
efl: use efl_add_ref to create objects which have no parent
Signed-off-by: Mike Blumenkrantz <zmike@osg.samsung.com>
Diffstat (limited to 'src/bin/elementary/test_ui_button.c')
-rw-r--r-- | src/bin/elementary/test_ui_button.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/elementary/test_ui_button.c b/src/bin/elementary/test_ui_button.c index f0e39842fa..1d32e3f9b9 100644 --- a/src/bin/elementary/test_ui_button.c +++ b/src/bin/elementary/test_ui_button.c @@ -27,7 +27,7 @@ test_ui_button(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event Eo *win, *bx, *btn; char buf[PATH_MAX]; - win = efl_add(EFL_UI_WIN_CLASS, NULL, + win = efl_add_ref(EFL_UI_WIN_CLASS, NULL, efl_ui_win_type_set(efl_added, EFL_UI_WIN_BASIC), efl_text_set(efl_added, "Efl.Ui.Button"), efl_ui_win_autodel_set(efl_added, EINA_TRUE) |