Evas_Object *main_radio_;
Evas_Object *icon_slider_;
Evas_Object *discard_popup_;
+ Evas_Object *type_popup_;
/* child view of EditAlarmView */
WeekFlagsView week_flags_view_;
static void BackButtonOnMainClicked(void *data, Evas_Object *obj, void *event);
static void PopupCancelButtonClicked(void *data, Evas_Object *obj, void *event_info);
static void PopupDiscardButtonClicked(void *data, Evas_Object *obj, void *event_info);
+ static void Del(void *data, Evas_Object *obj, void *event_info);
void CreateGenlistItems();
void ShowSetTypePopup();
view->data_.type = static_cast<Alarm::Type>(elm_radio_value_get(view->main_radio_));
// refresh type item
elm_genlist_item_update(view->type_it_);
+ elm_popup_dismiss(view->type_popup_);
+}
+
+void EditAlarmView::Del(void *data, Evas_Object *obj, void *event)
+{
evas_object_del(obj);
}
elm_object_content_set(popup, list);
elm_radio_value_set(main_radio_, static_cast<int>(data_.type));
+ evas_object_smart_callback_add(list, "selected", EditAlarmView::PopupHide, this);
+ evas_object_smart_callback_add(popup, "dismissed", EditAlarmView::Del, nullptr);
+
+ type_popup_ = popup;
evas_object_show(list);
evas_object_show(popup);
}