forked from enlightenment/efl
elementary/glview - support "language,changed" callback
SVN revision: 83839
This commit is contained in:
parent
8fb8b83f89
commit
d8500f43f4
|
@ -984,3 +984,8 @@
|
||||||
2013-02-07 Jaehwan Kim
|
2013-02-07 Jaehwan Kim
|
||||||
|
|
||||||
* Add smart callback signals of a scroller. "vbar,drag", "vbar,press", "vbar,unpress", "hbar,drag", "hbar,press", "hbar,unpress".
|
* Add smart callback signals of a scroller. "vbar,drag", "vbar,press", "vbar,unpress", "hbar,drag", "hbar,press", "hbar,unpress".
|
||||||
|
|
||||||
|
2013-02-13 ChunEon Park (Hermet)
|
||||||
|
|
||||||
|
* GLview supports "language,changed" smart callback.
|
||||||
|
|
||||||
|
|
|
@ -33,6 +33,7 @@ Additions:
|
||||||
* Add elm_index_delay_change_time_set/get for changing delay change time in index.
|
* Add elm_index_delay_change_time_set/get for changing delay change time in index.
|
||||||
* Add elm_index smart callback - "language,changed".
|
* Add elm_index smart callback - "language,changed".
|
||||||
* Add smart callback signals of a scroller. "vbar,drag", "vbar,press", "vbar,unpress", "hbar,drag", "hbar,press", "hbar,unpress".
|
* Add smart callback signals of a scroller. "vbar,drag", "vbar,press", "vbar,unpress", "hbar,drag", "hbar,press", "hbar,unpress".
|
||||||
|
* Add elm_glview smart callback - "language,changed".
|
||||||
|
|
||||||
Improvements:
|
Improvements:
|
||||||
|
|
||||||
|
|
|
@ -10,14 +10,25 @@ EAPI Eo_Op ELM_OBJ_GLVIEW_BASE_ID = EO_NOOP;
|
||||||
|
|
||||||
static const char SIG_FOCUSED[] = "focused";
|
static const char SIG_FOCUSED[] = "focused";
|
||||||
static const char SIG_UNFOCUSED[] = "unfocused";
|
static const char SIG_UNFOCUSED[] = "unfocused";
|
||||||
|
static const char SIG_LANG_CHANGED[] = "language,changed";
|
||||||
|
|
||||||
/* smart callbacks coming from elm glview objects: */
|
/* smart callbacks coming from elm glview objects: */
|
||||||
static const Evas_Smart_Cb_Description _smart_callbacks[] = {
|
static const Evas_Smart_Cb_Description _smart_callbacks[] = {
|
||||||
{SIG_FOCUSED, ""},
|
{SIG_FOCUSED, ""},
|
||||||
{SIG_UNFOCUSED, ""},
|
{SIG_UNFOCUSED, ""},
|
||||||
|
{SIG_LANG_CHANGED, ""},
|
||||||
{NULL, NULL}
|
{NULL, NULL}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static void
|
||||||
|
_elm_glview_smart_translate(Eo *obj, void *_pd EINA_UNUSED, va_list *list)
|
||||||
|
{
|
||||||
|
Eina_Bool *ret = va_arg(*list, Eina_Bool *);
|
||||||
|
evas_object_smart_callback_call(obj, SIG_LANG_CHANGED, NULL);
|
||||||
|
|
||||||
|
if (ret) *ret = EINA_TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_elm_glview_smart_on_focus(Eo *obj, void *_pd EINA_UNUSED, va_list *list)
|
_elm_glview_smart_on_focus(Eo *obj, void *_pd EINA_UNUSED, va_list *list)
|
||||||
{
|
{
|
||||||
|
@ -562,6 +573,7 @@ _class_constructor(Eo_Class *klass)
|
||||||
EO_OP_FUNC(EVAS_OBJ_SMART_ID(EVAS_OBJ_SMART_SUB_ID_RESIZE), _elm_glview_smart_resize),
|
EO_OP_FUNC(EVAS_OBJ_SMART_ID(EVAS_OBJ_SMART_SUB_ID_RESIZE), _elm_glview_smart_resize),
|
||||||
|
|
||||||
EO_OP_FUNC(ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_ON_FOCUS), _elm_glview_smart_on_focus),
|
EO_OP_FUNC(ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_ON_FOCUS), _elm_glview_smart_on_focus),
|
||||||
|
EO_OP_FUNC(ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_TRANSLATE), _elm_glview_smart_translate),
|
||||||
|
|
||||||
EO_OP_FUNC(ELM_OBJ_GLVIEW_ID(ELM_OBJ_GLVIEW_SUB_ID_GL_API_GET), _gl_api_get),
|
EO_OP_FUNC(ELM_OBJ_GLVIEW_ID(ELM_OBJ_GLVIEW_SUB_ID_GL_API_GET), _gl_api_get),
|
||||||
EO_OP_FUNC(ELM_OBJ_GLVIEW_ID(ELM_OBJ_GLVIEW_SUB_ID_MODE_SET), _mode_set),
|
EO_OP_FUNC(ELM_OBJ_GLVIEW_ID(ELM_OBJ_GLVIEW_SUB_ID_MODE_SET), _mode_set),
|
||||||
|
|
|
@ -14,6 +14,7 @@
|
||||||
* @ref GLView:
|
* @ref GLView:
|
||||||
* - @c "focused" - when glview has received focus.
|
* - @c "focused" - when glview has received focus.
|
||||||
* - @c "unfocused" - when glview has lost focus.
|
* - @c "unfocused" - when glview has lost focus.
|
||||||
|
* - @c "language,changed" - the program's language changed
|
||||||
*
|
*
|
||||||
* Below is an illustrative example of how to use GLView and and OpenGL
|
* Below is an illustrative example of how to use GLView and and OpenGL
|
||||||
* to render in elementary environment.
|
* to render in elementary environment.
|
||||||
|
|
Loading…
Reference in New Issue