summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChunEon Park <hermet@hermet.pe.kr>2013-08-19 17:10:01 +0900
committerChunEon Park <hermet@hermet.pe.kr>2013-08-19 17:10:01 +0900
commit68a9a72af33d5f8a7c72ab77ae31d3d8fb4b1418 (patch)
treefe6465a20ae3fc30318fc6b96118bb9498154bb7
parent785aa704cff2a6da026fdd4624431ca5b1e0b427 (diff)
elementary/popup - support "language,chagned" smart callback.
-rw-r--r--legacy/elementary/ChangeLog4
-rw-r--r--legacy/elementary/NEWS1
-rw-r--r--legacy/elementary/src/lib/elc_popup.c3
-rw-r--r--legacy/elementary/src/lib/elc_popup.h1
4 files changed, 9 insertions, 0 deletions
diff --git a/legacy/elementary/ChangeLog b/legacy/elementary/ChangeLog
index b424df7e81..e63d26d86a 100644
--- a/legacy/elementary/ChangeLog
+++ b/legacy/elementary/ChangeLog
@@ -1558,3 +1558,7 @@
1558 1558
1559 * Mapbuf: Ensure that content size calculation is correctly finished 1559 * Mapbuf: Ensure that content size calculation is correctly finished
1560 because the mapbuf is willing to block the size calculation forcely. 1560 because the mapbuf is willing to block the size calculation forcely.
1561
15622013-08-19 ChunEon Park (Hermet)
1563
1564 * Popup: Support "language,changed" smart callback.
diff --git a/legacy/elementary/NEWS b/legacy/elementary/NEWS
index 7a956701cb..e9abab7e78 100644
--- a/legacy/elementary/NEWS
+++ b/legacy/elementary/NEWS
@@ -126,6 +126,7 @@ Improvements:
126 * Show magnifier when selection handlers are pressed or moved. 126 * Show magnifier when selection handlers are pressed or moved.
127 * Change the method to calculate a distance which be scrolled from linear to sine curve. 127 * Change the method to calculate a distance which be scrolled from linear to sine curve.
128 * Add support for URL in Elm_Image and Elm_Photocam. 128 * Add support for URL in Elm_Image and Elm_Photocam.
129 * Popup: Support "language,changed" smart callback.
129 130
130Fixes: 131Fixes:
131 * Now elm_datetime_field_limit_set() can set year limits wihtout problems. 132 * Now elm_datetime_field_limit_set() can set year limits wihtout problems.
diff --git a/legacy/elementary/src/lib/elc_popup.c b/legacy/elementary/src/lib/elc_popup.c
index e3b23e174c..a98d1e2f1a 100644
--- a/legacy/elementary/src/lib/elc_popup.c
+++ b/legacy/elementary/src/lib/elc_popup.c
@@ -22,6 +22,7 @@ static const char CONTENT_PART[] = "elm.swallow.content";
22 22
23static const char SIG_BLOCK_CLICKED[] = "block,clicked"; 23static const char SIG_BLOCK_CLICKED[] = "block,clicked";
24static const char SIG_TIMEOUT[] = "timeout"; 24static const char SIG_TIMEOUT[] = "timeout";
25static const char SIG_LANG_CHANGED[] = "language,changed";
25 26
26static const Evas_Smart_Cb_Description _smart_callbacks[] = { 27static const Evas_Smart_Cb_Description _smart_callbacks[] = {
27 {SIG_BLOCK_CLICKED, ""}, 28 {SIG_BLOCK_CLICKED, ""},
@@ -44,6 +45,8 @@ _elm_popup_smart_translate(Eo *obj EINA_UNUSED, void *_pd EINA_UNUSED, va_list *
44 EINA_LIST_FOREACH(sd->items, l, it) 45 EINA_LIST_FOREACH(sd->items, l, it)
45 elm_widget_item_translate(it); 46 elm_widget_item_translate(it);
46 47
48 evas_object_smart_callback_call(obj, SIG_LANG_CHANGED, NULL);
49
47 if (ret) *ret = EINA_TRUE; 50 if (ret) *ret = EINA_TRUE;
48} 51}
49 52
diff --git a/legacy/elementary/src/lib/elc_popup.h b/legacy/elementary/src/lib/elc_popup.h
index 9841fce5d7..f04675ada2 100644
--- a/legacy/elementary/src/lib/elc_popup.h
+++ b/legacy/elementary/src/lib/elc_popup.h
@@ -72,6 +72,7 @@
72 * @li @c "block,clicked" - whenever user taps on Blocked Event area. 72 * @li @c "block,clicked" - whenever user taps on Blocked Event area.
73 * @li @c "focused" - When the popup has received focus. (since 1.8) 73 * @li @c "focused" - When the popup has received focus. (since 1.8)
74 * @li @c "unfocused" - When the popup has lost focus. (since 1.8) 74 * @li @c "unfocused" - When the popup has lost focus. (since 1.8)
75 * @li "language,changed" - the program's language changed (since 1.8)
75 * 76 *
76 * Styles available for Popup 77 * Styles available for Popup
77 * @li "default" 78 * @li "default"