elementary/map - map supports language,changed
authorChunEon Park <chuneon.park@samsung.com>
Fri, 29 Mar 2013 11:55:45 +0000 (20:55 +0900)
committerSungho Kwak <sungho1.kwak@samsung.com>
Tue, 2 Apr 2013 09:46:22 +0000 (18:46 +0900)
commit 0b49b9fb8b303f41324a75ebaf406757c79e4909
Author: ChunEon Park <hermet>@hermet.pe.kr>
Date: Fri Mar 29 20:53:11 2013 +0900

Change-Id: I85b8c73a0016f5664583206f0f325ffd963846a3

src/lib/elm_map.c
src/lib/elm_map.h

index 26b8b81..6b14a2d 100644 (file)
@@ -295,6 +295,8 @@ static const char SIG_NAME_LOADED[] = "name,loaded";
 static const char SIG_NAME_LOADED_FAIL[] = "name,loaded,fail";
 static const char SIG_OVERLAY_CLICKED[] = "overlay,clicked";
 static const char SIG_OVERLAY_DEL[] = "overlay,del";
+static const char SIG_LANG_CHANGED[] = "language,changed";
+
 static const Evas_Smart_Cb_Description _smart_callbacks[] = {
    {SIG_CLICKED, ""},
    {SIG_CLICKED_DOUBLE, ""},
@@ -320,6 +322,7 @@ static const Evas_Smart_Cb_Description _smart_callbacks[] = {
    {SIG_NAME_LOADED_FAIL, ""},
    {SIG_OVERLAY_CLICKED, ""},
    {SIG_OVERLAY_DEL, ""},
+   {SIG_LANG_CHANGED, ""},
    {NULL, NULL}
 };
 
@@ -337,6 +340,13 @@ ELM_INTERNAL_SMART_SUBCLASS_NEW
   (ELM_MAP_PAN_SMART_NAME, _elm_map_pan, Elm_Map_Pan_Smart_Class,
   Elm_Pan_Smart_Class, elm_pan_smart_class_get, NULL);
 
+static Eina_Bool
+_elm_map_smart_translate(Evas_Object *obj)
+{
+   evas_object_smart_callback_call(obj, SIG_LANG_CHANGED, NULL);
+   return EINA_TRUE;
+}
+
 static void
 _edj_overlay_size_get(Elm_Map_Smart_Data *sd,
                       Evas_Coord *w,
@@ -4563,6 +4573,7 @@ _elm_map_smart_set_user(Elm_Map_Smart_Class *sc)
    ELM_WIDGET_CLASS(sc)->on_focus = _elm_map_smart_on_focus;
    ELM_WIDGET_CLASS(sc)->theme = _elm_map_smart_theme;
    ELM_WIDGET_CLASS(sc)->event = _elm_map_smart_event;
+   ELM_WIDGET_CLASS(sc)->translate = _elm_map_smart_translate;
 }
 #endif
 
index 06af491..8dfb32b 100644 (file)
@@ -49,6 +49,7 @@
  * - @c "name,loaded,fail" - Name request fails.
  * - @c "overlay,clicked" - A overlay is clicked.
  * - @c "loaded" - when a map is finally loaded. @since 1.7
+ * - @c "language,changed" - the program's language changed
  *
  * Available style for map widget:
  * - @c "default"