summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjin0.kim <jin0.kim@samsung.com>2016-01-29 11:01:40 +0830
committerjin0.kim <jin0.kim@samsung.com>2016-01-29 11:01:40 +0830
commite7346262a514c3d4c0f95afe5cd5ae7e311b9cd2 (patch)
treeee2b8a70313a40fe6ac03ac298c25d6e2f9e20c5
parente0eff43b02928f5b0217012ef4cafc4e06c8879a (diff)
downloadquickpanel-e7346262a514c3d4c0f95afe5cd5ae7e311b9cd2.tar.gz
quickpanel-e7346262a514c3d4c0f95afe5cd5ae7e311b9cd2.tar.bz2
quickpanel-e7346262a514c3d4c0f95afe5cd5ae7e311b9cd2.zip
Change-Id: I6c228ea5f9d0e0e44b64b1a068c5da00cf631d66
-rwxr-xr-xdaemon/quickpanel-ui.c27
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
}