From ee37e89a1c50ba2b6302431dbacf872cbce5eb73 Mon Sep 17 00:00:00 2001 From: ChunEon Park Date: Thu, 17 Jan 2013 04:44:05 +0000 Subject: [PATCH] elementary/ctxpopup - [E-devel] [Patch] when parent of ctxpopup is resized, call dismissed signal Before the patch, when window of device which has elementary rotates, the ctxpopup doesn't emit the "dismissed" signal to application. For this reason, if an application developer wants to make an event using "dismissed" signal when device rotates, he/she cannot do anything. But after add evas_object_smart_callback in the function "_on_parent_resize", this problem is resolved. That means, whether a device is rotated or not, when ctxpopup disappears, "dismissed" signal is emitted. So I want you to check this patch. Thank you. Signed-Off-By: Bora Hwang SVN revision: 82918 --- legacy/elementary/AUTHORS | 1 + legacy/elementary/ChangeLog | 6 ++++++ legacy/elementary/NEWS | 1 + legacy/elementary/src/lib/elc_ctxpopup.c | 1 + 4 files changed, 9 insertions(+) diff --git a/legacy/elementary/AUTHORS b/legacy/elementary/AUTHORS index 42e3fd58bf..792337a235 100644 --- a/legacy/elementary/AUTHORS +++ b/legacy/elementary/AUTHORS @@ -73,3 +73,4 @@ Murilo Belluzzo Ricardo de Almeida Gonzaga Gwanglim Lee JaeHyun Jo +Bora Hwang diff --git a/legacy/elementary/ChangeLog b/legacy/elementary/ChangeLog index 1280d9426b..b4c2a933a2 100644 --- a/legacy/elementary/ChangeLog +++ b/legacy/elementary/ChangeLog @@ -923,3 +923,9 @@ 2013-01-16 Daniel Juyung Seo (SeoZ) * Fix thumb theme hook. + +2013-01-17 Bora Hwang (bora1.hwang@samsung.com) + + * when parent of ctxpopup is resized, ctxpopup calls dismissed signal + + diff --git a/legacy/elementary/NEWS b/legacy/elementary/NEWS index d7a7fcb42a..7998828038 100644 --- a/legacy/elementary/NEWS +++ b/legacy/elementary/NEWS @@ -133,6 +133,7 @@ Removals: to deprecation. Thus, people using that (unstable) API will have to adapt themselves. * Deprecate elm_label_slide_set(), elm_label_slide_get(). + * when parent of ctxpopup is resized, ctxpopup calls dismissed signal. Changes since Elementary 1.0.0: ------------------------- diff --git a/legacy/elementary/src/lib/elc_ctxpopup.c b/legacy/elementary/src/lib/elc_ctxpopup.c index 01782db8c3..f79c38aa45 100644 --- a/legacy/elementary/src/lib/elc_ctxpopup.c +++ b/legacy/elementary/src/lib/elc_ctxpopup.c @@ -615,6 +615,7 @@ _on_parent_resize(void *data, sd->dir = ELM_CTXPOPUP_DIRECTION_UNKNOWN; evas_object_hide(data); + evas_object_smart_callback_call(data, SIG_DISMISSED, NULL); } static void