elementary/popup - support "language,chagned" smart callback.
authorChunEon Park <hermet@hermet.pe.kr>
Mon, 19 Aug 2013 08:10:01 +0000 (17:10 +0900)
committerChunEon Park <hermet@hermet.pe.kr>
Mon, 19 Aug 2013 08:10:01 +0000 (17:10 +0900)
ChangeLog
NEWS
src/lib/elc_popup.c
src/lib/elc_popup.h

index b424df7e818add230bb2412789b37979c74fb9b3..e63d26d86aa252636e784754e8f2d9e5acf3368a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
 
         * Mapbuf: Ensure that content size calculation is correctly finished
         because the mapbuf is willing to block the size calculation forcely.
+
+2013-08-19  ChunEon Park (Hermet)
+
+        * Popup: Support "language,changed" smart callback.
diff --git a/NEWS b/NEWS
index 7a956701cb94b90c454eabbf62f4369973d5945e..e9abab7e78051dc826f98ae03214da2440f91224 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -126,6 +126,7 @@ Improvements:
    * Show magnifier when selection handlers are pressed or moved.
    * Change the method to calculate a distance which be scrolled from linear to sine curve.
    * Add support for URL in Elm_Image and Elm_Photocam.
+   * Popup: Support "language,changed" smart callback.
 
 Fixes:
    * Now elm_datetime_field_limit_set() can set year limits wihtout problems.
index e3b23e174c9263fe288e4ff47b32835d738f9cf2..a98d1e2f1ac7fe5090c18f7d0b2c1bb0adfdf17f 100644 (file)
@@ -22,6 +22,7 @@ static const char CONTENT_PART[] = "elm.swallow.content";
 
 static const char SIG_BLOCK_CLICKED[] = "block,clicked";
 static const char SIG_TIMEOUT[] = "timeout";
+static const char SIG_LANG_CHANGED[] = "language,changed";
 
 static const Evas_Smart_Cb_Description _smart_callbacks[] = {
    {SIG_BLOCK_CLICKED, ""},
@@ -44,6 +45,8 @@ _elm_popup_smart_translate(Eo *obj EINA_UNUSED, void *_pd EINA_UNUSED, va_list *
    EINA_LIST_FOREACH(sd->items, l, it)
       elm_widget_item_translate(it);
 
+   evas_object_smart_callback_call(obj, SIG_LANG_CHANGED, NULL);
+
    if (ret) *ret = EINA_TRUE;
 }
 
index 9841fce5d7df916062c5c59faf09ebb1caeb51f3..f04675ada2d0c2cdbdb7115f6815ac273031eadf 100644 (file)
@@ -72,6 +72,7 @@
  * @li @c "block,clicked" - whenever user taps on Blocked Event area.
  * @li @c "focused" - When the popup has received focus. (since 1.8)
  * @li @c "unfocused" - When the popup has lost focus. (since 1.8)
+ * @li "language,changed" - the program's language changed (since 1.8)
  *
  * Styles available for Popup
  * @li "default"