elementary/image, icon - updated signal callback table

SVN revision: 58693
This commit is contained in:
ChunEon Park 2011-04-15 17:05:34 +00:00
parent 86df49c4da
commit 89787877e8
2 changed files with 18 additions and 3 deletions

View File

@ -48,6 +48,14 @@ static void _mouse_up(void *data, Evas *e, Evas_Object *obj, void *event_info);
static Eina_Bool _icon_standard_set(Widget_Data *wd, Evas_Object *obj, const char *name);
static Eina_Bool _icon_freedesktop_set(Widget_Data *wd, Evas_Object *obj, const char *name, int size);
static const char SIG_CLICKED[] = "clicked";
static const Evas_Smart_Cb_Description _signals[] = {
{SIG_CLICKED, ""},
{NULL, NULL}
};
//FIXME: move this code to ecore
#ifdef _WIN32
static Eina_Bool
@ -168,7 +176,7 @@ _mouse_up(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void *eve
{
Evas_Event_Mouse_Up *ev = event_info;
if (ev->event_flags & EVAS_EVENT_FLAG_ON_HOLD) return;
evas_object_smart_callback_call(data, "clicked", event_info);
evas_object_smart_callback_call(data, SIG_CLICKED, event_info);
}
/**

View File

@ -12,7 +12,6 @@
* Signals that you can add callbacks for are:
*
* "clicked" - This is called when a user has clicked the image
* "drop" - Something has been dropped on the image
*/
typedef struct _Widget_Data Widget_Data;
@ -33,6 +32,14 @@ static void _theme_hook(Evas_Object *obj);
static void _sizing_eval(Evas_Object *obj);
static void _mouse_up(void *data, Evas *e, Evas_Object *obj, void *event_info);
static const char SIG_CLICKED[] = "clicked";
static const Evas_Smart_Cb_Description _signals[] = {
{SIG_CLICKED, ""},
{NULL, NULL}
};
static void
_del_hook(Evas_Object *obj)
{
@ -96,7 +103,7 @@ _sizing_eval(Evas_Object *obj)
static void
_mouse_up(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
evas_object_smart_callback_call(data, "clicked", NULL);
evas_object_smart_callback_call(data, SIG_CLICKED, NULL);
}
/**