Leif Middelschulte <leif.middelschu...@gmail.com> wrote:

>Am 01.10.2012 um 09:32 schrieb Enlightenment SVN
><no-re...@enlightenment.org>:
>
>> Log:
>> E (RandR): Update mouse pointer when over the thumbnail to indicate
>>  move is possible.
>Though, that's nice for desktop monitors, it's bad for touch screens
>(e.g. tablets) :-/
>At least make it themable via some data flag in the edc or alike.
>
>--
>Leif
>> 
>>  NB: Preparation for monitor moving.
>> 
>> 
>> 
>> Author:       devilhorns
>> Date:         2012-10-01 00:32:57 -0700 (Mon, 01 Oct 2012)
>> New Revision: 77243
>> Trac:         http://trac.enlightenment.org/e/changeset/77243
>> 
>> Modified:
>>  trunk/e/src/modules/conf_randr/e_smart_monitor.c 
>> 
>> Modified: trunk/e/src/modules/conf_randr/e_smart_monitor.c
>> ===================================================================
>> --- trunk/e/src/modules/conf_randr/e_smart_monitor.c 2012-10-01
>07:30:06 UTC (rev 77242)
>> +++ trunk/e/src/modules/conf_randr/e_smart_monitor.c 2012-10-01
>07:32:57 UTC (rev 77243)
>> @@ -99,6 +99,9 @@
>> static void _e_smart_cb_indicator_mouse_out(void *data __UNUSED__,
>Evas_Object *obj, const char *emission __UNUSED__, const char *source
>__UNUSED__);
>> static void _e_smart_cb_indicator_toggle(void *data, Evas_Object *obj
>__UNUSED__, const char *emission __UNUSED__, const char *source
>__UNUSED__);
>> static void _e_smart_cb_frame_mouse_move(void *data, Evas *evas
>__UNUSED__, Evas_Object *obj __UNUSED__, void *event);
>> +static void _e_smart_cb_thumb_mouse_in(void *data __UNUSED__, Evas
>*evas __UNUSED__, Evas_Object *obj, void *event __UNUSED__);
>> +static void _e_smart_cb_thumb_mouse_out(void *data __UNUSED__, Evas
>*evas __UNUSED__, Evas_Object *obj, void *event __UNUSED__);
>> +static void _e_smart_cb_thumb_mouse_down(void *data __UNUSED__, Evas
>*evas __UNUSED__, Evas_Object *obj, void *event __UNUSED__);
>> static void _e_smart_cb_thumb_mouse_up(void *data, Evas *evas
>__UNUSED__, Evas_Object *obj __UNUSED__, void *event);
>> static int _e_smart_cb_modes_sort(const void *data1, const void
>*data2);
>> 
>> @@ -359,8 +362,14 @@
>>    /* create bg preview */
>>    sd->o_thumb = e_livethumb_add(evas);
>>    edje_object_part_swallow(sd->o_frame, "e.swallow.preview",
>sd->o_thumb);
>> +   evas_object_event_callback_add(sd->o_thumb,
>EVAS_CALLBACK_MOUSE_IN, 
>> +                                  _e_smart_cb_thumb_mouse_in, obj);
>> +   evas_object_event_callback_add(sd->o_thumb,
>EVAS_CALLBACK_MOUSE_OUT, 
>> +                                  _e_smart_cb_thumb_mouse_out, obj);
>>    evas_object_event_callback_add(sd->o_thumb,
>EVAS_CALLBACK_MOUSE_UP, 
>>                                   _e_smart_cb_thumb_mouse_up, obj);
>> +   evas_object_event_callback_add(sd->o_thumb,
>EVAS_CALLBACK_MOUSE_DOWN, 
>> +                                  _e_smart_cb_thumb_mouse_down,
>obj);
>> 
>>    /* create monitor stand */
>>    sd->o_stand = edje_object_add(evas);
>> @@ -787,6 +796,39 @@
>> }
>> 
>> static void 
>> +_e_smart_cb_thumb_mouse_in(void *data __UNUSED__, Evas *evas
>__UNUSED__, Evas_Object *obj, void *event __UNUSED__)
>> +{
>> +   E_Manager *man;
>> +
>> +   man = e_manager_current_get();
>> +   e_pointer_type_push(man->pointer, obj, "hand");
>> +}
>> +
>> +static void 
>> +_e_smart_cb_thumb_mouse_out(void *data __UNUSED__, Evas *evas
>__UNUSED__, Evas_Object *obj, void *event __UNUSED__)
>> +{
>> +   E_Manager *man;
>> +
>> +   man = e_manager_current_get();
>> +   e_pointer_type_pop(man->pointer, obj, "hand");
>> +}
>> +
>> +static void 
>> +_e_smart_cb_thumb_mouse_down(void *data __UNUSED__, Evas *evas
>__UNUSED__, Evas_Object *obj, void *event __UNUSED__)
>> +{
>> +   Evas_Event_Mouse_Up *ev;
>> +
>> +   ev = event;
>> +   if (ev->button == 1)
>> +     {
>> +        E_Manager *man;
>> +
>> +        man = e_manager_current_get();
>> +        e_pointer_type_push(man->pointer, obj, "move");
>> +     }
>> +}
>> +
>> +static void 
>> _e_smart_cb_thumb_mouse_up(void *data, Evas *evas __UNUSED__,
>Evas_Object *obj __UNUSED__, void *event)
>> {
>>    Evas_Object *mon;
>> @@ -828,6 +870,13 @@
>>                }
>>           }
>>      }
>> +   else if (ev->button == 1)
>> +     {
>> +        E_Manager *man;
>> +
>> +        man = e_manager_current_get();
>> +        e_pointer_type_pop(man->pointer, obj, "move");
>> +     }
>> }
>> 
>> static int 
>> 
>> 
>>
>------------------------------------------------------------------------------
>> Got visibility?
>> Most devs has no idea what their production app looks like.
>> Find out how fast your code is with AppDynamics Lite.
>> http://ad.doubleclick.net/clk;262219671;13503038;y?
>> http://info.appdynamics.com/FreeJavaPerformanceDownload.html
>> _______________________________________________
>> enlightenment-svn mailing list
>> enlightenment-...@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/enlightenment-svn
>
>
>------------------------------------------------------------------------------
>Got visibility?
>Most devs has no idea what their production app looks like.
>Find out how fast your code is with AppDynamics Lite.
>http://ad.doubleclick.net/clk;262219671;13503038;y?
>http://info.appdynamics.com/FreeJavaPerformanceDownload.html
>_______________________________________________
>enlightenment-devel mailing list
>enlightenment-devel@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

I dont it is going to matter much tho as the whole purpose to this is to set 
the mouse pointer. On touch screens you are not going to have a pointer to 
change anyway :) But I do see your point ;) I'll give this some thought

dh
-- 
Sent from my Android phone with K-9.

------------------------------------------------------------------------------
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to