From a5066a57472c17ba9ffa6735bd64d5ca9722a95f Mon Sep 17 00:00:00 2001 From: Daniel Juyung Seo Date: Mon, 10 Jun 2013 14:37:47 +0900 Subject: [PATCH] panel, video, web, web2: added focused, unfocused smart callback documentation. --- legacy/elementary/src/lib/elm_panel.c | 9 ++++++++- legacy/elementary/src/lib/elm_panel.h | 5 +++++ legacy/elementary/src/lib/elm_video.c | 9 ++++++++- legacy/elementary/src/lib/elm_video.h | 5 +++++ legacy/elementary/src/lib/elm_web.c | 2 ++ legacy/elementary/src/lib/elm_web.h | 2 ++ legacy/elementary/src/lib/elm_web2.c | 2 ++ 7 files changed, 32 insertions(+), 2 deletions(-) diff --git a/legacy/elementary/src/lib/elm_panel.c b/legacy/elementary/src/lib/elm_panel.c index 7756f94859..addeb54a6b 100644 --- a/legacy/elementary/src/lib/elm_panel.c +++ b/legacy/elementary/src/lib/elm_panel.c @@ -13,6 +13,12 @@ EAPI Eo_Op ELM_OBJ_PANEL_BASE_ID = EO_NOOP; #define MY_CLASS_NAME "elm_panel" +static const Evas_Smart_Cb_Description _smart_callbacks[] = { + {"focused", ""}, /**< handled by elm_widget */ + {"unfocused", ""}, /**< handled by elm_widget */ + {NULL, NULL} +}; + static void _mirrored_set(Evas_Object *obj, Eina_Bool rtl) @@ -415,7 +421,8 @@ _constructor(Eo *obj, void *_pd EINA_UNUSED, va_list *list EINA_UNUSED) { eo_do_super(obj, MY_CLASS, eo_constructor()); eo_do(obj, - evas_obj_type_set(MY_CLASS_NAME)); + evas_obj_type_set(MY_CLASS_NAME), + evas_obj_smart_callbacks_descriptions_set(_smart_callbacks, NULL)); elm_widget_sub_object_add(eo_parent_get(obj), obj); } diff --git a/legacy/elementary/src/lib/elm_panel.h b/legacy/elementary/src/lib/elm_panel.h index 749dc4413e..6bf385390a 100644 --- a/legacy/elementary/src/lib/elm_panel.h +++ b/legacy/elementary/src/lib/elm_panel.h @@ -21,6 +21,11 @@ * This widget inherits from the @ref Layout one, so that all the * functions acting on it also work for panel objects (@since 1.8). * + * This widget emits the following signals, besides the ones sent from + * @ref Layout: + * @li @c "focused" : When the panel has received focus. (since 1.8) + * @li @c "unfocused" : When the panel has lost focus. (since 1.8) + * * Default content parts of the panel widget that you can use are: * @li @c "default" - A content of the panel * diff --git a/legacy/elementary/src/lib/elm_video.c b/legacy/elementary/src/lib/elm_video.c index 57b47fa3a9..a9a9698925 100644 --- a/legacy/elementary/src/lib/elm_video.c +++ b/legacy/elementary/src/lib/elm_video.c @@ -21,6 +21,12 @@ EAPI Eo_Op ELM_OBJ_VIDEO_BASE_ID = EO_NOOP; #define MY_CLASS_NAME "elm_video" +static const Evas_Smart_Cb_Description _smart_callbacks[] = { + {"focused", ""}, /**< handled by elm_widget */ + {"unfocused", ""}, /**< handled by elm_widget */ + {NULL, NULL} +}; + static void _elm_video_smart_event(Eo *obj, void *_pd EINA_UNUSED, va_list *list) { @@ -311,7 +317,8 @@ _constructor(Eo *obj, void *_pd EINA_UNUSED, va_list *list EINA_UNUSED) #ifdef HAVE_EMOTION eo_do_super(obj, MY_CLASS, eo_constructor()); eo_do(obj, - evas_obj_type_set(MY_CLASS_NAME)); + evas_obj_type_set(MY_CLASS_NAME), + evas_obj_smart_callbacks_descriptions_set(_smart_callbacks, NULL)); elm_widget_sub_object_add(eo_parent_get(obj), obj); #else diff --git a/legacy/elementary/src/lib/elm_video.h b/legacy/elementary/src/lib/elm_video.h index e65c804e6d..1562090f98 100644 --- a/legacy/elementary/src/lib/elm_video.h +++ b/legacy/elementary/src/lib/elm_video.h @@ -29,6 +29,11 @@ * Both widgets inherit from the @ref Layout one, so that all the * functions acting on it also work for video objects. * + * This widget emits the following signals, besides the ones sent from + * @ref Layout: + * @li @c "focused" : When the video has received focus. (since 1.8) + * @li @c "unfocused" : When the video has lost focus. (since 1.8) + * * The player widget emits the following signals, besides the ones * sent from @ref Layout: * - @c "forward,clicked" - the user clicked the forward button. diff --git a/legacy/elementary/src/lib/elm_web.c b/legacy/elementary/src/lib/elm_web.c index ae08fa01e8..e5076a8938 100644 --- a/legacy/elementary/src/lib/elm_web.c +++ b/legacy/elementary/src/lib/elm_web.c @@ -74,6 +74,8 @@ static const Evas_Smart_Cb_Description _elm_web_smart_callbacks[] = { { "view,resized", "" }, { "windows,close,request", ""}, { "zoom,animated,end", "" }, + { "focused", ""}, /**< handled by elm_widget */ + { "unfocused", ""}, /**< handled by elm_widget */ { NULL, NULL } }; diff --git a/legacy/elementary/src/lib/elm_web.h b/legacy/elementary/src/lib/elm_web.h index daa484d962..bdad362e3c 100644 --- a/legacy/elementary/src/lib/elm_web.h +++ b/legacy/elementary/src/lib/elm_web.h @@ -74,6 +74,8 @@ * @li "windows,close,request": A JavaScript request to close the current * window was requested * @li "zoom,animated,end": Animated zoom finished + * @li "focused" : When the web has received focus. (since 1.8) + * @li "unfocused" : When the web has lost focus. (since 1.8) * * available styles: * - default diff --git a/legacy/elementary/src/lib/elm_web2.c b/legacy/elementary/src/lib/elm_web2.c index ac9d99eb3b..cc10a4af06 100644 --- a/legacy/elementary/src/lib/elm_web2.c +++ b/legacy/elementary/src/lib/elm_web2.c @@ -21,6 +21,8 @@ static Ewk_View_Smart_Class _ewk_view_parent_sc = static const Evas_Smart_Cb_Description _elm_web_smart_callbacks[] = { { "url,changed", "s" }, + { "focused", ""}, /**< handled by elm_widget */ + { "unfocused", ""}, /**< handled by elm_widget */ { NULL, NULL } };