diff options
author | jin0.kim <jin0.kim@samsung.com> | 2016-01-29 11:01:40 +0830 |
---|---|---|
committer | jin0.kim <jin0.kim@samsung.com> | 2016-01-29 11:01:40 +0830 |
commit | e7346262a514c3d4c0f95afe5cd5ae7e311b9cd2 (patch) | |
tree | ee2b8a70313a40fe6ac03ac298c25d6e2f9e20c5 | |
parent | e0eff43b02928f5b0217012ef4cafc4e06c8879a (diff) | |
download | quickpanel-e7346262a514c3d4c0f95afe5cd5ae7e311b9cd2.tar.gz quickpanel-e7346262a514c3d4c0f95afe5cd5ae7e311b9cd2.tar.bz2 quickpanel-e7346262a514c3d4c0f95afe5cd5ae7e311b9cd2.zip |
Update event_message_cbsubmit/tizen/20160129.024305accepted/tizen/wearable/20160129.083622accepted/tizen/tv/20160129.083606accepted/tizen/mobile/20160129.083559
Change-Id: I6c228ea5f9d0e0e44b64b1a068c5da00cf631d66
-rwxr-xr-x | daemon/quickpanel-ui.c | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/daemon/quickpanel-ui.c b/daemon/quickpanel-ui.c index f777834..369f5c2 100755 --- a/daemon/quickpanel-ui.c +++ b/daemon/quickpanel-ui.c @@ -644,6 +644,29 @@ static Eina_Bool _ecore_event_client_message_cb(void *data, int type, } return ECORE_CALLBACK_RENEW; } +#else +void _event_message_cb(void *data, Evas_Object *obj, void *event_info) + { + bool visiblity = (bool)event_info; + struct appdata *ad = data; + + if(visiblity == 1) { // show + DBG("quickpanel is opened"); + + ad->is_opened = 1; + quickpanel_modules_opened(data); + quickpanel_media_player_stop(); + quickpanel_uic_opened_reason_set(OPENED_NO_REASON); + } else { + DBG("quickpanel is closed"); + + ad->is_opened = 0; + quickpanel_util_time_timer_enable_set(0); + quickpanel_keyboard_closing_fini(ad); + quickpanel_modules_closed(data); + quickpanel_media_player_stop(); + } + } #endif static void _vconf_init(struct appdata *ad) @@ -701,7 +724,6 @@ static void _edbus_fini(struct appdata *ad) static void _ecore_event_init(struct appdata *ad) { #if defined(WINSYS_X11) - Ecore_Event_Handler *hdl = NULL; /* Register window rotate event */ @@ -712,6 +734,9 @@ static void _ecore_event_init(struct appdata *ad) } ad->hdl_client_message = hdl; +#else + DBG(""); + evas_object_smart_callback_add(ad->win, "visibility,changed", _event_message_cb, ad); #endif } |