summaryrefslogtreecommitdiff
path: root/src/examples/elementary/calendar_cxx_example_02.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/examples/elementary/calendar_cxx_example_02.cc')
-rw-r--r--src/examples/elementary/calendar_cxx_example_02.cc8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/examples/elementary/calendar_cxx_example_02.cc b/src/examples/elementary/calendar_cxx_example_02.cc
index 047f5841f8..f22d22bfc0 100644
--- a/src/examples/elementary/calendar_cxx_example_02.cc
+++ b/src/examples/elementary/calendar_cxx_example_02.cc
@@ -18,7 +18,7 @@ struct appData
add(m_win);
m_win.text_set("Calendar Layout Formatting Example");
- m_win.delete_request_event_cb_add([&](){ destroy(); });
+ m_win.delete_request_event_cb_add([&](){ m_win._delete(); });
efl::ui::Calendar cal(add, m_win);
m_win.content_set(cal);
@@ -39,12 +39,6 @@ struct appData
cal.format_cb_set(cb_a);
}
- void destroy() {
- // FIXME: need del() function and no error on unref().
- ::efl_allow_parent_unref_set(m_win, true);
- m_win = nullptr;
- }
-
private:
efl::ui::Win m_win;
};