Hi,
I am ok with this commit but I would like to rename it because "right" must
be not "right".
Any idea @raster?

And you have to check moving the pointer out of the object item.
It's better to check genlist's dragging state as well.
And add the same thing to gengrid.

Thanks.

Daniel Juyung Seo (SeoZ)


On Sat, Dec 27, 2014 at 1:30 AM, Dave Andreoli <[email protected]>
wrote:

> davemds pushed a commit to branch master.
>
>
> http://git.enlightenment.org/core/elementary.git/commit/?id=4a0bfb3bab151b174e3e98d9e1d69ff44b9a899e
>
> commit 4a0bfb3bab151b174e3e98d9e1d69ff44b9a899e
> Author: Dave Andreoli <[email protected]>
> Date:   Fri Dec 26 17:29:51 2014 +0100
>
>     Genlist: added the clicked,right event on items
>
>     @feature
> ---
>  src/lib/elm_genlist.c | 4 ++++
>  src/lib/elm_genlist.h | 2 ++
>  2 files changed, 6 insertions(+)
>
> diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c
> index 624a226..338e491 100644
> --- a/src/lib/elm_genlist.c
> +++ b/src/lib/elm_genlist.c
> @@ -43,6 +43,7 @@
>  #define ELM_PRIV_GENLIST_SIGNALS(cmd) \
>      cmd(SIG_ACTIVATED, "activated", "") \
>      cmd(SIG_CLICKED_DOUBLE, "clicked,double", "") \
> +    cmd(SIG_CLICKED_RIGHT, "clicked,right", "") \
>      cmd(SIG_SELECTED, "selected", "") \
>      cmd(SIG_UNSELECTED, "unselected", "") \
>      cmd(SIG_EXPANDED, "expanded", "") \
> @@ -4649,6 +4650,9 @@ _item_mouse_up_cb(void *data,
>     Eina_Bool dragged = EINA_FALSE;
>     Elm_Gen_Item *it = data;
>
> +   if (ev->button == 3)
> +     evas_object_smart_callback_call(WIDGET(it), SIG_CLICKED_RIGHT,
> EO_OBJ(it));
> +
>     if (ev->button != 1) return;
>     it->down = EINA_FALSE;
>     ELM_GENLIST_DATA_GET_FROM_ITEM(it, sd);
> diff --git a/src/lib/elm_genlist.h b/src/lib/elm_genlist.h
> index af6f06f..2e4b82f 100644
> --- a/src/lib/elm_genlist.h
> +++ b/src/lib/elm_genlist.h
> @@ -278,6 +278,8 @@
>   *   parameter is the item that was released.
>   * - @c "clicked,double" - The user has double-clicked an item.  The @c
>   *   event_info parameter is the item that was double-clicked.
> + * - @c "clicked,right" - The user has right-clicked an item.  The @c
> + *   event_info parameter is the item that was right-clicked. (since 1.13)
>   * - @c "selected" - This is called when a user has made an item selected.
>   *   The event_info parameter is the genlist item that was selected.
>   * - @c "unselected" - This is called when a user has made an item
>
> --
>
>
>
------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to