This should be in every widget, not just here. Isn't it the case? There should be a base implementation that recursively broadcasts it
--Gustavo Sent from my iPhone On 19/08/2013, at 05:10, ChunEon Park - Enlightenment Git <no-re...@enlightenment.org> wrote: > hermet pushed a commit to branch master. > > commit cf40baeaf4c04a7513767372e5cd11e2b11a9751 > Author: ChunEon Park <her...@hermet.pe.kr> > Date: Mon Aug 19 17:10:01 2013 +0900 > > elementary/popup - support "language,chagned" smart callback. > --- > ChangeLog | 4 ++++ > NEWS | 1 + > src/lib/elc_popup.c | 3 +++ > src/lib/elc_popup.h | 1 + > 4 files changed, 9 insertions(+) > > diff --git a/ChangeLog b/ChangeLog > index b424df7..e63d26d 100644 > --- a/ChangeLog > +++ b/ChangeLog > @@ -1558,3 +1558,7 @@ > > * Mapbuf: Ensure that content size calculation is correctly finished > because the mapbuf is willing to block the size calculation forcely. > + > +2013-08-19 ChunEon Park (Hermet) > + > + * Popup: Support "language,changed" smart callback. > diff --git a/NEWS b/NEWS > index 7a95670..e9abab7 100644 > --- a/NEWS > +++ b/NEWS > @@ -126,6 +126,7 @@ Improvements: > * Show magnifier when selection handlers are pressed or moved. > * Change the method to calculate a distance which be scrolled from linear > to sine curve. > * Add support for URL in Elm_Image and Elm_Photocam. > + * Popup: Support "language,changed" smart callback. > > Fixes: > * Now elm_datetime_field_limit_set() can set year limits wihtout problems. > diff --git a/src/lib/elc_popup.c b/src/lib/elc_popup.c > index e3b23e1..a98d1e2 100644 > --- a/src/lib/elc_popup.c > +++ b/src/lib/elc_popup.c > @@ -22,6 +22,7 @@ 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_LANG_CHANGED[] = "language,changed"; > > static const Evas_Smart_Cb_Description _smart_callbacks[] = { > {SIG_BLOCK_CLICKED, ""}, > @@ -44,6 +45,8 @@ _elm_popup_smart_translate(Eo *obj EINA_UNUSED, void *_pd > EINA_UNUSED, va_list * > EINA_LIST_FOREACH(sd->items, l, it) > elm_widget_item_translate(it); > > + evas_object_smart_callback_call(obj, SIG_LANG_CHANGED, NULL); > + > if (ret) *ret = EINA_TRUE; > } > > diff --git a/src/lib/elc_popup.h b/src/lib/elc_popup.h > index 9841fce..f04675a 100644 > --- a/src/lib/elc_popup.h > +++ b/src/lib/elc_popup.h > @@ -72,6 +72,7 @@ > * @li @c "block,clicked" - whenever user taps on Blocked Event area. > * @li @c "focused" - When the popup has received focus. (since 1.8) > * @li @c "unfocused" - When the popup has lost focus. (since 1.8) > + * @li "language,changed" - the program's language changed (since 1.8) > * > * Styles available for Popup > * @li "default" > > -- > > ------------------------------------------------------------------------------ > Get 100% visibility into Java/.NET code with AppDynamics Lite! > It's a free troubleshooting tool designed for production. > Get down to code-level detail for bottlenecks, with <2% overhead. > Download for free and get started troubleshooting in minutes. > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk ------------------------------------------------------------------------------ Get 100% visibility into Java/.NET code with AppDynamics Lite! It's a free troubleshooting tool designed for production. Get down to code-level detail for bottlenecks, with <2% overhead. Download for free and get started troubleshooting in minutes. http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel