seoz pushed a commit to branch master.
commit c279c0a05f2f525248f53b224a67ea682268a648
Author: Daniel Juyung Seo <[email protected]>
Date: Mon Jun 10 14:37:47 2013 +0900
panel, video, web, web2: added focused, unfocused smart callback
documentation.
---
src/lib/elm_panel.c | 9 ++++++++-
src/lib/elm_panel.h | 5 +++++
src/lib/elm_video.c | 9 ++++++++-
src/lib/elm_video.h | 5 +++++
src/lib/elm_web.c | 2 ++
src/lib/elm_web.h | 2 ++
src/lib/elm_web2.c | 2 ++
7 files changed, 32 insertions(+), 2 deletions(-)
diff --git a/src/lib/elm_panel.c b/src/lib/elm_panel.c
index 7756f94..addeb54 100644
--- a/src/lib/elm_panel.c
+++ b/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/src/lib/elm_panel.h b/src/lib/elm_panel.h
index 749dc44..6bf3853 100644
--- a/src/lib/elm_panel.h
+++ b/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/src/lib/elm_video.c b/src/lib/elm_video.c
index 57b47fa..a9a9698 100644
--- a/src/lib/elm_video.c
+++ b/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/src/lib/elm_video.h b/src/lib/elm_video.h
index e65c804..1562090 100644
--- a/src/lib/elm_video.h
+++ b/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/src/lib/elm_web.c b/src/lib/elm_web.c
index ae08fa0..e5076a8 100644
--- a/src/lib/elm_web.c
+++ b/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/src/lib/elm_web.h b/src/lib/elm_web.h
index daa484d..bdad362 100644
--- a/src/lib/elm_web.h
+++ b/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/src/lib/elm_web2.c b/src/lib/elm_web2.c
index ac9d99e..cc10a4a 100644
--- a/src/lib/elm_web2.c
+++ b/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 }
};
--
------------------------------------------------------------------------------
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