seoz pushed a commit to branch master.
commit 11c5f1dc11fcdf5080684b4ec762e055e433facd
Author: Daniel Juyung Seo <[email protected]>
Date: Mon Jun 10 14:05:33 2013 +0900
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.
---
src/lib/elc_ctxpopup.c | 6 ++----
src/lib/elc_fileselector_button.c | 6 ++----
src/lib/elc_naviframe.c | 6 ++----
src/lib/elc_player.c | 6 ++----
src/lib/elc_popup.c | 6 ++----
src/lib/elm_bubble.c | 6 ++----
src/lib/elm_button.c | 6 ++----
src/lib/elm_calendar.c | 6 ++----
src/lib/elm_check.c | 6 ++----
src/lib/elm_clock.c | 6 ++----
src/lib/elm_colorselector.c | 6 ++----
src/lib/elm_datetime.c | 6 ++----
src/lib/elm_diskselector.c | 6 ++----
src/lib/elm_flipselector.c | 6 ++----
src/lib/elm_gengrid.c | 6 ++----
15 files changed, 30 insertions(+), 60 deletions(-)
diff --git a/src/lib/elc_ctxpopup.c b/src/lib/elc_ctxpopup.c
index fac2231..c3e3e9a 100644
--- a/src/lib/elc_ctxpopup.c
+++ b/src/lib/elc_ctxpopup.c
@@ -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}
};
diff --git a/src/lib/elc_fileselector_button.c
b/src/lib/elc_fileselector_button.c
index b68c7d6..2a7b52e 100644
--- a/src/lib/elc_fileselector_button.c
+++ b/src/lib/elc_fileselector_button.c
@@ -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}
};
diff --git a/src/lib/elc_naviframe.c b/src/lib/elc_naviframe.c
index 483b86f..ec56f4d 100644
--- a/src/lib/elc_naviframe.c
+++ b/src/lib/elc_naviframe.c
@@ -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}
};
diff --git a/src/lib/elc_player.c b/src/lib/elc_player.c
index 0ef5734..fcf793b 100644
--- a/src/lib/elc_player.c
+++ b/src/lib/elc_player.c
@@ -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 }
};
diff --git a/src/lib/elc_popup.c b/src/lib/elc_popup.c
index 766bc5a..d98afd3 100644
--- a/src/lib/elc_popup.c
+++ b/src/lib/elc_popup.c
@@ -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}
};
diff --git a/src/lib/elm_bubble.c b/src/lib/elm_bubble.c
index 4d9f3a8..97d0dd4 100644
--- a/src/lib/elm_bubble.c
+++ b/src/lib/elm_bubble.c
@@ -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}
};
diff --git a/src/lib/elm_button.c b/src/lib/elm_button.c
index 51e9c31..6522cf1 100644
--- a/src/lib/elm_button.c
+++ b/src/lib/elm_button.c
@@ -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}
};
diff --git a/src/lib/elm_calendar.c b/src/lib/elm_calendar.c
index f83e97f..ae35f2c 100644
--- a/src/lib/elm_calendar.c
+++ b/src/lib/elm_calendar.c
@@ -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}
};
diff --git a/src/lib/elm_check.c b/src/lib/elm_check.c
index b96b23c..c6ef5a3 100644
--- a/src/lib/elm_check.c
+++ b/src/lib/elm_check.c
@@ -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}
};
diff --git a/src/lib/elm_clock.c b/src/lib/elm_clock.c
index 3068dd9..3b91263 100644
--- a/src/lib/elm_clock.c
+++ b/src/lib/elm_clock.c
@@ -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}
};
diff --git a/src/lib/elm_colorselector.c b/src/lib/elm_colorselector.c
index 7dadcb6..0b30a83 100644
--- a/src/lib/elm_colorselector.c
+++ b/src/lib/elm_colorselector.c
@@ -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}
};
diff --git a/src/lib/elm_datetime.c b/src/lib/elm_datetime.c
index b970837..49bfba3 100644
--- a/src/lib/elm_datetime.c
+++ b/src/lib/elm_datetime.c
@@ -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}
};
diff --git a/src/lib/elm_diskselector.c b/src/lib/elm_diskselector.c
index caca5a4..e5c0206 100644
--- a/src/lib/elm_diskselector.c
+++ b/src/lib/elm_diskselector.c
@@ -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}
};
diff --git a/src/lib/elm_flipselector.c b/src/lib/elm_flipselector.c
index b9bfad5..38115af 100644
--- a/src/lib/elm_flipselector.c
+++ b/src/lib/elm_flipselector.c
@@ -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}
};
diff --git a/src/lib/elm_gengrid.c b/src/lib/elm_gengrid.c
index 7e2e5b0..7b61607 100644
--- a/src/lib/elm_gengrid.c
+++ b/src/lib/elm_gengrid.c
@@ -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}
};
--
------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j