From: mike_m Date: Wed, 29 Jun 2011 06:41:10 +0000 (+0000) Subject: elementary: Add hooks to set label get/set functions X-Git-Tag: REL_F_I9200_20110722_1~8^2~50^2~59 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9097736d34261300d679394ff85e930e31590664;p=framework%2Fuifw%2Felementary.git elementary: Add hooks to set label get/set functions Signed-off-by: Mike McCormack git-svn-id: https://svn.enlightenment.org/svn/e/trunk/elementary@60796 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/elm_widget.c b/src/lib/elm_widget.c index cca3b53..fde7ed7 100644 --- a/src/lib/elm_widget.c +++ b/src/lib/elm_widget.c @@ -73,7 +73,7 @@ struct _Smart_Data void (*on_label_set_func)(Evas_Object *obj, const char *item, const char *text); - const char *(*on_label_get_func)(Evas_Object *obj, + const char *(*on_label_get_func)(const Evas_Object *obj, const char *item); void *data; Evas_Coord rx, ry, rw, rh; @@ -483,6 +483,25 @@ elm_widget_event_hook_set(Evas_Object *obj, } EAPI void +elm_widget_label_set_hook_set(Evas_Object *obj, + void (*func)(Evas_Object *obj, + const char *item, + const char *text)) +{ + API_ENTRY return; + sd->on_label_set_func = func; +} + +EAPI void +elm_widget_label_get_hook_set(Evas_Object *obj, + const char *(*func)(const Evas_Object *obj, + const char *item)) +{ + API_ENTRY return; + sd->on_label_get_func = func; +} + +EAPI void elm_widget_changed_hook_set(Evas_Object *obj, void (*func)(Evas_Object *obj)) { diff --git a/src/lib/elm_widget.h b/src/lib/elm_widget.h index dcc2048..4745caf 100644 --- a/src/lib/elm_widget.h +++ b/src/lib/elm_widget.h @@ -228,6 +228,8 @@ EAPI void elm_widget_on_focus_hook_set(Evas_Object *obj, void (*func EAPI void elm_widget_on_change_hook_set(Evas_Object *obj, void (*func) (void *data, Evas_Object *obj), void *data); EAPI void elm_widget_on_show_region_hook_set(Evas_Object *obj, void (*func) (void *data, Evas_Object *obj), void *data); EAPI void elm_widget_focus_region_hook_set(Evas_Object *obj, void (*func) (Evas_Object *obj, Evas_Coord x, Evas_Coord y, Evas_Coord w, Evas_Coord h)); +EAPI void elm_widget_label_set_hook_set(Evas_Object *obj, void (*func)(Evas_Object *obj, const char *item, const char *text)); +EAPI void elm_widget_label_get_hook_set(Evas_Object *obj, const char *(*func)(const Evas_Object *obj, const char *item)); EAPI void elm_widget_on_focus_region_hook_set(Evas_Object *obj, void (*func) (const Evas_Object *obj, Evas_Coord *x, Evas_Coord *y, Evas_Coord *w, Evas_Coord *h)); EAPI void elm_widget_data_set(Evas_Object *obj, void *data); EAPI void *elm_widget_data_get(const Evas_Object *obj);