From 681b283c601ed7d6fd242f485630c13d62be2b7e Mon Sep 17 00:00:00 2001 From: Daniel Juyung Seo Date: Wed, 29 Feb 2012 04:50:20 +0000 Subject: [PATCH] elm check: Reviewed check APIs. OK for check. Signed-off-by: Daniel Juyung Seo SVN revision: 68532 --- src/lib/Elementary.h.in | 4 ++-- src/lib/elm_check.c | 25 ++++++++++++++----------- src/lib/elm_check.h | 10 +++++----- 3 files changed, 21 insertions(+), 18 deletions(-) diff --git a/src/lib/Elementary.h.in b/src/lib/Elementary.h.in index 3139bd7..2b331ed 100644 --- a/src/lib/Elementary.h.in +++ b/src/lib/Elementary.h.in @@ -181,8 +181,8 @@ EAPI extern Elm_Version *elm_version; #include // XXX: comments in elm_bubble.h #include // OK #include // XXX: comments in elm_cache.h -#include -#include +#include // XXX: comments in elm_calendar.h. review was not finished. +#include // OK #include #include // XXX: comments in elm_cnp.h #include diff --git a/src/lib/elm_check.c b/src/lib/elm_check.c index daab8bc..68f258d 100644 --- a/src/lib/elm_check.c +++ b/src/lib/elm_check.c @@ -13,26 +13,29 @@ struct _Widget_Data }; static const char *widtype = NULL; +static Eina_Bool _event_hook(Evas_Object *obj, Evas_Object *src, + Evas_Callback_Type type, void *event_info); static void _del_hook(Evas_Object *obj); static void _mirrored_set(Evas_Object *obj, Eina_Bool rtl); static void _theme_hook(Evas_Object *obj); static void _disable_hook(Evas_Object *obj); static void _sizing_eval(Evas_Object *obj); -static void _changed_size_hints(void *data, Evas *e, Evas_Object *obj, void *event_info); +static void _changed_size_hints(void *data, Evas *e, Evas_Object *obj, + void *event_info); static void _sub_del(void *data, Evas_Object *obj, void *event_info); -static void _signal_check_off(void *data, Evas_Object *obj, const char *emission, const char *source); -static void _signal_check_on(void *data, Evas_Object *obj, const char *emission, const char *source); -static void _signal_check_toggle(void *data, Evas_Object *obj, const char *emission, const char *source); +static void _signal_check_off(void *data, Evas_Object *obj, + const char *emission, const char *source); +static void _signal_check_on(void *data, Evas_Object *obj, + const char *emission, const char *source); +static void _signal_check_toggle(void *data, Evas_Object *obj, + const char *emission, const char *source); static void _on_focus_hook(void *data, Evas_Object *obj); static void _activate_hook(Evas_Object *obj); -static void _content_set_hook(Evas_Object *obj, const char *part, Evas_Object *content); +static void _content_set_hook(Evas_Object *obj, const char *part, + Evas_Object *content); static Evas_Object *_content_get_hook(const Evas_Object *obj, const char *part); static Evas_Object *_content_unset_hook(Evas_Object *obj, const char *part); - static void _activate(Evas_Object *obj); -static Eina_Bool _event_hook(Evas_Object *obj, Evas_Object *src, - Evas_Callback_Type type, void *event_info); - static const char SIG_CHANGED[] = "changed"; static const Evas_Smart_Cb_Description _signals[] = { {SIG_CHANGED, ""}, @@ -40,7 +43,8 @@ static const Evas_Smart_Cb_Description _signals[] = { }; static Eina_Bool -_event_hook(Evas_Object *obj, Evas_Object *src __UNUSED__, Evas_Callback_Type type, void *event_info) +_event_hook(Evas_Object *obj, Evas_Object *src __UNUSED__, + Evas_Callback_Type type, void *event_info) { if (type != EVAS_CALLBACK_KEY_DOWN) return EINA_FALSE; Evas_Event_Key_Down *ev = event_info; @@ -55,7 +59,6 @@ _event_hook(Evas_Object *obj, Evas_Object *src __UNUSED__, Evas_Callback_Type ty return EINA_TRUE; } - static void _del_hook(Evas_Object *obj) { diff --git a/src/lib/elm_check.h b/src/lib/elm_check.h index 6158d76..a524dad 100644 --- a/src/lib/elm_check.h +++ b/src/lib/elm_check.h @@ -20,8 +20,8 @@ * for it to modify. * * Signals that you can add callbacks for are: - * "changed" - This is called whenever the user changes the state of one of - * the check object(event_info is NULL). + * "changed" - This is called whenever the user changes the state of the check + * objects(event_info is NULL). * * Default content parts of the check widget that you can use for are: * @li "icon" - An icon of the check @@ -59,9 +59,9 @@ EAPI Evas_Object * elm_check_add(Evas_Object *parent); * @param obj The check object * @param state The state to use (1 == on, 0 == off) * - * This sets the state of the check. If set - * with elm_check_state_pointer_set() the state of that variable is also - * changed. Calling this @b doesn't cause the "changed" signal to be emitted. + * This sets the state of the check. If set with elm_check_state_pointer_set() + * the state of that variable is also changed. Calling this @b doesn't cause + * the "changed" signal to be emitted. */ EAPI void elm_check_state_set(Evas_Object *obj, Eina_Bool state); -- 2.7.4