Very good job!
I'll join you :)

Daniel Juyung Seo (SeoZ)
On Apr 16, 2011 2:05 AM, "Enlightenment SVN" <no-re...@enlightenment.org>
wrote:
> Log:
>
> elementary/image, icon - updated signal callback table
>
>
>
> Author: hermet
> Date: 2011-04-15 10:05:34 -0700 (Fri, 15 Apr 2011)
> New Revision: 58693
> Trac: http://trac.enlightenment.org/e/changeset/58693
>
> Modified:
> trunk/elementary/src/lib/elm_icon.c trunk/elementary/src/lib/elm_image.c
>
> Modified: trunk/elementary/src/lib/elm_icon.c
> ===================================================================
> --- trunk/elementary/src/lib/elm_icon.c 2011-04-15 17:01:39 UTC (rev
58692)
> +++ trunk/elementary/src/lib/elm_icon.c 2011-04-15 17:05:34 UTC (rev
58693)
> @@ -48,6 +48,14 @@
> 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 @@
> {
> 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);
> }
>
> /**
>
> Modified: trunk/elementary/src/lib/elm_image.c
> ===================================================================
> --- trunk/elementary/src/lib/elm_image.c 2011-04-15 17:01:39 UTC (rev
58692)
> +++ trunk/elementary/src/lib/elm_image.c 2011-04-15 17:05:34 UTC (rev
58693)
> @@ -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 _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 @@
> 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);
> }
>
> /**
>
>
>
------------------------------------------------------------------------------
> Benefiting from Server Virtualization: Beyond Initial Workload
> Consolidation -- Increasing the use of server virtualization is a top
> priority.Virtualization can reduce costs, simplify management, and improve

> application availability and disaster protection. Learn more about
boosting
> the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
> _______________________________________________
> enlightenment-svn mailing list
> enlightenment-...@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-svn
------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to