On Wed, Jul 18, 2007 at 12:56:17AM -0300, Gustavo Sverzut Barbieri wrote:
> On 7/18/07, Brian Mattern <[EMAIL PROTECTED]> wrote:
>> On Tue, Jul 17, 2007 at 06:15:51PM -0300, Gustavo Sverzut Barbieri wrote:
>> > Notice that edje property is no_mouse_grab, because then we can keep
>> > compatibility with existent .edj files.
>> >
>> > I don't like evas_object_mouse_grab_set() very much, it looks like
>> > mouse will be immediately grab, which is not the case. But I don't
>> > have any better word for that.
>> <snip>
>> > +   EAPI void              evas_object_mouse_grab_set        
>> (Evas_Object *obj, Evas_Bool no_mouse_grab);
>> > +   EAPI Evas_Bool         evas_object_mouse_grab_get        
>> (Evas_Object *obj);
>>
>>
>> Maybe evas_object_auto_grab_set(Evas_Object *obj, Evas_Bool auto_grab) ?
>> (or _mouse_auto_grab_)
>
> it's not that better... other suggestions?
>
> can_grab_mouse?

That makes even less sense. Maybe "grab" isn't a good choice. Really
we're picking between two alternate methods of presenting mouse events.
So, maybe evas_object_mouse_event_mode_set(obj, EVAS_EVENT_MODE_XXXXX)

I'm at a loss atm as to what the two names should be though. (Maybe
ORIGINAL and RAW... not happy with those...)

>
>
>> Whatever we call it, the second parameter should NOT be no_*. It should
>> be TRUE for "grab the mouse", and simply default to TRUE.
>
> yes, I agree, but how about edje files? Can I rely on people updating
> their edje files? Remember that edje files will not be recompiled
> since they have not changed, users may issue "make clean" to get it
> updated.

For edje files, you either need compatibility code (where the version is
checked on load and the value is set properly), OR you can just make the
edje option 'negative' (it doesn't have to be the same as the c api).
However, with the above suggestion for an API, the 'original' mode would
just be equal to 0. 

Brian


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to