diff options
Diffstat (limited to 'src/examples/elementary/table_cxx_example_01.cc')
-rw-r--r-- | src/examples/elementary/table_cxx_example_01.cc | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/src/examples/elementary/table_cxx_example_01.cc b/src/examples/elementary/table_cxx_example_01.cc index 1af3b45b28..040193da5d 100644 --- a/src/examples/elementary/table_cxx_example_01.cc +++ b/src/examples/elementary/table_cxx_example_01.cc @@ -1,3 +1,9 @@ + +#ifdef HAVE_CONFIG_H +# include "config.h" +# include "elementary_config.h" +#endif + #include <Elementary.hh> EAPI_MAIN int @@ -5,31 +11,31 @@ elm_main (int argc, char *argv[]) { elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_HIDDEN); - ::elm::win win(elm_win_util_standard_add("table", "Table")); + ::elm::win::Standard win(elm_win_util_standard_add("table", "Table")); win.autohide_set(true); - ::elm::table table(efl::eo::parent = win); + ::efl::ui::Grid table(efl::eo::parent = win); win.resize_object_add(table); table.visible_set(true); table.padding_set(5, 5); table.homogeneous_set(true); - ::elm::label label(efl::eo::parent = win); + ::elm::Label label(efl::eo::parent = win); label.text_set(nullptr, "label 0"); label.visible_set(true); table.pack(label, 0, 0, 1, 1); - ::elm::label label1(efl::eo::parent = win); + ::elm::Label label1(efl::eo::parent = win); label1.text_set(nullptr, "label 1"); label1.visible_set(true); table.pack(label1, 1, 0, 1, 1); - ::elm::label label2(efl::eo::parent = win); + ::elm::Label label2(efl::eo::parent = win); label2.text_set(nullptr, "label 2"); label2.visible_set(true); table.pack(label2, 0, 1, 1, 1); - ::elm::label label3(efl::eo::parent = win); + ::elm::Label label3(efl::eo::parent = win); label3.text_set(nullptr, "label 3"); label3.visible_set(true); table.pack(label3, 1, 1, 1, 1); |