forked from enlightenment/efl
elm: do not declare SIG_FUCSED/SIG_UNFOCUSED if the const char is not used more than once.
ctxpopup, fileselector_button, naviframe, player, popup, bubble, button, calendar, check, clock, colorselector, datetime, diskselector, flipselector, gengrid.
This commit is contained in:
parent
37822734cc
commit
f1b685897d
|
@ -17,14 +17,12 @@ EAPI const char ELM_CTXPOPUP_SMART_NAME[] = "elm_ctxpopup";
|
|||
|
||||
static const char SIG_DISMISSED[] = "dismissed";
|
||||
static const char SIG_LANG_CHANGED[] = "language,changed";
|
||||
static const char SIG_FOCUSED[] = "focused"; /**< handled by elm_widget */
|
||||
static const char SIG_UNFOCUSED[] = "unfocused"; /**< handled by elm_widget */
|
||||
|
||||
static const Evas_Smart_Cb_Description _smart_callbacks[] = {
|
||||
{SIG_DISMISSED, ""},
|
||||
{SIG_LANG_CHANGED, ""},
|
||||
{SIG_FOCUSED, ""},
|
||||
{SIG_UNFOCUSED, ""},
|
||||
{"focused", ""}, /**< handled by elm_widget */
|
||||
{"unfocused", ""}, /**< handled by elm_widget */
|
||||
{NULL, NULL}
|
||||
};
|
||||
|
||||
|
|
|
@ -16,14 +16,12 @@ EAPI Eo_Op ELM_OBJ_FILESELECTOR_BUTTON_BASE_ID = EO_NOOP;
|
|||
|
||||
static const char SIG_FILE_CHOSEN[] = "file,chosen";
|
||||
static const char SIG_LANG_CHANGED[] = "language,changed";
|
||||
static const char SIG_FOCUSED[] = "focused"; /**< handled by elm_widget */
|
||||
static const char SIG_UNFOCUSED[] = "unfocused"; /**< handled by elm_widget */
|
||||
|
||||
static const Evas_Smart_Cb_Description _smart_callbacks[] = {
|
||||
{SIG_FILE_CHOSEN, "s"},
|
||||
{SIG_LANG_CHANGED, ""},
|
||||
{SIG_FOCUSED, ""},
|
||||
{SIG_UNFOCUSED, ""},
|
||||
{"focused", ""}, /**< handled by elm_widget */
|
||||
{"unfocused", ""}, /**< handled by elm_widget */
|
||||
{NULL, NULL}
|
||||
};
|
||||
|
||||
|
|
|
@ -23,14 +23,12 @@ static const char TITLE_ACCESS_PART[] = "access.title";
|
|||
|
||||
static const char SIG_TRANSITION_FINISHED[] = "transition,finished";
|
||||
static const char SIG_TITLE_CLICKED[] = "title,clicked";
|
||||
static const char SIG_FOCUSED[] = "focused"; /**< handled by elm_widget */
|
||||
static const char SIG_UNFOCUSED[] = "unfocused"; /**< handled by elm_widget */
|
||||
|
||||
static const Evas_Smart_Cb_Description _smart_callbacks[] = {
|
||||
{SIG_TRANSITION_FINISHED, ""},
|
||||
{SIG_TITLE_CLICKED, ""},
|
||||
{SIG_FOCUSED, ""},
|
||||
{SIG_UNFOCUSED, ""},
|
||||
{"focused", ""}, /**< handled by elm_widget */
|
||||
{"unfocused", ""}, /**< handled by elm_widget */
|
||||
{NULL, NULL}
|
||||
};
|
||||
|
||||
|
|
|
@ -25,8 +25,6 @@ static const char SIG_PLAY_CLICKED[] = "play,clicked";
|
|||
static const char SIG_PREV_CLICKED[] = "prev,clicked";
|
||||
static const char SIG_REWIND_CLICKED[] = "rewind,clicked";
|
||||
static const char SIG_STOP_CLICKED[] = "stop,clicked";
|
||||
static const char SIG_FOCUSED[] = "focused"; /**< handled by elm_widget */
|
||||
static const char SIG_UNFOCUSED[] = "unfocused"; /**< handled by elm_widget */
|
||||
|
||||
static const Evas_Smart_Cb_Description _smart_callbacks[] = {
|
||||
{ SIG_FORWARD_CLICKED, "" },
|
||||
|
@ -37,8 +35,8 @@ static const Evas_Smart_Cb_Description _smart_callbacks[] = {
|
|||
{ SIG_PREV_CLICKED, "" },
|
||||
{ SIG_REWIND_CLICKED, "" },
|
||||
{ SIG_STOP_CLICKED, "" },
|
||||
{SIG_FOCUSED, ""},
|
||||
{SIG_UNFOCUSED, ""},
|
||||
{"focused", ""}, /**< handled by elm_widget */
|
||||
{"unfocused", ""}, /**< handled by elm_widget */
|
||||
{ NULL, NULL }
|
||||
};
|
||||
|
||||
|
|
|
@ -22,14 +22,12 @@ 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_FOCUSED[] = "focused"; /**< handled by elm_widget */
|
||||
static const char SIG_UNFOCUSED[] = "unfocused"; /**< handled by elm_widget */
|
||||
|
||||
static const Evas_Smart_Cb_Description _smart_callbacks[] = {
|
||||
{SIG_BLOCK_CLICKED, ""},
|
||||
{SIG_TIMEOUT, ""},
|
||||
{SIG_FOCUSED, ""},
|
||||
{SIG_UNFOCUSED, ""},
|
||||
{"focused", ""}, /**< handled by elm_widget */
|
||||
{"unfocused", ""}, /**< handled by elm_widget */
|
||||
{NULL, NULL}
|
||||
};
|
||||
|
||||
|
|
|
@ -14,14 +14,12 @@ EAPI Eo_Op ELM_OBJ_BUBBLE_BASE_ID = EO_NOOP;
|
|||
#define MY_CLASS_NAME "elm_bubble"
|
||||
|
||||
static const char SIG_CLICKED[] = "clicked";
|
||||
static const char SIG_FOCUSED[] = "focused"; /**< handled by elm_widget */
|
||||
static const char SIG_UNFOCUSED[] = "unfocused"; /**< handled by elm_widget */
|
||||
|
||||
static const Evas_Smart_Cb_Description _smart_callbacks[] =
|
||||
{
|
||||
{SIG_CLICKED, ""},
|
||||
{SIG_FOCUSED, ""},
|
||||
{SIG_UNFOCUSED, ""},
|
||||
{"focused", ""}, /**< handled by elm_widget */
|
||||
{"unfocused", ""}, /**< handled by elm_widget */
|
||||
{NULL, NULL}
|
||||
};
|
||||
|
||||
|
|
|
@ -17,8 +17,6 @@ static const char SIG_CLICKED[] = "clicked";
|
|||
static const char SIG_REPEATED[] = "repeated";
|
||||
static const char SIG_PRESSED[] = "pressed";
|
||||
static const char SIG_UNPRESSED[] = "unpressed";
|
||||
static const char SIG_FOCUSED[] = "focused"; /**< handled by elm_widget */
|
||||
static const char SIG_UNFOCUSED[] = "unfocused"; /**< handled by elm_widget */
|
||||
|
||||
/* smart callbacks coming from elm button objects (besides the ones
|
||||
* coming from elm layout): */
|
||||
|
@ -27,8 +25,8 @@ static const Evas_Smart_Cb_Description _smart_callbacks[] = {
|
|||
{SIG_REPEATED, ""},
|
||||
{SIG_PRESSED, ""},
|
||||
{SIG_UNPRESSED, ""},
|
||||
{SIG_FOCUSED, ""},
|
||||
{SIG_UNFOCUSED, ""},
|
||||
{"focused", ""}, /**< handled by elm_widget */
|
||||
{"unfocused", ""}, /**< handled by elm_widget */
|
||||
{NULL, NULL}
|
||||
};
|
||||
|
||||
|
|
|
@ -14,14 +14,12 @@ EAPI Eo_Op ELM_OBJ_CALENDAR_BASE_ID = EO_NOOP;
|
|||
|
||||
static const char SIG_CHANGED[] = "changed";
|
||||
static const char SIG_DISPLAY_CHANGED[] = "display,changed";
|
||||
static const char SIG_FOCUSED[] = "focused"; /**< handled by elm_widget */
|
||||
static const char SIG_UNFOCUSED[] = "unfocused"; /**< handled by elm_widget */
|
||||
|
||||
static const Evas_Smart_Cb_Description _smart_callbacks[] = {
|
||||
{SIG_CHANGED, ""},
|
||||
{SIG_DISPLAY_CHANGED, ""},
|
||||
{SIG_FOCUSED, ""},
|
||||
{SIG_UNFOCUSED, ""},
|
||||
{"focused", ""}, /**< handled by elm_widget */
|
||||
{"unfocused", ""}, /**< handled by elm_widget */
|
||||
{NULL, NULL}
|
||||
};
|
||||
|
||||
|
|
|
@ -28,14 +28,12 @@ static const Elm_Layout_Part_Alias_Description _text_aliases[] =
|
|||
};
|
||||
|
||||
static const char SIG_CHANGED[] = "changed";
|
||||
static const char SIG_FOCUSED[] = "focused"; /**< handled by elm_widget */
|
||||
static const char SIG_UNFOCUSED[] = "unfocused"; /**< handled by elm_widget */
|
||||
|
||||
/* smart callbacks coming from elm check objects: */
|
||||
static const Evas_Smart_Cb_Description _smart_callbacks[] = {
|
||||
{SIG_CHANGED, ""},
|
||||
{SIG_FOCUSED, ""},
|
||||
{SIG_UNFOCUSED, ""},
|
||||
{"focused", ""}, /**< handled by elm_widget */
|
||||
{"unfocused", ""}, /**< handled by elm_widget */
|
||||
{NULL, NULL}
|
||||
};
|
||||
|
||||
|
|
|
@ -16,13 +16,11 @@ EAPI Eo_Op ELM_OBJ_CLOCK_BASE_ID = EO_NOOP;
|
|||
static void _time_update(Evas_Object *obj);
|
||||
|
||||
static const char SIG_CHANGED[] = "changed";
|
||||
static const char SIG_FOCUSED[] = "focused"; /**< handled by elm_widget */
|
||||
static const char SIG_UNFOCUSED[] = "unfocused"; /**< handled by elm_widget */
|
||||
|
||||
static const Evas_Smart_Cb_Description _smart_callbacks[] = {
|
||||
{SIG_CHANGED, ""},
|
||||
{SIG_FOCUSED, ""},
|
||||
{SIG_UNFOCUSED, ""},
|
||||
{"focused", ""}, /**< handled by elm_widget */
|
||||
{"unfocused", ""}, /**< handled by elm_widget */
|
||||
{NULL, NULL}
|
||||
};
|
||||
|
||||
|
|
|
@ -23,15 +23,13 @@ EAPI Eo_Op ELM_OBJ_COLORSELECTOR_BASE_ID = EO_NOOP;
|
|||
static const char SIG_CHANGED[] = "changed";
|
||||
static const char SIG_COLOR_ITEM_SELECTED[] = "color,item,selected";
|
||||
static const char SIG_COLOR_ITEM_LONGPRESSED[] = "color,item,longpressed";
|
||||
static const char SIG_FOCUSED[] = "focused"; /**< handled by elm_widget */
|
||||
static const char SIG_UNFOCUSED[] = "unfocused"; /**< handled by elm_widget */
|
||||
static const Evas_Smart_Cb_Description _smart_callbacks[] =
|
||||
{
|
||||
{SIG_COLOR_ITEM_SELECTED, ""},
|
||||
{SIG_COLOR_ITEM_LONGPRESSED, ""},
|
||||
{SIG_CHANGED, ""},
|
||||
{SIG_FOCUSED, ""},
|
||||
{SIG_UNFOCUSED, ""},
|
||||
{"focused", ""}, /**< handled by elm_widget */
|
||||
{"unfocused", ""}, /**< handled by elm_widget */
|
||||
{NULL, NULL}
|
||||
};
|
||||
|
||||
|
|
|
@ -63,13 +63,11 @@ static Datetime_Mod_Api *dt_mod = NULL;
|
|||
|
||||
static const char SIG_CHANGED[] = "changed";
|
||||
static const char SIG_LANG_CHANGED[] = "language,changed";
|
||||
static const char SIG_FOCUSED[] = "focused"; /**< handled by elm_widget */
|
||||
static const char SIG_UNFOCUSED[] = "unfocused"; /**< handled by elm_widget */
|
||||
static const Evas_Smart_Cb_Description _smart_callbacks[] = {
|
||||
{SIG_CHANGED, ""},
|
||||
{SIG_LANG_CHANGED, ""},
|
||||
{SIG_FOCUSED, ""},
|
||||
{SIG_UNFOCUSED, ""},
|
||||
{"focused", ""}, /**< handled by elm_widget */
|
||||
{"unfocused", ""}, /**< handled by elm_widget */
|
||||
{NULL, NULL}
|
||||
};
|
||||
|
||||
|
|
|
@ -29,8 +29,6 @@ static const char SIG_SCROLL_ANIM_START[] = "scroll,anim,start";
|
|||
static const char SIG_SCROLL_ANIM_STOP[] = "scroll,anim,stop";
|
||||
static const char SIG_SCROLL_DRAG_START[] = "scroll,drag,start";
|
||||
static const char SIG_SCROLL_DRAG_STOP[] = "scroll,drag,stop";
|
||||
static const char SIG_FOCUSED[] = "focused"; /**< handled by elm_widget */
|
||||
static const char SIG_UNFOCUSED[] = "unfocused"; /**< handled by elm_widget */
|
||||
|
||||
static const Evas_Smart_Cb_Description _smart_callbacks[] = {
|
||||
{SIG_SELECTED, ""},
|
||||
|
@ -39,8 +37,8 @@ static const Evas_Smart_Cb_Description _smart_callbacks[] = {
|
|||
{SIG_SCROLL_ANIM_STOP, ""},
|
||||
{SIG_SCROLL_DRAG_START, ""},
|
||||
{SIG_SCROLL_DRAG_STOP, ""},
|
||||
{SIG_FOCUSED, ""},
|
||||
{SIG_UNFOCUSED, ""},
|
||||
{"focused", ""}, /**< handled by elm_widget */
|
||||
{"unfocused", ""}, /**< handled by elm_widget */
|
||||
{NULL, NULL}
|
||||
};
|
||||
|
||||
|
|
|
@ -37,14 +37,12 @@ EAPI Eo_Op ELM_OBJ_FLIPSELECTOR_BASE_ID = EO_NOOP;
|
|||
static const char SIG_SELECTED[] = "selected";
|
||||
static const char SIG_UNDERFLOWED[] = "underflowed";
|
||||
static const char SIG_OVERFLOWED[] = "overflowed";
|
||||
static const char SIG_FOCUSED[] = "focused"; /**< handled by elm_widget */
|
||||
static const char SIG_UNFOCUSED[] = "unfocused"; /**< handled by elm_widget */
|
||||
static const Evas_Smart_Cb_Description _smart_callbacks[] = {
|
||||
{SIG_SELECTED, ""},
|
||||
{SIG_UNDERFLOWED, ""},
|
||||
{SIG_OVERFLOWED, ""},
|
||||
{SIG_FOCUSED, ""},
|
||||
{SIG_UNFOCUSED, ""},
|
||||
{"focused", ""}, /**< handled by elm_widget */
|
||||
{"unfocused", ""}, /**< handled by elm_widget */
|
||||
{NULL, NULL}
|
||||
};
|
||||
|
||||
|
|
|
@ -67,8 +67,6 @@ static const char SIG_UNHIGHLIGHTED[] = "unhighlighted";
|
|||
static const char SIG_LANG_CHANGED[] = "language,changed";
|
||||
static const char SIG_PRESSED[] = "pressed";
|
||||
static const char SIG_RELEASED[] = "released";
|
||||
static const char SIG_FOCUSED[] = "focused"; /**< handled by elm_widget */
|
||||
static const char SIG_UNFOCUSED[] = "unfocused"; /**< handled by elm_widget */
|
||||
|
||||
static const Evas_Smart_Cb_Description _smart_callbacks[] = {
|
||||
{SIG_ACTIVATED, ""},
|
||||
|
@ -101,8 +99,8 @@ static const Evas_Smart_Cb_Description _smart_callbacks[] = {
|
|||
{SIG_PRESSED, ""},
|
||||
{SIG_RELEASED, ""},
|
||||
{SIG_SCROLL_PAGE_CHANGE, ""},
|
||||
{SIG_FOCUSED, ""},
|
||||
{SIG_UNFOCUSED, ""},
|
||||
{"focused", ""}, /**< handled by elm_widget */
|
||||
{"unfocused", ""}, /**< handled by elm_widget */
|
||||
|
||||
{NULL, NULL}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue