Change-Id: I722a60472b7cf452c5aa3ac72542d086c7fc26fe
Signed-off-by: changjoo.lee <changjoo.lee@samsung.com>
#define BUF_MAX 512
+void event_back_key_up(void *data, Evas_Object *obj, void *event_info)
+{
+ const struct popup_ops *ops = data;
+ Evas_Object *win;
+
+ win = get_window();
+ if (win)
+ eext_object_event_callback_del(obj, EEXT_CALLBACK_BACK, event_back_key_up);
+
+ if (ops)
+ unload_simple_popup(ops);
+ terminate_if_no_popup();
+}
+
int load_normal_popup(const struct popup_ops *ops)
{
Evas_Object *btn;
}
}
+ eext_object_event_callback_add(popup, EEXT_CALLBACK_BACK, event_back_key_up, (void*)ops);
evas_object_show(popup);
obj->popup = popup;
static void register_handlers(const struct popup_ops *ops)
{
- Evas_Object *win;
-
if (vconf_notify_key_changed(
VCONFKEY_PM_STATE,
pm_state_changed,
static void unregister_handlers(const struct popup_ops *ops)
{
- Evas_Object *win;
-
vconf_ignore_key_changed(VCONFKEY_PM_STATE, pm_state_changed);
}