cxx examples: Fix button example 00
authorJean-Philippe Andre <jp.andre@samsung.com>
Tue, 20 Jun 2017 05:09:57 +0000 (14:09 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Tue, 20 Jun 2017 05:09:57 +0000 (14:09 +0900)
Text part API has changed.

src/examples/elementary/button_cxx_example_00.cc

index b3547cd..5f55b40 100644 (file)
@@ -24,7 +24,7 @@ elm_main (int argc EINA_UNUSED, char **argv EINA_UNUSED)
    win.autohide_set(true);
 
    efl::ui::Button btn(win);
-   btn.eo_cxx::elm::Layout::text_set(nullptr,"Good-Bye, World!");
+   btn.text_set("Good-Bye, World!");
    btn.eo_cxx::efl::Gfx::size_set(120, 30);
    btn.eo_cxx::efl::Gfx::position_set(60, 15);
    btn.visible_set(true);