elementary - support language changed callback from a few widgets.
support a language,changed callback if a widget has the text part in default.
This commit is contained in:
parent
dbacb2fef9
commit
39ad0e358e
|
@ -21,6 +21,7 @@ static const Evas_Smart_Cb_Description _smart_callbacks[] = {
|
|||
{SIG_DISMISSED, ""},
|
||||
{SIG_EXPANDED, ""},
|
||||
{"clicked", ""}, /**< handled by parent button class */
|
||||
{SIG_WIDGET_LANG_CHANGED, ""}, /**< handled by elm_widget */
|
||||
{NULL, NULL}
|
||||
};
|
||||
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
* is the selected item
|
||||
* - @c "dismissed" - the hover is dismissed
|
||||
* - @c "expanded" - This is called on clicking hoversel and elm_hoversel_hover_begin().
|
||||
* - @c "language,changed" - the program's language changed (since 1.9)
|
||||
*
|
||||
* Default content parts of the hoversel widget that you can use for are:
|
||||
* @li "icon" - An icon of the hoversel
|
||||
|
|
|
@ -30,6 +30,7 @@ static const Evas_Smart_Cb_Description _smart_callbacks[] = {
|
|||
{SIG_TRANSITION_FINISHED, ""},
|
||||
{SIG_TITLE_TRANSITION_FINISHED, ""},
|
||||
{SIG_TITLE_CLICKED, ""},
|
||||
{SIG_WIDGET_LANG_CHANGED, ""}, /**< handled by elm_widget */
|
||||
{SIG_WIDGET_FOCUSED, ""}, /**< handled by elm_widget */
|
||||
{SIG_WIDGET_UNFOCUSED, ""}, /**< handled by elm_widget */
|
||||
{NULL, NULL}
|
||||
|
|
|
@ -65,6 +65,7 @@
|
|||
* @li @c "title,clicked" - User clicked title area
|
||||
* @li @c "focused" - When the naviframe has received focus. (since 1.8)
|
||||
* @li @c "unfocused" - When the naviframe has lost focus. (since 1.8)
|
||||
* @li @c "language,changed" - the program's language changed (since 1.9)
|
||||
*
|
||||
* All the parts, for content and text, described here will also be
|
||||
* reachable by naviframe @b items direct calls:
|
||||
|
|
|
@ -50,6 +50,7 @@ static const Evas_Smart_Cb_Description _smart_callbacks[] = {
|
|||
{ SIG_EJECT_CLICKED, "" },
|
||||
{ SIG_VOLUME_CLICKED, "" },
|
||||
{ SIG_MUTE_CLICKED, "" },
|
||||
{ SIG_WIDGET_LANG_CHANGED, ""}, /**< handled by elm_widget */
|
||||
{ SIG_WIDGET_FOCUSED, ""}, /**< handled by elm_widget */
|
||||
{ SIG_WIDGET_UNFOCUSED, ""}, /**< handled by elm_widget */
|
||||
{ NULL, NULL }
|
||||
|
|
|
@ -33,6 +33,7 @@ ELM_PRIV_ACTIONSLIDER_SIGNALS(ELM_PRIV_STATIC_VARIABLE_DECLARE);
|
|||
static const Evas_Smart_Cb_Description _smart_callbacks[] =
|
||||
{
|
||||
ELM_PRIV_ACTIONSLIDER_SIGNALS(ELM_PRIV_SMART_CALLBACKS_DESC)
|
||||
{SIG_WIDGET_LANG_CHANGED, ""}, /**< handled by elm_widget */
|
||||
{NULL, NULL}
|
||||
};
|
||||
#undef ELM_PRIV_ACTIONSLIDER_SIGNALS
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
* label is passed as event info).
|
||||
* @li @c "pos_changed" - when the indicator reaches any of the
|
||||
* positions("left", "right" or "center").
|
||||
* @li @c "language,changed" - the program's language changed (since 1.9)
|
||||
*
|
||||
* Default text parts of the actionslider widget that you can use for are:
|
||||
* @li "indicator" - An indicator label of the actionslider
|
||||
|
|
|
@ -19,6 +19,7 @@ static const char SIG_DISPLAY_CHANGED[] = "display,changed";
|
|||
static const Evas_Smart_Cb_Description _smart_callbacks[] = {
|
||||
{SIG_CHANGED, ""},
|
||||
{SIG_DISPLAY_CHANGED, ""},
|
||||
{SIG_WIDGET_LANG_CHANGED, ""}, /**< handled by elm_widget */
|
||||
{SIG_WIDGET_FOCUSED, ""}, /**< handled by elm_widget */
|
||||
{SIG_WIDGET_UNFOCUSED, ""}, /**< handled by elm_widget */
|
||||
{NULL, NULL}
|
||||
|
|
|
@ -27,6 +27,7 @@
|
|||
* calendar is changed.
|
||||
* - @c "focused" - When the calendar has received focus. (since 1.8)
|
||||
* - @c "unfocused" - When the calendar has lost focus. (since 1.8)
|
||||
* - @c "language,changed" - the program's language changed (since 1.9)
|
||||
*
|
||||
* Supported elm_object common APIs.
|
||||
* @li @ref elm_object_signal_emit
|
||||
|
|
|
@ -33,6 +33,7 @@ static const char SIG_CHANGED[] = "changed";
|
|||
/* smart callbacks coming from elm check objects: */
|
||||
static const Evas_Smart_Cb_Description _smart_callbacks[] = {
|
||||
{SIG_CHANGED, ""},
|
||||
{SIG_WIDGET_LANG_CHANGED, ""}, /**< handled by elm_widget */
|
||||
{SIG_WIDGET_FOCUSED, ""}, /**< handled by elm_widget */
|
||||
{SIG_WIDGET_UNFOCUSED, ""}, /**< handled by elm_widget */
|
||||
{NULL, NULL}
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
* the check objects (@c event_info is always @c NULL).
|
||||
* - @c "focused" - When the check has received focus. (since 1.8)
|
||||
* - @c "unfocused" - When the check has lost focus. (since 1.8)
|
||||
* - @c "language,changed" - the program's language changed (since 1.9)
|
||||
*
|
||||
* Default content parts of the check widget that you can use for are:
|
||||
* @li "icon" - An icon of the check
|
||||
|
|
|
@ -20,6 +20,7 @@ static const char SIG_CHANGED[] = "changed";
|
|||
|
||||
static const Evas_Smart_Cb_Description _smart_callbacks[] = {
|
||||
{SIG_CHANGED, ""},
|
||||
{SIG_WIDGET_LANG_CHANGED, ""}, /**< handled by elm_widget */
|
||||
{SIG_WIDGET_FOCUSED, ""}, /**< handled by elm_widget */
|
||||
{SIG_WIDGET_UNFOCUSED, ""}, /**< handled by elm_widget */
|
||||
{NULL, NULL}
|
||||
|
|
|
@ -41,6 +41,7 @@
|
|||
* - @c "changed" - the clock's user changed the time
|
||||
* - @c "focused" - When the clock ehas received focus. (since 1.8)
|
||||
* - @c "unfocused" - When the clock has lost focus. (since 1.8)
|
||||
* - @c "language,changed" - the program's language changed (since 1.9)
|
||||
*
|
||||
* Supported elm_object common APIs.
|
||||
* @li @ref elm_object_signal_emit
|
||||
|
|
|
@ -29,6 +29,7 @@ static const Evas_Smart_Cb_Description _smart_callbacks[] =
|
|||
{SIG_COLOR_ITEM_SELECTED, ""},
|
||||
{SIG_COLOR_ITEM_LONGPRESSED, ""},
|
||||
{SIG_CHANGED, ""},
|
||||
{SIG_WIDGET_LANG_CHANGED, ""}, /**< handled by elm_widget */
|
||||
{SIG_WIDGET_FOCUSED, ""}, /**< handled by elm_widget */
|
||||
{SIG_WIDGET_UNFOCUSED, ""}, /**< handled by elm_widget */
|
||||
{NULL, NULL}
|
||||
|
|
|
@ -30,6 +30,7 @@
|
|||
* color item.
|
||||
* - @c "focused" - When the colorselector has received focus. (since 1.8)
|
||||
* - @c "unfocused" - When the colorselector has lost focus. (since 1.8)
|
||||
* - @c "language,changed" - the program's language changed (since 1.9)
|
||||
*
|
||||
* See @ref tutorial_colorselector.
|
||||
* @{
|
||||
|
|
|
@ -38,6 +38,7 @@ static const Evas_Smart_Cb_Description _smart_callbacks[] = {
|
|||
{SIG_SCROLL_ANIM_STOP, ""},
|
||||
{SIG_SCROLL_DRAG_START, ""},
|
||||
{SIG_SCROLL_DRAG_STOP, ""},
|
||||
{SIG_WIDGET_LANG_CHANGED, ""}, /**< handled by elm_widget */
|
||||
{SIG_WIDGET_FOCUSED, ""}, /**< handled by elm_widget */
|
||||
{SIG_WIDGET_UNFOCUSED, ""}, /**< handled by elm_widget */
|
||||
{NULL, NULL}
|
||||
|
|
|
@ -35,6 +35,7 @@
|
|||
* @li @c "scroll,drag,stop" - dragging the diskselector has stopped
|
||||
* @li @c "focused" - When the diskselector has received focus. (since 1.8)
|
||||
* @li @c "unfocused" - When the diskselector has lost focus. (since 1.8)
|
||||
* @li @c "language,changed" - the program's language changed (since 1.9)
|
||||
*
|
||||
* @note The "scroll,anim,*" and "scroll,drag,*" signals are only emitted by
|
||||
* user intervention.
|
||||
|
|
|
@ -42,6 +42,7 @@ static const Evas_Smart_Cb_Description _smart_callbacks[] = {
|
|||
{SIG_SELECTED, ""},
|
||||
{SIG_UNDERFLOWED, ""},
|
||||
{SIG_OVERFLOWED, ""},
|
||||
{SIG_WIDGET_LANG_CHANGED, ""}, /**< handled by elm_widget */
|
||||
{SIG_WIDGET_FOCUSED, ""}, /**< handled by elm_widget */
|
||||
{SIG_WIDGET_UNFOCUSED, ""}, /**< handled by elm_widget */
|
||||
{NULL, NULL}
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
* from the last item in its list to the first
|
||||
* - @c "focused" - When the flip selector has received focus. (since 1.8)
|
||||
* - @c "unfocused" - When the flip selector has lost focus. (since 1.8)
|
||||
* - @c "language,changed" - the program's language changed (since 1.9)
|
||||
*
|
||||
* Available styles for it:
|
||||
* - @c "default"
|
||||
|
|
|
@ -18,6 +18,7 @@ static const char SIG_CLICKED[] = "clicked";
|
|||
|
||||
static const Evas_Smart_Cb_Description _smart_callbacks[] = {
|
||||
{SIG_CLICKED, ""},
|
||||
{SIG_WIDGET_LANG_CHANGED, ""}, /**< handled by elm_widget */
|
||||
{NULL, NULL}
|
||||
};
|
||||
|
||||
|
|
|
@ -28,6 +28,7 @@
|
|||
* This widget emits the following signals, besides the ones sent from
|
||||
* @ref Layout:
|
||||
* - @c "clicked" - The user has clicked the frame's label
|
||||
* - @c "language,changed" - the program's language changed (since 1.9)
|
||||
*
|
||||
* Default content parts of the frame widget that you can use for are:
|
||||
* @li "default" - A content of the frame
|
||||
|
|
|
@ -19,7 +19,7 @@ static const char SIG_THEME_CHANGED[] = "theme,changed";
|
|||
/* smart callbacks coming from elm layout objects: */
|
||||
static const Evas_Smart_Cb_Description _smart_callbacks[] = {
|
||||
{SIG_THEME_CHANGED, ""},
|
||||
{SIG_WIDGET_LANG_CHANGED, ""},
|
||||
{SIG_WIDGET_LANG_CHANGED, ""}, /**< handled by elm_widget */
|
||||
{NULL, NULL}
|
||||
};
|
||||
|
||||
|
|
|
@ -22,6 +22,7 @@ ELM_PRIV_MENU_SIGNALS(ELM_PRIV_STATIC_VARIABLE_DECLARE);
|
|||
|
||||
static const Evas_Smart_Cb_Description _smart_callbacks[] = {
|
||||
ELM_PRIV_MENU_SIGNALS(ELM_PRIV_SMART_CALLBACKS_DESC)
|
||||
{SIG_WIDGET_LANG_CHANGED, ""}, /**< handled by elm_widget */
|
||||
{NULL, NULL}
|
||||
};
|
||||
#undef ELM_PRIV_MENU_SIGNALS
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
* Signals that you can add callbacks for are:
|
||||
* @li @c "clicked" - the user clicked the empty space in the menu to dismiss.
|
||||
* @li @c "dismissed" - the user clicked the empty space in the menu to dismiss (since 1.8)
|
||||
* @li @c "language,changed" - the program's language changed (since 1.9)
|
||||
*
|
||||
* Default content parts of the menu items that you can use for are:
|
||||
* @li @c "default" - A main content of the menu item
|
||||
|
|
|
@ -24,6 +24,7 @@ static const char SIG_CHANGED[] = "changed";
|
|||
* ones coming from elm layout): */
|
||||
static const Evas_Smart_Cb_Description _smart_callbacks[] = {
|
||||
{SIG_CHANGED, ""},
|
||||
{SIG_WIDGET_LANG_CHANGED, ""}, /**< handled by elm_widget */
|
||||
{SIG_WIDGET_FOCUSED, ""}, /**< handled by elm_widget */
|
||||
{SIG_WIDGET_UNFOCUSED, ""}, /**< handled by elm_widget */
|
||||
{NULL, NULL}
|
||||
|
|
|
@ -38,6 +38,7 @@
|
|||
* @li @c "changed" - when the value is changed (since 1.7)
|
||||
* @li @c "focused" - When the progressbar has received focus. (since 1.8)
|
||||
* @li @c "unfocused" - When the progressbar has lost focus. (since 1.8)
|
||||
* @li @c "language,changed" - the program's language changed (since 1.9)
|
||||
*
|
||||
* This widget has the following styles:
|
||||
* - @c "default"
|
||||
|
|
|
@ -30,6 +30,7 @@ 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, ""},
|
||||
{SIG_WIDGET_LANG_CHANGED, ""}, /**< handled by elm_widget */
|
||||
{SIG_WIDGET_FOCUSED, ""}, /**< handled by elm_widget */
|
||||
{SIG_WIDGET_UNFOCUSED, ""}, /**< handled by elm_widget */
|
||||
{NULL, NULL}
|
||||
|
|
|
@ -42,6 +42,7 @@
|
|||
* the radio objects within the group of radio objects that work together.
|
||||
* @li @c "focused" - When the radio has received focus. (since 1.8)
|
||||
* @li @c "unfocused" - When the radio has lost focus. (since 1.8)
|
||||
* @li @c "language,changed" - the program's language changed (since 1.9)
|
||||
*
|
||||
* Default text parts of the radio widget that you can use for are:
|
||||
* @li "default" - Label of the radio
|
||||
|
|
|
@ -17,6 +17,7 @@ EAPI Eo_Op ELM_OBJ_SEGMENT_CONTROL_BASE_ID = EO_NOOP;
|
|||
static const char SIG_CHANGED[] = "changed";
|
||||
static const Evas_Smart_Cb_Description _smart_callbacks[] = {
|
||||
{SIG_CHANGED, ""},
|
||||
{SIG_WIDGET_LANG_CHANGED, ""}, /**< handled by elm_widget */
|
||||
{NULL, NULL}
|
||||
};
|
||||
|
||||
|
|
|
@ -29,6 +29,7 @@
|
|||
* - @c "changed" - When the user clicks on a segment item which is not
|
||||
* previously selected and get selected. The event_info parameter is the
|
||||
* segment item pointer.
|
||||
* - @c "language,changed" - the program's language changed (since 1.9)
|
||||
*
|
||||
* Available styles for it:
|
||||
* - @c "default"
|
||||
|
|
|
@ -39,6 +39,7 @@ static const Evas_Smart_Cb_Description _smart_callbacks[] = {
|
|||
{SIG_DELAY_CHANGED, ""},
|
||||
{SIG_DRAG_START, ""},
|
||||
{SIG_DRAG_STOP, ""},
|
||||
{SIG_WIDGET_LANG_CHANGED, ""}, /**< handled by elm_widget */
|
||||
{SIG_WIDGET_FOCUSED, ""}, /**< handled by elm_widget */
|
||||
{SIG_WIDGET_UNFOCUSED, ""}, /**< handled by elm_widget */
|
||||
{NULL, NULL}
|
||||
|
|
|
@ -44,6 +44,7 @@
|
|||
* the value change.
|
||||
* - @c "focused" - When the slider has received focus. (since 1.8)
|
||||
* - @c "unfocused" - When the slider has lost focus. (since 1.8)
|
||||
* - @c "language,changed" - the program's language changed (since 1.9)
|
||||
*
|
||||
* Available styles for it:
|
||||
* - @c "default"
|
||||
|
|
|
@ -20,6 +20,7 @@ static const char SIG_TRANSITION_END[] = "transition,end";
|
|||
static const Evas_Smart_Cb_Description _smart_callbacks[] = {
|
||||
{SIG_CHANGED, ""},
|
||||
{SIG_TRANSITION_END, ""},
|
||||
{SIG_WIDGET_LANG_CHANGED, ""}, /**< handled by elm_widget */
|
||||
{SIG_WIDGET_FOCUSED, ""}, /**< handled by elm_widget */
|
||||
{SIG_WIDGET_UNFOCUSED, ""}, /**< handled by elm_widget */
|
||||
{NULL, NULL}
|
||||
|
|
|
@ -59,6 +59,7 @@
|
|||
* in callback contains the current visible item
|
||||
* - @c "focused" - When the slideshow has received focus. (since 1.8)
|
||||
* - @c "unfocused" - When the slideshow has lost focus. (since 1.8)
|
||||
* - @c "language,changed" - the program's language changed (since 1.9)
|
||||
*
|
||||
* Supported @c elm_object_item common APIs.
|
||||
* @li @ref elm_object_item_del
|
||||
|
|
Loading…
Reference in New Issue