elementary - use the focused/unfocused string in widget defined.
authorChunEon Park <hermet@hermet.pe.kr>
Thu, 23 Jan 2014 08:24:19 +0000 (17:24 +0900)
committerChunEon Park <hermet@hermet.pe.kr>
Thu, 23 Jan 2014 08:27:17 +0000 (17:27 +0900)
Now, it will share the strings so that reduce the binary size also user uses it in one way.

35 files changed:
legacy/elementary/src/lib/elc_ctxpopup.c
legacy/elementary/src/lib/elc_fileselector.c
legacy/elementary/src/lib/elc_fileselector_button.c
legacy/elementary/src/lib/elc_naviframe.c
legacy/elementary/src/lib/elc_player.c
legacy/elementary/src/lib/elc_popup.c
legacy/elementary/src/lib/elm_bubble.c
legacy/elementary/src/lib/elm_button.c
legacy/elementary/src/lib/elm_calendar.c
legacy/elementary/src/lib/elm_check.c
legacy/elementary/src/lib/elm_clock.c
legacy/elementary/src/lib/elm_colorselector.c
legacy/elementary/src/lib/elm_datetime.c
legacy/elementary/src/lib/elm_diskselector.c
legacy/elementary/src/lib/elm_flipselector.c
legacy/elementary/src/lib/elm_gengrid.c
legacy/elementary/src/lib/elm_genlist.c
legacy/elementary/src/lib/elm_hover.c
legacy/elementary/src/lib/elm_index.c
legacy/elementary/src/lib/elm_list.c
legacy/elementary/src/lib/elm_map.c
legacy/elementary/src/lib/elm_panel.c
legacy/elementary/src/lib/elm_photocam.c
legacy/elementary/src/lib/elm_priv.h
legacy/elementary/src/lib/elm_progressbar.c
legacy/elementary/src/lib/elm_radio.c
legacy/elementary/src/lib/elm_scroller.c
legacy/elementary/src/lib/elm_slider.c
legacy/elementary/src/lib/elm_slideshow.c
legacy/elementary/src/lib/elm_spinner.c
legacy/elementary/src/lib/elm_toolbar.c
legacy/elementary/src/lib/elm_video.c
legacy/elementary/src/lib/elm_web.c
legacy/elementary/src/lib/elm_web2.c
legacy/elementary/src/lib/elm_widget.c

index 06ec1fb..34afd59 100644 (file)
@@ -24,8 +24,8 @@ ELM_PRIV_CTXPOPUP_SIGNALS(ELM_PRIV_STATIC_VARIABLE_DECLARE);
 
 static const Evas_Smart_Cb_Description _smart_callbacks[] = {
    ELM_PRIV_CTXPOPUP_SIGNALS(ELM_PRIV_SMART_CALLBACKS_DESC)
-   {"focused", ""}, /**< handled by elm_widget */
-   {"unfocused", ""}, /**< handled by elm_widget */
+   {SIG_WIDGET_FOCUSED, ""}, /**< handled by elm_widget */
+   {SIG_WIDGET_UNFOCUSED, ""}, /**< handled by elm_widget */
    {NULL, NULL}
 };
 #undef ELM_PRIV_CTXPOPUP_SIGNALS
index 835afef..040ae04 100644 (file)
@@ -38,8 +38,8 @@ ELM_PRIV_FILESELECTOR_SIGNALS(ELM_PRIV_STATIC_VARIABLE_DECLARE);
 
 static const Evas_Smart_Cb_Description _smart_callbacks[] = {
    ELM_PRIV_FILESELECTOR_SIGNALS(ELM_PRIV_SMART_CALLBACKS_DESC)
-   {"focused", ""}, /**< handled by elm_widget */
-   {"unfocused", ""}, /**< handled by elm_widget */
+   {SIG_WIDGET_FOCUSED, ""}, /**< handled by elm_widget */
+   {SIG_WIDGET_UNFOCUSED, ""}, /**< handled by elm_widget */
    {NULL, NULL}
 };
 #undef ELM_PRIV_FILESELECTOR_SIGNALS
index 40c12b5..30275dd 100644 (file)
@@ -24,8 +24,8 @@ ELM_PRIV_FILESELECTOR_BUTTON_SIGNALS(ELM_PRIV_STATIC_VARIABLE_DECLARE);
 
 static const Evas_Smart_Cb_Description _smart_callbacks[] = {
    ELM_PRIV_FILESELECTOR_BUTTON_SIGNALS(ELM_PRIV_SMART_CALLBACKS_DESC)
-   {"focused", ""}, /**< handled by elm_widget */
-   {"unfocused", ""}, /**< handled by elm_widget */
+   {SIG_WIDGET_FOCUSED, ""}, /**< handled by elm_widget */
+   {SIG_WIDGET_UNFOCUSED, ""}, /**< handled by elm_widget */
    {NULL, NULL}
 };
 #undef ELM_PRIV_FILESELECTOR_BUTTON_SIGNALS
index 16b320e..d248346 100644 (file)
@@ -30,8 +30,8 @@ static const Evas_Smart_Cb_Description _smart_callbacks[] = {
    {SIG_TRANSITION_FINISHED, ""},
    {SIG_TITLE_TRANSITION_FINISHED, ""},
    {SIG_TITLE_CLICKED, ""},
-   {"focused", ""}, /**< handled by elm_widget */
-   {"unfocused", ""}, /**< handled by elm_widget */
+   {SIG_WIDGET_FOCUSED, ""}, /**< handled by elm_widget */
+   {SIG_WIDGET_UNFOCUSED, ""}, /**< handled by elm_widget */
    {NULL, NULL}
 };
 
index 2b6eff3..8e4dcda 100644 (file)
@@ -50,8 +50,8 @@ static const Evas_Smart_Cb_Description _smart_callbacks[] = {
    { SIG_EJECT_CLICKED, "" },
    { SIG_VOLUME_CLICKED, "" },
    { SIG_MUTE_CLICKED, "" },
-   {"focused", ""}, /**< handled by elm_widget */
-   {"unfocused", ""}, /**< handled by elm_widget */
+   { SIG_WIDGET_FOCUSED, ""}, /**< handled by elm_widget */
+   { SIG_WIDGET_UNFOCUSED, ""}, /**< handled by elm_widget */
    { NULL, NULL }
 };
 
index f1f4da3..bec020a 100644 (file)
@@ -29,8 +29,8 @@ static const Evas_Smart_Cb_Description _smart_callbacks[] = {
    {SIG_BLOCK_CLICKED, ""},
    {SIG_TIMEOUT, ""},
    {SIG_LANG_CHANGED, ""},
-   {"focused", ""}, /**< handled by elm_widget */
-   {"unfocused", ""}, /**< handled by elm_widget */
+   {SIG_WIDGET_FOCUSED, ""}, /**< handled by elm_widget */
+   {SIG_WIDGET_UNFOCUSED, ""}, /**< handled by elm_widget */
    {NULL, NULL}
 };
 
index ffee3ac..0f0ea7d 100644 (file)
@@ -19,8 +19,8 @@ static const char SIG_CLICKED[] = "clicked";
 static const Evas_Smart_Cb_Description _smart_callbacks[] =
 {
    {SIG_CLICKED, ""},
-   {"focused", ""}, /**< handled by elm_widget */
-   {"unfocused", ""}, /**< handled by elm_widget */
+   {SIG_WIDGET_FOCUSED, ""}, /**< handled by elm_widget */
+   {SIG_WIDGET_UNFOCUSED, ""}, /**< handled by elm_widget */
    {NULL, NULL}
 };
 
index df23579..d09b12f 100644 (file)
@@ -26,8 +26,8 @@ static const Evas_Smart_Cb_Description _smart_callbacks[] = {
    {SIG_REPEATED, ""},
    {SIG_PRESSED, ""},
    {SIG_UNPRESSED, ""},
-   {"focused", ""}, /**< handled by elm_widget */
-   {"unfocused", ""}, /**< handled by elm_widget */
+   {SIG_WIDGET_FOCUSED, ""}, /**< handled by elm_widget */
+   {SIG_WIDGET_UNFOCUSED, ""}, /**< handled by elm_widget */
    {NULL, NULL}
 };
 
index c177b76..6da468d 100644 (file)
@@ -19,8 +19,8 @@ static const char SIG_DISPLAY_CHANGED[] = "display,changed";
 static const Evas_Smart_Cb_Description _smart_callbacks[] = {
    {SIG_CHANGED, ""},
    {SIG_DISPLAY_CHANGED, ""},
-   {"focused", ""}, /**< handled by elm_widget */
-   {"unfocused", ""}, /**< handled by elm_widget */
+   {SIG_WIDGET_FOCUSED, ""}, /**< handled by elm_widget */
+   {SIG_WIDGET_UNFOCUSED, ""}, /**< handled by elm_widget */
    {NULL, NULL}
 };
 
index 9bc9ac9..0ceecde 100644 (file)
@@ -33,8 +33,8 @@ static const char SIG_CHANGED[] = "changed";
 /* smart callbacks coming from elm check objects: */
 static const Evas_Smart_Cb_Description _smart_callbacks[] = {
    {SIG_CHANGED, ""},
-   {"focused", ""}, /**< handled by elm_widget */
-   {"unfocused", ""}, /**< handled by elm_widget */
+   {SIG_WIDGET_FOCUSED, ""}, /**< handled by elm_widget */
+   {SIG_WIDGET_UNFOCUSED, ""}, /**< handled by elm_widget */
    {NULL, NULL}
 };
 
index c63c7e0..5aec5b2 100644 (file)
@@ -20,8 +20,8 @@ static const char SIG_CHANGED[] = "changed";
 
 static const Evas_Smart_Cb_Description _smart_callbacks[] = {
    {SIG_CHANGED, ""},
-   {"focused", ""}, /**< handled by elm_widget */
-   {"unfocused", ""}, /**< handled by elm_widget */
+   {SIG_WIDGET_FOCUSED, ""}, /**< handled by elm_widget */
+   {SIG_WIDGET_UNFOCUSED, ""}, /**< handled by elm_widget */
    {NULL, NULL}
 };
 
index 9efb495..bf45412 100644 (file)
@@ -29,8 +29,8 @@ static const Evas_Smart_Cb_Description _smart_callbacks[] =
    {SIG_COLOR_ITEM_SELECTED, ""},
    {SIG_COLOR_ITEM_LONGPRESSED, ""},
    {SIG_CHANGED, ""},
-   {"focused", ""}, /**< handled by elm_widget */
-   {"unfocused", ""}, /**< handled by elm_widget */
+   {SIG_WIDGET_FOCUSED, ""}, /**< handled by elm_widget */
+   {SIG_WIDGET_UNFOCUSED, ""}, /**< handled by elm_widget */
    {NULL, NULL}
 };
 
index 414516f..8659616 100644 (file)
@@ -67,8 +67,8 @@ static const char SIG_LANG_CHANGED[] = "language,changed";
 static const Evas_Smart_Cb_Description _smart_callbacks[] = {
    {SIG_CHANGED, ""},
    {SIG_LANG_CHANGED, ""},
-   {"focused", ""}, /**< handled by elm_widget */
-   {"unfocused", ""}, /**< handled by elm_widget */
+   {SIG_WIDGET_FOCUSED, ""}, /**< handled by elm_widget */
+   {SIG_WIDGET_UNFOCUSED, ""}, /**< handled by elm_widget */
    {NULL, NULL}
 };
 
index 04b41b1..44cf9c4 100644 (file)
@@ -38,8 +38,8 @@ static const Evas_Smart_Cb_Description _smart_callbacks[] = {
    {SIG_SCROLL_ANIM_STOP, ""},
    {SIG_SCROLL_DRAG_START, ""},
    {SIG_SCROLL_DRAG_STOP, ""},
-   {"focused", ""}, /**< handled by elm_widget */
-   {"unfocused", ""}, /**< handled by elm_widget */
+   {SIG_WIDGET_FOCUSED, ""}, /**< handled by elm_widget */
+   {SIG_WIDGET_UNFOCUSED, ""}, /**< handled by elm_widget */
    {NULL, NULL}
 };
 
index 9bb8803..ce51c20 100644 (file)
@@ -42,8 +42,8 @@ static const Evas_Smart_Cb_Description _smart_callbacks[] = {
    {SIG_SELECTED, ""},
    {SIG_UNDERFLOWED, ""},
    {SIG_OVERFLOWED, ""},
-   {"focused", ""}, /**< handled by elm_widget */
-   {"unfocused", ""}, /**< handled by elm_widget */
+   {SIG_WIDGET_FOCUSED, ""}, /**< handled by elm_widget */
+   {SIG_WIDGET_UNFOCUSED, ""}, /**< handled by elm_widget */
    {NULL, NULL}
 };
 
index 4040810..c78e8b6 100644 (file)
@@ -75,8 +75,8 @@ ELM_PRIV_GENGRID_SIGNALS(ELM_PRIV_STATIC_VARIABLE_DECLARE);
 
 static const Evas_Smart_Cb_Description _smart_callbacks[] = {
    ELM_PRIV_GENGRID_SIGNALS(ELM_PRIV_SMART_CALLBACKS_DESC)
-   {"focused", ""}, /**< handled by elm_widget */
-   {"unfocused", ""}, /**< handled by elm_widget */
+   {SIG_WIDGET_FOCUSED, ""}, /**< handled by elm_widget */
+   {SIG_WIDGET_UNFOCUSED, ""}, /**< handled by elm_widget */
 
    {NULL, NULL}
 };
index 72b6765..2d1ec7c 100644 (file)
@@ -94,8 +94,8 @@ ELM_PRIV_GENLIST_SIGNALS(ELM_PRIV_STATIC_VARIABLE_DECLARE);
 
 static const Evas_Smart_Cb_Description _smart_callbacks[] = {
    ELM_PRIV_GENLIST_SIGNALS(ELM_PRIV_SMART_CALLBACKS_DESC)
-   {"focused", ""}, /**< handled by elm_widget */
-   {"unfocused", ""}, /**< handled by elm_widget */
+   {SIG_WIDGET_FOCUSED, ""}, /**< handled by elm_widget */
+   {SIG_WIDGET_UNFOCUSED, ""}, /**< handled by elm_widget */
 
    {NULL, NULL}
 };
index ca41279..a77dbb5 100644 (file)
@@ -54,8 +54,8 @@ ELM_PRIV_HOVER_SIGNALS(ELM_PRIV_STATIC_VARIABLE_DECLARE);
 
 static const Evas_Smart_Cb_Description _smart_callbacks[] = {
    ELM_PRIV_HOVER_SIGNALS(ELM_PRIV_SMART_CALLBACKS_DESC)
-   {"focused", ""}, /**< handled by elm_widget */
-   {"unfocused", ""}, /**< handled by elm_widget */
+   {SIG_WIDGET_FOCUSED, ""}, /**< handled by elm_widget */
+   {SIG_WIDGET_UNFOCUSED, ""}, /**< handled by elm_widget */
    {NULL, NULL}
 };
 #undef ELM_PRIV_HOVER_SIGNALS
index 5b9597e..d188d31 100644 (file)
@@ -32,8 +32,8 @@ static const Evas_Smart_Cb_Description _smart_callbacks[] = {
    {SIG_LEVEL_UP, ""},
    {SIG_LEVEL_DOWN, ""},
    {SIG_LANG_CHANGED, ""},
-   {"focused", ""}, /**< handled by elm_widget */
-   {"unfocused", ""}, /**< handled by elm_widget */
+   {SIG_WIDGET_FOCUSED, ""}, /**< handled by elm_widget */
+   {SIG_WIDGET_UNFOCUSED, ""}, /**< handled by elm_widget */
    {NULL, NULL}
 };
 
index 13fd480..06be224 100644 (file)
@@ -42,8 +42,8 @@ static const Evas_Smart_Cb_Description _smart_callbacks[] = {
    {SIG_SWIPE, ""},
    {SIG_HIGHLIGHTED, ""},
    {SIG_UNHIGHLIGHTED, ""},
-   {"focused", ""}, /**< handled by elm_widget */
-   {"unfocused", ""}, /**< handled by elm_widget */
+   {SIG_WIDGET_FOCUSED, ""}, /**< handled by elm_widget */
+   {SIG_WIDGET_UNFOCUSED, ""}, /**< handled by elm_widget */
    {NULL, NULL}
 };
 
index 0b92054..3f47b90 100644 (file)
@@ -338,8 +338,8 @@ static const Evas_Smart_Cb_Description _smart_callbacks[] = {
    {SIG_OVERLAY_CLICKED, ""},
    {SIG_OVERLAY_DEL, ""},
    {SIG_LANG_CHANGED, ""},
-   {"focused", ""}, /**< handled by elm_widget */
-   {"unfocused", ""}, /**< handled by elm_widget */
+   {SIG_WIDGET_FOCUSED, ""}, /**< handled by elm_widget */
+   {SIG_WIDGET_UNFOCUSED, ""}, /**< handled by elm_widget */
    {NULL, NULL}
 };
 
index 0600d03..62cd4aa 100644 (file)
@@ -15,8 +15,8 @@ EAPI Eo_Op ELM_OBJ_PANEL_BASE_ID = EO_NOOP;
 #define MY_CLASS_NAME_LEGACY "elm_panel"
 
 static const Evas_Smart_Cb_Description _smart_callbacks[] = {
-   {"focused", ""}, /**< handled by elm_widget */
-   {"unfocused", ""}, /**< handled by elm_widget */
+   {SIG_WIDGET_FOCUSED, ""}, /**< handled by elm_widget */
+   {SIG_WIDGET_UNFOCUSED, ""}, /**< handled by elm_widget */
    {NULL, NULL}
 };
 
index 2639d72..fa1e03e 100644 (file)
@@ -72,8 +72,8 @@ static const Evas_Smart_Cb_Description _smart_callbacks[] = {
    {SIG_DOWNLOAD_PROGRESS, ""},
    {SIG_DOWNLOAD_DONE, ""},
    {SIG_DOWNLOAD_ERROR, ""},
-   {"focused", ""}, /**< handled by elm_widget */
-   {"unfocused", ""}, /**< handled by elm_widget */
+   {SIG_WIDGET_FOCUSED, ""}, /**< handled by elm_widget */
+   {SIG_WIDGET_UNFOCUSED, ""}, /**< handled by elm_widget */
    {NULL, NULL}
 };
 
index 0c997ed..45717b3 100644 (file)
@@ -487,6 +487,8 @@ extern int _elm_log_dom;
 extern Eina_List *_elm_win_list;
 extern int _elm_win_deferred_free;
 extern const char *_elm_preferred_engine;
+extern const char SIG_WIDGET_FOCUSED[];
+extern const char SIG_WIDGET_UNFOCUSED[];
 
 #ifdef ENABLE_NLS
 /* Our gettext wrapper, used to disable translation of elm if the app
index c382875..3df94d3 100644 (file)
@@ -24,8 +24,8 @@ static const char SIG_CHANGED[] = "changed";
  * ones coming from elm layout): */
 static const Evas_Smart_Cb_Description _smart_callbacks[] = {
    {SIG_CHANGED, ""},
-   {"focused", ""}, /**< handled by elm_widget */
-   {"unfocused", ""}, /**< handled by elm_widget */
+   {SIG_WIDGET_FOCUSED, ""}, /**< handled by elm_widget */
+   {SIG_WIDGET_UNFOCUSED, ""}, /**< handled by elm_widget */
    {NULL, NULL}
 };
 
index 8f6620d..fbe03c9 100644 (file)
@@ -30,8 +30,8 @@ static const Elm_Layout_Part_Alias_Description _text_aliases[] =
 static const char SIG_CHANGED[] = "changed";
 static const Evas_Smart_Cb_Description _smart_callbacks[] = {
    {SIG_CHANGED, ""},
-   {"focused", ""}, /**< handled by elm_widget */
-   {"unfocused", ""}, /**< handled by elm_widget */
+   {SIG_WIDGET_FOCUSED, ""}, /**< handled by elm_widget */
+   {SIG_WIDGET_UNFOCUSED, ""}, /**< handled by elm_widget */
    {NULL, NULL}
 };
 
index 00d61f9..410056a 100644 (file)
@@ -42,8 +42,8 @@ ELM_PRIV_SCROLLER_SIGNALS(ELM_PRIV_STATIC_VARIABLE_DECLARE);
 
 static const Evas_Smart_Cb_Description _smart_callbacks[] = {
    ELM_PRIV_SCROLLER_SIGNALS(ELM_PRIV_SMART_CALLBACKS_DESC)
-   {"focused", ""}, /**< handled by elm_widget */
-   {"unfocused", ""}, /**< handled by elm_widget */
+   {SIG_WIDGET_FOCUSED, ""}, /**< handled by elm_widget */
+   {SIG_WIDGET_UNFOCUSED, ""}, /**< handled by elm_widget */
    {NULL, NULL}
 };
 #undef ELM_PRIV_SCROLLER_SIGNALS
index f529e58..2b3583a 100644 (file)
@@ -39,8 +39,8 @@ static const Evas_Smart_Cb_Description _smart_callbacks[] = {
    {SIG_DELAY_CHANGED, ""},
    {SIG_DRAG_START, ""},
    {SIG_DRAG_STOP, ""},
-   {"focused", ""}, /**< handled by elm_widget */
-   {"unfocused", ""}, /**< handled by elm_widget */
+   {SIG_WIDGET_FOCUSED, ""}, /**< handled by elm_widget */
+   {SIG_WIDGET_UNFOCUSED, ""}, /**< handled by elm_widget */
    {NULL, NULL}
 };
 
index f2eb4d2..3331d09 100644 (file)
@@ -20,8 +20,8 @@ static const char SIG_TRANSITION_END[] = "transition,end";
 static const Evas_Smart_Cb_Description _smart_callbacks[] = {
    {SIG_CHANGED, ""},
    {SIG_TRANSITION_END, ""},
-   {"focused", ""}, /**< handled by elm_widget */
-   {"unfocused", ""}, /**< handled by elm_widget */
+   {SIG_WIDGET_FOCUSED, ""}, /**< handled by elm_widget */
+   {SIG_WIDGET_UNFOCUSED, ""}, /**< handled by elm_widget */
    {NULL, NULL}
 };
 
index c8b237e..201dcf9 100644 (file)
@@ -31,8 +31,8 @@ static const Evas_Smart_Cb_Description _smart_callbacks[] = {
    {SIG_LANG_CHANGED, ""},
    {SIG_DRAG_START, ""},
    {SIG_DRAG_STOP, ""},
-   {"focused", ""}, /**< handled by elm_widget */
-   {"unfocused", ""}, /**< handled by elm_widget */
+   {SIG_WIDGET_FOCUSED, ""}, /**< handled by elm_widget */
+   {SIG_WIDGET_UNFOCUSED, ""}, /**< handled by elm_widget */
    {NULL, NULL}
 };
 
index 15a77e6..dff9b8a 100644 (file)
@@ -36,8 +36,8 @@ static const Evas_Smart_Cb_Description _smart_callbacks[] = {
    {SIG_LONGPRESSED, ""},
    {SIG_CLICKED_DOUBLE, ""},
    {SIG_LANG_CHANGED, ""},
-   {"focused", ""}, /**< handled by elm_widget */
-   {"unfocused", ""}, /**< handled by elm_widget */
+   {SIG_WIDGET_FOCUSED, ""}, /**< handled by elm_widget */
+   {SIG_WIDGET_UNFOCUSED, ""}, /**< handled by elm_widget */
    {NULL, NULL}
 };
 
index 491e3e5..5416a66 100644 (file)
@@ -21,8 +21,8 @@ EAPI Eo_Op ELM_OBJ_VIDEO_BASE_ID = EO_NOOP;
 #define MY_CLASS_NAME_LEGACY "elm_video"
 
 static const Evas_Smart_Cb_Description _smart_callbacks[] = {
-   {"focused", ""}, /**< handled by elm_widget */
-   {"unfocused", ""}, /**< handled by elm_widget */
+   {SIG_WIDGET_FOCUSED, ""}, /**< handled by elm_widget */
+   {SIG_WIDGET_UNFOCUSED, ""}, /**< handled by elm_widget */
    {NULL, NULL}
 };
 
index 4ff13a1..38f70e8 100644 (file)
@@ -74,8 +74,8 @@ static const Evas_Smart_Cb_Description _elm_web_smart_callbacks[] = {
    { "view,resized", "" },
    { "windows,close,request", ""},
    { "zoom,animated,end", "" },
-   { "focused", ""}, /**< handled by elm_widget */
-   { "unfocused", ""}, /**< handled by elm_widget */
+   { SIG_WIDGET_FOCUSED, ""}, /**< handled by elm_widget */
+   { SIG_WIDGET_UNFOCUSED, ""}, /**< handled by elm_widget */
    { NULL, NULL }
 };
 
index b042ec1..a9afd0d 100644 (file)
@@ -26,8 +26,8 @@ static const char SIG_URL_CHANGED[] = "url,changed";
 static const Evas_Smart_Cb_Description _elm_web_smart_callbacks[] = {
    { SIG_URI_CHANGED, "s" },
    { SIG_URL_CHANGED, "s" },
-   { "focused", ""}, /**< handled by elm_widget */
-   { "unfocused", ""}, /**< handled by elm_widget */
+   { SIG_WIDGET_FOCUSED, ""}, /**< handled by elm_widget */
+   { SIG_WIDGET_UNFOCUSED, ""}, /**< handled by elm_widget */
    { NULL, NULL }
 };
 
index 80676f5..0da2e9f 100644 (file)
@@ -29,6 +29,9 @@ EAPI Eo_Op ELM_WIDGET_BASE_ID = EO_NOOP;
   ((_elm_access_auto_highlight_get()) ? (elm_widget_highlight_get(obj)) : \
                                         (elm_widget_focus_get(obj)))
 
+const char SIG_WIDGET_FOCUSED[] = "focused";
+const char SIG_WIDGET_UNFOCUSED[] = "unfocused";
+
 typedef struct _Elm_Event_Cb_Data         Elm_Event_Cb_Data;
 typedef struct _Elm_Label_Data            Elm_Label_Data;
 typedef struct _Elm_Translate_String_Data Elm_Translate_String_Data;
@@ -6235,13 +6238,13 @@ _elm_widget_on_focus(Eo *obj EINA_UNUSED, void *_pd EINA_UNUSED, va_list *list)
           {
              if (!sd->resize_obj)
                evas_object_focus_set(obj, EINA_TRUE);
-             evas_object_smart_callback_call(obj, "focused", NULL);
+             evas_object_smart_callback_call(obj, SIG_WIDGET_FOCUSED, NULL);
           }
         else
           {
              if (!sd->resize_obj)
                evas_object_focus_set(obj, EINA_FALSE);
-             evas_object_smart_callback_call(obj, "unfocused", NULL);
+             evas_object_smart_callback_call(obj, SIG_WIDGET_UNFOCUSED, NULL);
           }
      }
    else