[E-devel] Edje EXTERNAL example: video player
For those interested in learning Edje and wonder what is the so called external support, here is a small demo video player that I wrote entirely in Emotion. You need the last Emotion to get the position in slider. PS: I'm not in the mood for wiki, if you are please add it there somewhere :-) /* Super-concise video player example using Edje/Emotion/Elementary. This is all in Edje by means of type:EXTERNAL, you don't need any C code other than emotion and edje installed with edje_external support enabled. Compile: edje_cc emotion-elementary-externals.edc Run: edje_player emotion-elementary-externals.edj */ collections { group { name: main; externals { /* declare the modules you want to load */ external: emotion; /* video player engine */ external: elm; /* toolkit/widgets */ } parts { part { name: bg; /* dark gray rectangle as background */ type: RECT; description { state: default 0.0; color: 64 64 64 255; } } part { name: video; /* video object */ type: EXTERNAL; source: emotion; description { state: default 0.0; } } part { name: title; type: TEXT; effect: SOFT_SHADOW; description { state: default 0.0; color: 255 255 255 255; color3: 0 0 0 255; align: 0.5 0.0; rel1 { relative: 0.0 0.0; offset: 10 2; } rel2 { relative: 1.0 0.0; offset: -11 10; } text { font: Sans:style=Bold; align: 0.5 0.0; size: 10; min: 0 1; text: ; } } } part { name: controls-clipper; /* clipper to control visibility */ type: RECT; description { state: default 0.0; color: 255 255 255 32; } description { state: visible 0.0; color: 255 255 255 255; } } part { name: controls-bg; /* controls background as semi-transparent black at bottom edge */ type: RECT; clip_to: controls-clipper; description { state: default 0.0; color: 0 0 0 128; rel1 { relative: 0.0 1.0; offset: 0 -40; } rel2 { relative: 1.0 1.0; offset: -1 -1; } } } part { name: play; /* play button at bottom-left (relative to controls-bg) */ type: EXTERNAL; source: elm/button; clip_to: controls-clipper; description { state: default 0.0; rel1 { relative: 0.0 0.0; offset: 0 0; to: controls-bg; } rel2 { relative: 0.0 1.0; offset: 50 -1; to: controls-bg; } params.string: icon apps; } } part { name: open; /* open file button next to play button */ type: EXTERNAL; source: elm/fileselector_button; clip_to: controls-clipper; description { state: default 0.0; rel1 { relative: 0.0 0.0; offset: 52 0; to: controls-bg; } rel2 { relative: 0.0 1.0; offset: 102 -1; to: controls-bg; } params.string: icon folder; } } part { name: time; /* time/progress */ type: EXTERNAL; source: elm/slider; clip_to: controls-clipper; description { state: default 0.0; rel1 { relative: 0.0 0.0; offset: 104 0; to: controls-bg; } rel2 { relative: 1.0 1.0; offset: -1 -1; to: controls-bg; } } } part { name: controls-eventarea; /* event area so we catch mouse in and out, repeat events so buttons get them */ type: RECT; repeat_events: 1; description { state: default 0.0; color: 255 255 255 0; /* fully transparent as we don't need any visual feedback */ rel1.to: controls-bg; rel2.to: controls-bg; } } programs { /* animated 0.2 linear fade in/out if mouse is over controls */ program { signal: mouse,in; source:
Re: [E-devel] E SVN: lucas IN trunk/ecore: . src/lib/ecore
On Mon, 27 Sep 2010, Enlightenment SVN wrote: Log: Make ecore_time_get and friends use monotonic clock Instead of relying on unix time, use a monotonic clock provided by clock_gettime(). If a monotonic clock is not available, it will fallback to CLOCK_REALTIME or unix time if neither is available. The impact is that now it only makes sense to call ecore_time_get() or ecore_time_loop_get() if the value retrieved is intended to be used as relative to previous/posterior measurements. If an absolute value is needed, the right function to call now is ecore_time_unix_get() which will give the number of seconds since Jan 1st, 1970, 12:00AM. Author: lucas Date: 2010-09-27 15:35:35 -0700 (Mon, 27 Sep 2010) New Revision: 52824 Modified: trunk/ecore/configure.ac trunk/ecore/src/lib/ecore/Ecore.h trunk/ecore/src/lib/ecore/Makefile.am trunk/ecore/src/lib/ecore/ecore.c trunk/ecore/src/lib/ecore/ecore_private.h trunk/ecore/src/lib/ecore/ecore_time.c Modified: trunk/ecore/configure.ac === --- trunk/ecore/configure.ac 2010-09-27 22:34:25 UTC (rev 52823) +++ trunk/ecore/configure.ac 2010-09-27 22:35:35 UTC (rev 52824) @@ -404,18 +404,30 @@ mingw32ce* | cegcc*) WIN32_LIBS=-lws2 dlopen_libs=-ldl + rt_libs=-lrt ;; mingw*) WIN32_LIBS=-lws2_32 dlopen_libs=-ldl + rt_libs=-lrt ;; *) AC_CHECK_LIB(dl, dlopen, dlopen_libs=-ldl) + AC_CHECK_LIB(rt, clock_gettime, rt_libs=-lrt) ;; esac AC_SUBST(WIN32_LIBS) AC_SUBST(dlopen_libs) +AC_SUBST(rt_libs) +if test -n $rt_libs; then + _bkp_LDFLAGS=$LDFLAGS + LDFLAGS=$LDFLAGS $rt_libs + AC_CHECK_FUNCS(clock_gettime) + LDFLAGS=$_bkp_LDFLAGS + unset $_bkp_LDFLAGS +fi Why is this check needed, btw ? AC_CHECK_LIB(rt,...) above should be sufficient Vincent + # Eina library PKG_CHECK_MODULES(EINA, [eina = 1.0.0]) Modified: trunk/ecore/src/lib/ecore/Ecore.h === --- trunk/ecore/src/lib/ecore/Ecore.h 2010-09-27 22:34:25 UTC (rev 52823) +++ trunk/ecore/src/lib/ecore/Ecore.h 2010-09-27 22:35:35 UTC (rev 52824) @@ -445,6 +445,7 @@ EAPI double ecore_time_get(void); + EAPI double ecore_time_unix_get(void); EAPI double ecore_loop_time_get(void); EAPI Ecore_Timer *ecore_timer_add(double in, Ecore_Task_Cb func, const void *data); Modified: trunk/ecore/src/lib/ecore/Makefile.am === --- trunk/ecore/src/lib/ecore/Makefile.am 2010-09-27 22:34:25 UTC (rev 52823) +++ trunk/ecore/src/lib/ecore/Makefile.am 2010-09-27 22:35:35 UTC (rev 52824) @@ -45,7 +45,7 @@ endif -libecore_la_LIBADD = @dlopen_libs@ @EINA_LIBS@ @EVIL_LIBS@ @GLIB_LIBS@ @WIN32_LIBS@ @LTLIBINTL@ @EFL_PTHREAD_LIBS@ -lm +libecore_la_LIBADD = @dlopen_libs@ @EINA_LIBS@ @EVIL_LIBS@ @GLIB_LIBS@ @WIN32_LIBS@ @LTLIBINTL@ @EFL_PTHREAD_LIBS@ @rt_libs@ -lm libecore_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -version-info @version_info@ @release_info@ EXTRA_DIST = ecore_private.h Modified: trunk/ecore/src/lib/ecore/ecore.c === --- trunk/ecore/src/lib/ecore/ecore.c 2010-09-27 22:34:25 UTC (rev 52823) +++ trunk/ecore/src/lib/ecore/ecore.c 2010-09-27 22:35:35 UTC (rev 52824) @@ -117,7 +117,7 @@ _ecore_thread_init(); _ecore_glib_init(); _ecore_job_init(); - _ecore_loop_time = ecore_time_get(); + _ecore_time_init(); #if HAVE_MALLINFO if (getenv(ECORE_MEM_STAT)) Modified: trunk/ecore/src/lib/ecore/ecore_private.h === --- trunk/ecore/src/lib/ecore/ecore_private.h 2010-09-27 22:34:25 UTC (rev 52823) +++ trunk/ecore/src/lib/ecore/ecore_private.h 2010-09-27 22:35:35 UTC (rev 52824) @@ -117,6 +117,8 @@ EAPI void _ecore_magic_fail(const void *d, Ecore_Magic m, Ecore_Magic req_m, const char *fname); +void _ecore_time_init(void); + void _ecore_timer_shutdown(void); void _ecore_timer_cleanup(void); void _ecore_timer_enable_new(void); Modified: trunk/ecore/src/lib/ecore/ecore_time.c === --- trunk/ecore/src/lib/ecore/ecore_time.c2010-09-27 22:34:25 UTC (rev 52823) +++ trunk/ecore/src/lib/ecore/ecore_time.c2010-09-27 22:35:35 UTC (rev 52824) @@ -15,21 +15,63 @@ #include Ecore.h #include ecore_private.h +#include time.h +#if HAVE_CLOCK_GETTIME +static clockid_t _ecore_time_clock_id = -1; +#endif +double _ecore_loop_time = -1.0; -/* FIXME: clock_gettime() is an option... */ - /** * Retrieves the current system time as a floating point value in seconds. * - * Also see ecore_loop_time_get(). + * This uses a monotonic clock and thus never goes
Re: [E-devel] E SVN: lucas IN trunk/ecore: . src/lib/ecore
On Tue, 28 Sep 2010 07:49:32 +0200 (CEST) Vincent Torri vto...@univ-evry.fr said: On Tue, 28 Sep 2010, Carsten Haitzler (The Rasterman) wrote: On Mon, 27 Sep 2010 19:47:36 -0300 Lucas De Marchi lucas.demar...@profusion.mobi said: On Mon, Sep 27, 2010 at 7:35 PM, Enlightenment SVN no-re...@enlightenment.org wrote: Log: Make ecore_time_get and friends use monotonic clock Instead of relying on unix time, use a monotonic clock provided by clock_gettime(). If a monotonic clock is not available, it will fallback to CLOCK_REALTIME or unix time if neither is available. The impact is that now it only makes sense to call ecore_time_get() or ecore_time_loop_get() if the value retrieved is intended to be used as relative to previous/posterior measurements. If an absolute value is needed, the right function to call now is ecore_time_unix_get() which will give the number of seconds since Jan 1st, 1970, 12:00AM. This is the monotonic clock in svn, and ecore_time_get and ecore_loop_time_get are properly implemented now. I fixed most of the cases where they were used when an absolute time was needed. Hopefully all in EFL are fixed, but since the list is somewhat big, please make some checks and give it some love. I fixed a couple of issues in E-MODULES-EXTRA, but I didn't bother to going through all the modules and fixing them all. If it's not working and all you want is the previous behavior, just change the calls ecore_time_get() and ecore_loop_time_get() to ecore_time_unix_get(). I think that before beta we should rename ecore_loop_time_get() to ecore_time_loop_get() to keep the namespace as the other similar functions. i don't think thats possible anymore. thats a very invasive change and LOTS of code will need to change - outside our own svn, to adapt. i say no to this due to sheer practical considerations :( and adding just a #define of this new function and putting a deprecated warning on the other ? #define i'm fine with. or even a full function that simply calls the other internally - ok. but no removale or deprecation of current one. we are not going to deprecate it now... just before a stable release. in a few years - maybe. -- - Codito, ergo sum - I code, therefore I am -- The Rasterman (Carsten Haitzler)ras...@rasterman.com -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] Edje EXTERNAL example: video player
On Tue, Sep 28, 2010 at 3:08 AM, Gustavo Sverzut Barbieri barbi...@profusion.mobi wrote: For those interested in learning Edje and wonder what is the so called external support, here is a small demo video player that I wrote entirely in Emotion. You need the last Emotion to get the position in slider. PS: I'm not in the mood for wiki, if you are please add it there somewhere :-) Me thinks it's worth some blogging somehow comparing to Qt QML, isn't it? ;) /* Super-concise video player example using Edje/Emotion/Elementary. This is all in Edje by means of type:EXTERNAL, you don't need any C code other than emotion and edje installed with edje_external support enabled. Compile: edje_cc emotion-elementary-externals.edc Run: edje_player emotion-elementary-externals.edj */ collections { group { name: main; externals { /* declare the modules you want to load */ external: emotion; /* video player engine */ external: elm; /* toolkit/widgets */ } parts { part { name: bg; /* dark gray rectangle as background */ type: RECT; description { state: default 0.0; color: 64 64 64 255; } } part { name: video; /* video object */ type: EXTERNAL; source: emotion; description { state: default 0.0; } } part { name: title; type: TEXT; effect: SOFT_SHADOW; description { state: default 0.0; color: 255 255 255 255; color3: 0 0 0 255; align: 0.5 0.0; rel1 { relative: 0.0 0.0; offset: 10 2; } rel2 { relative: 1.0 0.0; offset: -11 10; } text { font: Sans:style=Bold; align: 0.5 0.0; size: 10; min: 0 1; text: ; } } } part { name: controls-clipper; /* clipper to control visibility */ type: RECT; description { state: default 0.0; color: 255 255 255 32; } description { state: visible 0.0; color: 255 255 255 255; } } part { name: controls-bg; /* controls background as semi-transparent black at bottom edge */ type: RECT; clip_to: controls-clipper; description { state: default 0.0; color: 0 0 0 128; rel1 { relative: 0.0 1.0; offset: 0 -40; } rel2 { relative: 1.0 1.0; offset: -1 -1; } } } part { name: play; /* play button at bottom-left (relative to controls-bg) */ type: EXTERNAL; source: elm/button; clip_to: controls-clipper; description { state: default 0.0; rel1 { relative: 0.0 0.0; offset: 0 0; to: controls-bg; } rel2 { relative: 0.0 1.0; offset: 50 -1; to: controls-bg; } params.string: icon apps; } } part { name: open; /* open file button next to play button */ type: EXTERNAL; source: elm/fileselector_button; clip_to: controls-clipper; description { state: default 0.0; rel1 { relative: 0.0 0.0; offset: 52 0; to: controls-bg; } rel2 { relative: 0.0 1.0; offset: 102 -1; to: controls-bg; } params.string: icon folder; } } part { name: time; /* time/progress */ type: EXTERNAL; source: elm/slider; clip_to: controls-clipper; description { state: default 0.0; rel1 { relative: 0.0 0.0; offset: 104 0; to: controls-bg; } rel2 { relative: 1.0 1.0; offset: -1 -1; to: controls-bg; } } } part { name: controls-eventarea; /* event area so we catch mouse in and out, repeat events so buttons get them */ type: RECT; repeat_events: 1; description { state: default 0.0; color: 255 255 255 0; /* fully transparent as we don't need any visual feedback */ rel1.to: controls-bg; rel2.to: controls-bg; }
[E-devel] evas xrender and configure
Hello, The --disable-x11-xrender is not working in the release tarball (from the downloads page). It still tries to link although switch is given to configure. I have not checked the newest svn, therefore, it may be fixed by now, but just wanted to report it just in case. Cheers, Ryan -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] evas xrender and configure
On Tue, 28 Sep 2010, Ryan Raasch wrote: Hello, The --disable-x11-xrender is not working in the release tarball (from the downloads page). It still tries to link although switch is given to configure. I have not checked the newest svn, therefore, it may be fixed by now, but just wanted to report it just in case. raster had to link against xrender for the gl engine. Vincent -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] Edje EXTERNAL example: video player
On Tue, Sep 28, 2010 at 10:22 AM, Eduardo Lima (Etrunko) ebl...@gmail.com wrote: On Tue, Sep 28, 2010 at 3:08 AM, Gustavo Sverzut Barbieri barbi...@profusion.mobi wrote: For those interested in learning Edje and wonder what is the so called external support, here is a small demo video player that I wrote entirely in Emotion. You need the last Emotion to get the position in slider. PS: I'm not in the mood for wiki, if you are please add it there somewhere :-) Me thinks it's worth some blogging somehow comparing to Qt QML, isn't it? ;) 200% agreed, 0% time to do it! I finished this around 2:30am... What I'd really want is more people to blog more about EFL. I've noticed that EXTERNAL is not even known by most, and actually it was even hard for me, the dude that created it, to figure out what to do due lack of examples. Of course Editje helps there, at least I got the first version using it, then it was just to read edc reference to figure out the PARAM_COPY and PARAM_SET. -- Gustavo Sverzut Barbieri http://profusion.mobi embedded systems -- MSN: barbi...@gmail.com Skype: gsbarbieri Mobile: +55 (19) 9225-2202 -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] E SVN: glima IN trunk/TMP/st/elementary: data/themes src/bin src/lib
* Enlightenment SVN no-re...@enlightenment.org [2010-09-28 08:09:20 -0700]: Forgot to mention this comes from a set of contributions to Elementary from Samsung Electronics. Patch revised and modified by Profusion Embedded Systems. Log: New API functions for elm slider. EAPI void elm_slider_end_set(Evas_Object *obj, Evas_Object *end); will set a *right* aligned sub-object relative to the slider. EAPI const Evas_Object *elm_slider_end_get(const Evas_Object *obj); Getter for that object. EAPI Evas_Object *elm_slider_end_unset(Evas_Object *obj); Unparent a previously set end object. EAPI Evas_Object *elm_slider_icon_unset(Evas_Object *obj); The same for the icon sub-object. EAPI void elm_slider_indicator_show_set(Evas_Object *obj, Eina_Bool show); EAPI Eina_Bool elm_slider_indicator_show_get(const Evas_Object *obj); Set/get whether the slider should display the augmented knob (indicator) at mouse drag at all. Author: glima Date: 2010-09-28 08:09:19 -0700 (Tue, 28 Sep 2010) New Revision: 52852 Modified: trunk/TMP/st/elementary/data/themes/default.edc trunk/TMP/st/elementary/src/bin/test_slider.c trunk/TMP/st/elementary/src/lib/Elementary.h.in trunk/TMP/st/elementary/src/lib/elm_slider.c Modified: trunk/TMP/st/elementary/data/themes/default.edc === --- trunk/TMP/st/elementary/data/themes/default.edc 2010-09-28 14:15:23 UTC (rev 52851) +++ trunk/TMP/st/elementary/data/themes/default.edc 2010-09-28 15:09:19 UTC (rev 52852) @@ -11311,6 +11311,40 @@ image: sl_bt2_2.png COMP; image: sl_units.png COMP; } + script { + public value_hide = 0; + public set_value_show() { +set_int(value_hide, 0); + } + public set_value_hide() { +set_int(value_hide, 1); + } + public thumb_down() { +if (get_int(value_hide) == 1) { + set_state(PART:elm.indicator, default, 0.0); + set_state(PART:button3, default, 0.0); + set_state(PART:button4, default, 0.0); + set_state(PART:button5, default, 0.0); + set_state(PART:button6, default, 0.0); + set_state(PART:button7, default, 0.0); +} else { + set_state(PART:elm.indicator, visible, 0.0); + set_state(PART:button3, visible, 0.0); + set_state(PART:button4, visible, 0.0); + set_state(PART:button5, visible, 0.0); + set_state(PART:button6, visible, 0.0); + set_state(PART:button7, visible, 0.0); +} + } + public thumb_up() { +set_state(PART:elm.indicator, default, 0.0); +set_state(PART:button3, default, 0.0); +set_state(PART:button4, default, 0.0); +set_state(PART:button5, default, 0.0); +set_state(PART:button6, default, 0.0); +set_state(PART:button7, default, 0.0); + } + } parts { part { name: base; mouse_events: 0; @@ -11409,7 +11443,7 @@ } } } - part { name: elm.swallow.content; + part { name: elm.swallow.icon; type: SWALLOW; description { state: default 0.0; visible: 0; @@ -11440,10 +11474,10 @@ visible: 0; fixed: 1 1; align: 0.0 0.5; -rel1.to_x: elm.swallow.content; +rel1.to_x: elm.swallow.icon; rel1.relative: 1.0 0.0; rel1.offset: -1 4; -rel2.to_x: elm.swallow.content; +rel2.to_x: elm.swallow.icon; rel2.relative: 1.0 1.0; rel2.offset: -1 -5; color: 0 0 0 255; @@ -11462,6 +11496,31 @@ rel2.offset: 0 -5; } } + part { +name: elm.swallow.end; +type: SWALLOW; + description { + state: default 0.0; +visible: 0; +align: 1.0 0.5; +rel1 { + offset: -4 0; + relative: 1.0 0.0; + to_y: elm.swallow.bar; + } +rel2 { + offset: -3 -1; + to_y: elm.swallow.bar; + } + } + description { state: visible 0.0; +inherit: default 0.0; +visible: 1; +aspect: 1.0 1.0; +aspect_preference: VERTICAL; +rel2.offset: -4 -1; + } + } part { name: units; mouse_events: 0; description { state: default 0.0; @@ -11470,6 +11529,10 @@ to_x: elm.units; offset: 0 5; } +
Re: [E-devel] E SVN: glima IN trunk/TMP/st/elementary/src: bin lib
* Enlightenment SVN no-re...@enlightenment.org [2010-09-27 12:52:56 -0700]: Forgot to mention this comes from a set of contributions to Elementary from Samsung Electronics. Patch revised and modified by Profusion Embedded Systems. Log: Elm notify's new signal: timeout. Also changing elm_notify_timeout_set()'s behavior: it won't init the timer itself, unless there was a previous one running. Author: glima Date: 2010-09-27 12:52:56 -0700 (Mon, 27 Sep 2010) New Revision: 52810 Modified: trunk/TMP/st/elementary/src/bin/test_notify.c trunk/TMP/st/elementary/src/lib/Elementary.h.in trunk/TMP/st/elementary/src/lib/elm_notify.c Modified: trunk/TMP/st/elementary/src/bin/test_notify.c === --- trunk/TMP/st/elementary/src/bin/test_notify.c 2010-09-27 19:37:09 UTC (rev 52809) +++ trunk/TMP/st/elementary/src/bin/test_notify.c 2010-09-27 19:52:56 UTC (rev 52810) @@ -5,6 +5,11 @@ _bt(void *data, Evas_Object *obj, void *event_info) { Evas_Object *notify = data; + int timeout = elm_notify_timeout_get(notify); + + if (timeout 0) + elm_notify_timer_init(notify); + evas_object_show(notify); } @@ -15,6 +20,18 @@ evas_object_hide(notify); } +static void +_notify_timeout(void *data, Evas_Object *obj, void *event_info) +{ + printf(Notify timed out!\n); +} + +static void +_notify_block(void *data, Evas_Object *obj, void *event_info) +{ + printf(Notify block area clicked!!\n); +} + void test_notify(void *data, Evas_Object *obj, void *event_info) { @@ -64,6 +81,8 @@ evas_object_size_hint_weight_set(notify, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); elm_notify_orient_set(notify, ELM_NOTIFY_ORIENT_BOTTOM); elm_notify_timeout_set(notify, 5); + evas_object_smart_callback_add(notify, timeout, _notify_timeout, NULL); + evas_object_smart_callback_add(notify, block,clicked, _notify_block, NULL); bx = elm_box_add(win); elm_notify_content_set(notify, bx); @@ -92,6 +111,7 @@ evas_object_size_hint_weight_set(notify, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); elm_notify_orient_set(notify, ELM_NOTIFY_ORIENT_LEFT); elm_notify_timeout_set(notify, 10); + evas_object_smart_callback_add(notify, timeout, _notify_timeout, NULL); bx = elm_box_add(win); elm_notify_content_set(notify, bx); @@ -119,6 +139,7 @@ evas_object_size_hint_weight_set(notify, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); elm_notify_orient_set(notify, ELM_NOTIFY_ORIENT_CENTER); elm_notify_timeout_set(notify, 10); + evas_object_smart_callback_add(notify, timeout, _notify_timeout, NULL); bx = elm_box_add(win); elm_notify_content_set(notify, bx); Modified: trunk/TMP/st/elementary/src/lib/Elementary.h.in === --- trunk/TMP/st/elementary/src/lib/Elementary.h.in 2010-09-27 19:37:09 UTC (rev 52809) +++ trunk/TMP/st/elementary/src/lib/Elementary.h.in 2010-09-27 19:52:56 UTC (rev 52810) @@ -767,6 +767,8 @@ EAPI void elm_notify_repeat_events_set(Evas_Object *obj, Eina_Bool repeat); EAPI Eina_Boolelm_notify_repeat_events_get(const Evas_Object *obj); /* smart callbacks called: +* timeout - when timeout happens on notify and it's hidden +* block,clicked - when it's hidden by a click outside of the notify's view */ typedef enum _Elm_Hover_Axis Modified: trunk/TMP/st/elementary/src/lib/elm_notify.c === --- trunk/TMP/st/elementary/src/lib/elm_notify.c 2010-09-27 19:37:09 UTC (rev 52809) +++ trunk/TMP/st/elementary/src/lib/elm_notify.c 2010-09-27 19:52:56 UTC (rev 52810) @@ -37,6 +37,14 @@ static void _hide(void *data, Evas *e, Evas_Object *obj, void *event_info); static void _resize(void *data, Evas *e, Evas_Object *obj, void *event_info); +static const char SIG_BLOCK_CLICKED[] = block,clicked; +static const char SIG_TIMEOUT[] = timeout; +static const Evas_Smart_Cb_Description _signals[] = { + {SIG_BLOCK_CLICKED, }, + {SIG_TIMEOUT, }, + {NULL, NULL} +}; + static void _del_pre_hook(Evas_Object *obj) { @@ -161,7 +169,7 @@ { Widget_Data *wd = elm_widget_data_get(data); if (!wd) return; - evas_object_smart_callback_call(data, block,clicked, NULL); + evas_object_smart_callback_call(data, SIG_BLOCK_CLICKED, NULL); } static void @@ -238,6 +246,7 @@ if (!wd) return ECORE_CALLBACK_CANCEL; wd-timer = NULL; evas_object_hide(obj); + evas_object_smart_callback_call(obj, SIG_TIMEOUT, NULL); return ECORE_CALLBACK_CANCEL; } @@ -332,6 +341,8 @@ evas_object_event_callback_add(obj, EVAS_CALLBACK_HIDE, _hide, obj); _sizing_eval(obj); + + evas_object_smart_callbacks_descriptions_set(obj, _signals); return obj; } @@
Re: [E-devel] E SVN: englebass trunk/ecore
On Tue, 28 Sep 2010, Enlightenment SVN wrote: Log: libraries should be in LIBS, not LDFLAGS Author: englebass Date: 2010-09-28 11:12:15 -0700 (Tue, 28 Sep 2010) New Revision: 52857 Modified: trunk/ecore/configure.ac Modified: trunk/ecore/configure.ac === --- trunk/ecore/configure.ac 2010-09-28 18:02:15 UTC (rev 52856) +++ trunk/ecore/configure.ac 2010-09-28 18:12:15 UTC (rev 52857) @@ -421,11 +421,12 @@ AC_SUBST(rt_libs) if test -n $rt_libs; then - _bkp_LDFLAGS=$LDFLAGS - LDFLAGS=$LDFLAGS $rt_libs + echo hm $LIBS hm + _bkp_LIBS=$LIBS + LIBS=$LIBS $rt_libs AC_CHECK_FUNCS(clock_gettime) - LDFLAGS=$_bkp_LDFLAGS - unset _bkp_LDFLAGS + LIBS=$_bkp_LIBS + unset _bkp_LIBS fi remove that, please, it's useless Vincent # Eina library -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ enlightenment-svn mailing list enlightenment-...@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-svn -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] Edje EXTERNAL example: video player
Thats great. Thank you. 2010/9/28 Gustavo Sverzut Barbieri barbi...@profusion.mobi: On Tue, Sep 28, 2010 at 10:22 AM, Eduardo Lima (Etrunko) ebl...@gmail.com wrote: On Tue, Sep 28, 2010 at 3:08 AM, Gustavo Sverzut Barbieri barbi...@profusion.mobi wrote: For those interested in learning Edje and wonder what is the so called external support, here is a small demo video player that I wrote entirely in Emotion. You need the last Emotion to get the position in slider. PS: I'm not in the mood for wiki, if you are please add it there somewhere :-) Me thinks it's worth some blogging somehow comparing to Qt QML, isn't it? ;) 200% agreed, 0% time to do it! I finished this around 2:30am... What I'd really want is more people to blog more about EFL. I've noticed that EXTERNAL is not even known by most, and actually it was even hard for me, the dude that created it, to figure out what to do due lack of examples. Of course Editje helps there, at least I got the first version using it, then it was just to read edc reference to figure out the PARAM_COPY and PARAM_SET. -- Gustavo Sverzut Barbieri http://profusion.mobi embedded systems -- MSN: barbi...@gmail.com Skype: gsbarbieri Mobile: +55 (19) 9225-2202 -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] E SVN: englebass trunk/ecore
On Tue, Sep 28, 2010 at 3:13 PM, Vincent Torri vto...@univ-evry.fr wrote: On Tue, 28 Sep 2010, Enlightenment SVN wrote: Log: libraries should be in LIBS, not LDFLAGS Author: englebass Date: 2010-09-28 11:12:15 -0700 (Tue, 28 Sep 2010) New Revision: 52857 Modified: trunk/ecore/configure.ac Modified: trunk/ecore/configure.ac === --- trunk/ecore/configure.ac 2010-09-28 18:02:15 UTC (rev 52856) +++ trunk/ecore/configure.ac 2010-09-28 18:12:15 UTC (rev 52857) @@ -421,11 +421,12 @@ AC_SUBST(rt_libs) if test -n $rt_libs; then - _bkp_LDFLAGS=$LDFLAGS - LDFLAGS=$LDFLAGS $rt_libs + echo hm $LIBS hm + _bkp_LIBS=$LIBS + LIBS=$LIBS $rt_libs AC_CHECK_FUNCS(clock_gettime) - LDFLAGS=$_bkp_LDFLAGS - unset _bkp_LDFLAGS + LIBS=$_bkp_LIBS + unset _bkp_LIBS fi remove that, please, it's useless Seems that removing this, HAVE_CLOCK_GETTIME is not defined. Lucas De Marchi -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] Edje EXTERNAL example: video player
See this tutorial http://dev.enlightenment.fr/~watchwolf/enki/index.php?option=com_contentview=articleid=3Itemid=17lang=en 2010/9/28 Christian K. waffenkl...@googlemail.com Thats great. Thank you. 2010/9/28 Gustavo Sverzut Barbieri barbi...@profusion.mobi: On Tue, Sep 28, 2010 at 10:22 AM, Eduardo Lima (Etrunko) ebl...@gmail.com wrote: On Tue, Sep 28, 2010 at 3:08 AM, Gustavo Sverzut Barbieri barbi...@profusion.mobi wrote: For those interested in learning Edje and wonder what is the so called external support, here is a small demo video player that I wrote entirely in Emotion. You need the last Emotion to get the position in slider. PS: I'm not in the mood for wiki, if you are please add it there somewhere :-) Me thinks it's worth some blogging somehow comparing to Qt QML, isn't it? ;) 200% agreed, 0% time to do it! I finished this around 2:30am... What I'd really want is more people to blog more about EFL. I've noticed that EXTERNAL is not even known by most, and actually it was even hard for me, the dude that created it, to figure out what to do due lack of examples. Of course Editje helps there, at least I got the first version using it, then it was just to read edc reference to figure out the PARAM_COPY and PARAM_SET. -- Gustavo Sverzut Barbieri http://profusion.mobi embedded systems -- MSN: barbi...@gmail.com Skype: gsbarbieri Mobile: +55 (19) 9225-2202 -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- Regards. -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] Edje EXTERNAL example: video player
Gustavo Sverzut Barbieri wrote: On Tue, Sep 28, 2010 at 10:22 AM, Eduardo Lima (Etrunko) ebl...@gmail.com wrote: On Tue, Sep 28, 2010 at 3:08 AM, Gustavo Sverzut Barbieri barbi...@profusion.mobi wrote: For those interested in learning Edje and wonder what is the so called external support, here is a small demo video player that I wrote entirely in Emotion. You need the last Emotion to get the position in slider. PS: I'm not in the mood for wiki, if you are please add it there somewhere :-) Me thinks it's worth some blogging somehow comparing to Qt QML, isn't it? ;) 200% agreed, 0% time to do it! I finished this around 2:30am... What I'd really want is more people to blog more about EFL. I've noticed that EXTERNAL is not even known by most, and actually it was even hard for me, the dude that created it, to figure out what to do Please refrain from taking credit for other people's work and ideas. Not only were you not the dude that created it, but in fact you had absolutely nothing to do with its creation. The edje EXTERNAL part was an idea I had many years ago (though I'd initially called it OBJECT after a similar notion in html), before you were even around 'eland'. It was an extension of the GROUP part notion. Brian Mattern and I further discussed the notions (along with other things) and it was Brian who eventually did the actual initial implementations for both GROUP and EXTERNAL. You've since further pushed and developed things, and that's very nice. But again, please refrain from taking credit for other people's work and ideas. due lack of examples. Of course Editje helps there, at least I got the first version using it, then it was just to read edc reference to figure out the PARAM_COPY and PARAM_SET. Mortgage Rates Hit 3.25% If you owe under $729k you probably qualify for Obama's Refi Program http://thirdpartyoffers.juno.com/TGL3141/4ca25a96f1e044a13st02duc -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
[E-devel] [PATCH] Python EFL patches.
Folks, here are a couple of patches that fix cross compiling Python EFL on my environment. Cheers, Eduardo. From f1bcdd2490c20858aa65b830a2e12e17bf32f415 Mon Sep 17 00:00:00 2001 From: Eduardo Felipe Castegnaro eduardofelip...@gmail.com Date: Tue, 28 Sep 2010 15:59:55 -0300 Subject: [PATCH 1/2] Add dbus-python requisite to python-e_dbus. DBus-python is a non-standard module of dbus, and can be located at a different directory than dbus. This was an implicit requisite. It's explicit now with this patch. --- BINDINGS/python/python-e_dbus/README |1 + BINDINGS/python/python-e_dbus/configure.ac |2 +- 2 files changed, 2 insertions(+), 1 deletions(-) diff --git a/BINDINGS/python/python-e_dbus/README b/BINDINGS/python/python-e_dbus/README index 6266fa0..1ff547d 100644 --- a/BINDINGS/python/python-e_dbus/README +++ b/BINDINGS/python/python-e_dbus/README @@ -4,6 +4,7 @@ REQUIREMENTS * E_Dbus = 1.0.0 + * D-Bus Python = 0.80 * Ecore = 1.0.0(indirect, E_DBus dependency) * D-Bus = 0.62 (indirect, E_DBus dependency) * Python = 2.4 diff --git a/BINDINGS/python/python-e_dbus/configure.ac b/BINDINGS/python/python-e_dbus/configure.ac index 4b11803..c93c994 100644 --- a/BINDINGS/python/python-e_dbus/configure.ac +++ b/BINDINGS/python/python-e_dbus/configure.ac @@ -62,7 +62,7 @@ else fi AC_SUBST(pkgconfig_requires_private) -pkgconfig_edbus_requires_libs=edbus = 1.0.0 +pkgconfig_edbus_requires_libs=dbus-python = 0.83, edbus = 1.0.0 AC_SUBST(pkgconfig_edbus_requires_libs) PKG_CHECK_MODULES([EDBUS], [$pkgconfig_edbus_requires_libs]) -- 1.7.3 From 24f06e21abea9a6258e3b77f490ff91eb3ec56ca Mon Sep 17 00:00:00 2001 From: Eduardo Felipe Castegnaro eduardofelip...@gmail.com Date: Tue, 28 Sep 2010 17:52:26 -0300 Subject: [PATCH 2/2] Add PYTHON_INCLUDES env variable for cross-compiling When cross-compiling Cython's generated code, host and target can have distinct python versions, located on separated directories. This patch adds the capability of defining an environment variable containing the location of the target's headers. Introspection using AM_CHECK_PYTHON_HEADERS is not possible as it cannot run the target's python (since it's another architecture). --- BINDINGS/python/python-e_dbus/README |4 BINDINGS/python/python-e_dbus/m4/python.m4 |4 BINDINGS/python/python-ecore/README|4 BINDINGS/python/python-ecore/m4/python.m4 |4 BINDINGS/python/python-edje/README |4 BINDINGS/python/python-edje/m4/python.m4 |4 BINDINGS/python/python-elementary/README |4 BINDINGS/python/python-elementary/m4/python.m4 |4 BINDINGS/python/python-emotion/README |4 BINDINGS/python/python-emotion/m4/python.m4|4 BINDINGS/python/python-ethumb/README |4 BINDINGS/python/python-ethumb/m4/python.m4 |4 BINDINGS/python/python-evas/README |4 BINDINGS/python/python-evas/m4/python.m4 |4 14 files changed, 56 insertions(+), 0 deletions(-) diff --git a/BINDINGS/python/python-e_dbus/README b/BINDINGS/python/python-e_dbus/README index 1ff547d..26ad615 100644 --- a/BINDINGS/python/python-e_dbus/README +++ b/BINDINGS/python/python-e_dbus/README @@ -34,3 +34,7 @@ variable to ./configure. The discovery of dependencies is done with pkg-config, thus all your packages must be properly accessible with such tool. Ensure your PKG_CONFIG_PATH and PKG_CONFIG_LIBDIR (cross-compiles) are configured! + +When cross-compiling, if your target's Python headers differ from your +host's headers, specify PYTHON_INCLUDES variable containing the +directory of the correct version of Python.h! diff --git a/BINDINGS/python/python-e_dbus/m4/python.m4 b/BINDINGS/python/python-e_dbus/m4/python.m4 index 3dd1aa6..02acac8 100644 --- a/BINDINGS/python/python-e_dbus/m4/python.m4 +++ b/BINDINGS/python/python-e_dbus/m4/python.m4 @@ -43,6 +43,9 @@ dnl function also defines PYTHON_INCLUDES AC_DEFUN([AM_CHECK_PYTHON_HEADERS], [AC_REQUIRE([AM_PATH_PYTHON]) AC_MSG_CHECKING(for headers required to compile python extensions) +if test -x $PYTHON_INCLUDES; then +PYTHON_INCLUDES=-I$PYTHON_INCLUDES +else dnl deduce PYTHON_INCLUDES py_prefix=`$PYTHON -c import sys; print sys.prefix` py_exec_prefix=`$PYTHON -c import sys; print sys.exec_prefix` @@ -54,6 +57,7 @@ if test $py_prefix != $py_exec_prefix; then PYTHON_INCLUDES=$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION} fi fi +fi AC_SUBST(PYTHON_INCLUDES) dnl check if the headers exist: save_CPPFLAGS=$CPPFLAGS diff --git a/BINDINGS/python/python-ecore/README b/BINDINGS/python/python-ecore/README index b83925e..e641ef8 100644 --- a/BINDINGS/python/python-ecore/README +++ b/BINDINGS/python/python-ecore/README @@ -34,3 +34,7 @@ variable to ./configure. The discovery of dependencies is done with pkg-config, thus all your packages
Re: [E-devel] Edje EXTERNAL example: video player
On Tue, Sep 28, 2010 at 6:14 PM, Jose Gonzalez jose_...@juno.com wrote: Gustavo Sverzut Barbieri wrote: On Tue, Sep 28, 2010 at 10:22 AM, Eduardo Lima (Etrunko) ebl...@gmail.com wrote: On Tue, Sep 28, 2010 at 3:08 AM, Gustavo Sverzut Barbieri barbi...@profusion.mobi wrote: For those interested in learning Edje and wonder what is the so called external support, here is a small demo video player that I wrote entirely in Emotion. You need the last Emotion to get the position in slider. PS: I'm not in the mood for wiki, if you are please add it there somewhere :-) Me thinks it's worth some blogging somehow comparing to Qt QML, isn't it? ;) 200% agreed, 0% time to do it! I finished this around 2:30am... What I'd really want is more people to blog more about EFL. I've noticed that EXTERNAL is not even known by most, and actually it was even hard for me, the dude that created it, to figure out what to do Please refrain from taking credit for other people's work and ideas. Not only were you not the dude that created it, but in fact you had absolutely nothing to do with its creation. AHAHAHAHAHAAH... and the dude comes from nowhere to cause some flamewars, let's go... The edje EXTERNAL part was an idea I had many years ago (though I'd initially called it OBJECT after a similar notion in html), before you were even around 'eland'. It was an extension of the GROUP part notion. Brian Mattern and I further discussed the notions (along with other things) and it was Brian who eventually did the actual initial implementations for both GROUP and EXTERNAL. You've since further pushed and developed things, and that's very nice. But again, please refrain from taking credit for other people's work and ideas. Okay, Mr. Jose IDEAS Gonzalez. Not only I helped Brian to get GROUP done, discussing and getting the signal forwarding to children done, but I was actually the one that came with the design of EXTERNAL as it is... AFAIR you were dreaming about some stupid solution along the lines of a completely new compiler like ETK dudes had, babbling that we should continue with ETK and all of that we already know. So until you show me any code that makes me realize you actually did something, I'm the one that did it. Because if I was to consider every idea you possibly though of, the whole world might happen to fit into that argument :-D -- Gustavo Sverzut Barbieri http://profusion.mobi embedded systems -- MSN: barbi...@gmail.com Skype: gsbarbieri Mobile: +55 (19) 9225-2202 -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] evas xrender and configure
On Tue, 28 Sep 2010 16:33:46 +0200 (CEST) Vincent Torri vto...@univ-evry.fr said: On Tue, 28 Sep 2010, Ryan Raasch wrote: Hello, The --disable-x11-xrender is not working in the release tarball (from the downloads page). It still tries to link although switch is given to configure. I have not checked the newest svn, therefore, it may be fixed by now, but just wanted to report it just in case. raster had to link against xrender for the gl engine. correct. that only disables the xrender engine. it's enabled if xrender exists. that reminds me. i should now disable by default it as its far behind software and gl engines now. -- - Codito, ergo sum - I code, therefore I am -- The Rasterman (Carsten Haitzler)ras...@rasterman.com -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] [PATCH] Python EFL patches.
On Tue, Sep 28, 2010 at 7:03 PM, Eduardo Felipe eduardofelip...@gmail.com wrote: Folks, here are a couple of patches that fix cross compiling Python EFL on my environment. all in, thanks! -- Gustavo Sverzut Barbieri http://profusion.mobi embedded systems -- MSN: barbi...@gmail.com Skype: gsbarbieri Mobile: +55 (19) 9225-2202 -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] E SVN: barbieri IN trunk/BINDINGS/python: python-e_dbus python-e_dbus/m4 python-ecore python-ecore/m4 python-edje python-edje/m4 python-elementary python-elementary/m4 python-emotion pyt
damn, my script did not parse the author :-( Patch by: Eduardo Felipe Castegnaro eduardofelipe87,gmail.com On Tue, Sep 28, 2010 at 8:17 PM, Enlightenment SVN no-re...@enlightenment.org wrote: Log: Add PYTHON_INCLUDES env variable for cross-compiling When cross-compiling Cython's generated code, host and target can have distinct python versions, located on separated directories. This patch adds the capability of defining an environment variable containing the location of the target's headers. Introspection using AM_CHECK_PYTHON_HEADERS is not possible as it cannot run the target's python (since it's another architecture). Author: barbieri Date: 2010-09-28 16:17:55 -0700 (Tue, 28 Sep 2010) New Revision: 52870 Modified: trunk/BINDINGS/python/python-e_dbus/README trunk/BINDINGS/python/python-e_dbus/m4/python.m4 trunk/BINDINGS/python/python-ecore/README trunk/BINDINGS/python/python-ecore/m4/python.m4 trunk/BINDINGS/python/python-edje/README trunk/BINDINGS/python/python-edje/m4/python.m4 trunk/BINDINGS/python/python-elementary/README trunk/BINDINGS/python/python-elementary/m4/python.m4 trunk/BINDINGS/python/python-emotion/README trunk/BINDINGS/python/python-emotion/m4/python.m4 trunk/BINDINGS/python/python-ethumb/README trunk/BINDINGS/python/python-ethumb/m4/python.m4 trunk/BINDINGS/python/python-evas/README trunk/BINDINGS/python/python-evas/m4/python.m4 Modified: trunk/BINDINGS/python/python-e_dbus/README === --- trunk/BINDINGS/python/python-e_dbus/README 2010-09-28 23:17:03 UTC (rev 52869) +++ trunk/BINDINGS/python/python-e_dbus/README 2010-09-28 23:17:55 UTC (rev 52870) @@ -34,3 +34,7 @@ The discovery of dependencies is done with pkg-config, thus all your packages must be properly accessible with such tool. Ensure your PKG_CONFIG_PATH and PKG_CONFIG_LIBDIR (cross-compiles) are configured! + +When cross-compiling, if your target's Python headers differ from your +host's headers, specify PYTHON_INCLUDES variable containing the +directory of the correct version of Python.h! Modified: trunk/BINDINGS/python/python-e_dbus/m4/python.m4 === --- trunk/BINDINGS/python/python-e_dbus/m4/python.m4 2010-09-28 23:17:03 UTC (rev 52869) +++ trunk/BINDINGS/python/python-e_dbus/m4/python.m4 2010-09-28 23:17:55 UTC (rev 52870) @@ -43,6 +43,9 @@ AC_DEFUN([AM_CHECK_PYTHON_HEADERS], [AC_REQUIRE([AM_PATH_PYTHON]) AC_MSG_CHECKING(for headers required to compile python extensions) +if test -x $PYTHON_INCLUDES; then +PYTHON_INCLUDES=-I$PYTHON_INCLUDES +else dnl deduce PYTHON_INCLUDES py_prefix=`$PYTHON -c import sys; print sys.prefix` py_exec_prefix=`$PYTHON -c import sys; print sys.exec_prefix` @@ -54,6 +57,7 @@ PYTHON_INCLUDES=$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION} fi fi +fi AC_SUBST(PYTHON_INCLUDES) dnl check if the headers exist: save_CPPFLAGS=$CPPFLAGS Modified: trunk/BINDINGS/python/python-ecore/README === --- trunk/BINDINGS/python/python-ecore/README 2010-09-28 23:17:03 UTC (rev 52869) +++ trunk/BINDINGS/python/python-ecore/README 2010-09-28 23:17:55 UTC (rev 52870) @@ -34,3 +34,7 @@ The discovery of dependencies is done with pkg-config, thus all your packages must be properly accessible with such tool. Ensure your PKG_CONFIG_PATH and PKG_CONFIG_LIBDIR (cross-compiles) are configured! + +When cross-compiling, if your target's Python headers differ from your +host's headers, specify PYTHON_INCLUDES variable containing the +directory of the correct version of Python.h! Modified: trunk/BINDINGS/python/python-ecore/m4/python.m4 === --- trunk/BINDINGS/python/python-ecore/m4/python.m4 2010-09-28 23:17:03 UTC (rev 52869) +++ trunk/BINDINGS/python/python-ecore/m4/python.m4 2010-09-28 23:17:55 UTC (rev 52870) @@ -43,6 +43,9 @@ AC_DEFUN([AM_CHECK_PYTHON_HEADERS], [AC_REQUIRE([AM_PATH_PYTHON]) AC_MSG_CHECKING(for headers required to compile python extensions) +if test -x $PYTHON_INCLUDES; then +PYTHON_INCLUDES=-I$PYTHON_INCLUDES +else dnl deduce PYTHON_INCLUDES py_prefix=`$PYTHON -c import sys; print sys.prefix` py_exec_prefix=`$PYTHON -c import sys; print sys.exec_prefix` @@ -54,6 +57,7 @@ PYTHON_INCLUDES=$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION} fi fi +fi AC_SUBST(PYTHON_INCLUDES) dnl check if the headers exist: save_CPPFLAGS=$CPPFLAGS Modified: trunk/BINDINGS/python/python-edje/README === --- trunk/BINDINGS/python/python-edje/README 2010-09-28 23:17:03 UTC (rev 52869) +++ trunk/BINDINGS/python/python-edje/README 2010-09-28 23:17:55 UTC (rev
Re: [E-devel] Edje EXTERNAL example: video player
On Wed, Sep 29, 2010 at 12:35 AM, Gustavo Sverzut Barbieri barbi...@profusion.mobi wrote: On Tue, Sep 28, 2010 at 6:14 PM, Jose Gonzalez jose_...@juno.com wrote: Gustavo Sverzut Barbieri wrote: On Tue, Sep 28, 2010 at 10:22 AM, Eduardo Lima (Etrunko) ebl...@gmail.com wrote: On Tue, Sep 28, 2010 at 3:08 AM, Gustavo Sverzut Barbieri barbi...@profusion.mobi wrote: For those interested in learning Edje and wonder what is the so called external support, here is a small demo video player that I wrote entirely in Emotion. You need the last Emotion to get the position in slider. PS: I'm not in the mood for wiki, if you are please add it there somewhere :-) Me thinks it's worth some blogging somehow comparing to Qt QML, isn't it? ;) 200% agreed, 0% time to do it! I finished this around 2:30am... What I'd really want is more people to blog more about EFL. I've noticed that EXTERNAL is not even known by most, and actually it was even hard for me, the dude that created it, to figure out what to do Please refrain from taking credit for other people's work and ideas. Not only were you not the dude that created it, but in fact you had absolutely nothing to do with its creation. AHAHAHAHAHAAH... and the dude comes from nowhere to cause some flamewars, let's go... no need for a war :) Congrats for the work ! -- Steven Le Roux Jabber-ID : ste...@jabber.fr 0x39494CCB ste...@le-roux.info 2FF7 226B 552E 4709 03F0 6281 72D7 A010 3949 4CCB -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] Edje EXTERNAL example: video player
Gustavo Sverzut Barbieri wrote: On Tue, Sep 28, 2010 at 6:14 PM, Jose Gonzalez jose_...@juno.com wrote: Gustavo Sverzut Barbieri wrote: On Tue, Sep 28, 2010 at 10:22 AM, Eduardo Lima (Etrunko) ebl...@gmail.com wrote: On Tue, Sep 28, 2010 at 3:08 AM, Gustavo Sverzut Barbieri barbi...@profusion.mobi wrote: For those interested in learning Edje and wonder what is the so called external support, here is a small demo video player that I wrote entirely in Emotion. You need the last Emotion to get the position in slider. PS: I'm not in the mood for wiki, if you are please add it there somewhere :-) Me thinks it's worth some blogging somehow comparing to Qt QML, isn't it? ;) 200% agreed, 0% time to do it! I finished this around 2:30am... What I'd really want is more people to blog more about EFL. I've noticed that EXTERNAL is not even known by most, and actually it was even hard for me, the dude that created it, to figure out what to do Please refrain from taking credit for other people's work and ideas. Not only were you not the dude that created it, but in fact you had absolutely nothing to do with its creation. AHAHAHAHAHAAH... and the dude comes from nowhere to cause some flamewars, let's go... No, I just find it deplorable that you'd make statements claiming credit for other's work and ideas. The edje EXTERNAL part was an idea I had many years ago (though I'd initially called it OBJECT after a similar notion in html), before you were even around 'eland'. It was an extension of the GROUP part notion. Brian Mattern and I further discussed the notions (along with other things) and it was Brian who eventually did the actual initial implementations for both GROUP and EXTERNAL. You've since further pushed and developed things, and that's very nice. But again, please refrain from taking credit for other people's work and ideas. Okay, Mr. Jose IDEAS Gonzalez. Not only I helped Brian to get GROUP done, discussing I'm sorry but the design, name, syntax, etc of GROUP was in fact due to me and Brian over many private emails - like it or not. I let Brian do the implementation since he was the edje guy at the time, though I did send him some pseudo-code to deal with the issue of possible self-referencing of groups. You had nothing to do with any of this. Later you did some finish-off work in the implementation of signal forwarding, something which Brian and I had discussed, but he never had got around to. and getting the signal forwarding to children done, but I was actually the one that came with the design of EXTERNAL as it is... AFAIR you were dreaming about some stupid solution along the lines of a completely new compiler like ETK dudes had, babbling that we should continue with ETK and all of that we already know. I'm sorry but your memory is almost as bad as your lack of ethics. The EXTERNAL was something Brian and I discussed before you were ever around, but I'd called it OBJECT. And yes there are better ways of doing this... it was simply the best we could think of due to the limitations imposed by edje/edc (in-extensible built-in parser for an informal 'edc' language). It was menat to be a generic, one-size fits all, string-driven property system. But it's not the most efficient way of dealing with any particular domain. So until you show me any code that makes me realize you actually did something, I'm the one that did it. Because if I was to consider every idea you possibly though of, the whole world might happen to fit into that argument :-D Gustavo, it's enough that I took the time to even reply to this.. Your lack of ethics is nearly pathological. Mortgage Rates Hit 3.25% If you owe under $729k you probably qualify for Obama's Refi Program http://thirdpartyoffers.juno.com/TGL3141/4ca27e2d6969b4f068st01vuc -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] Transition Layout for elm_box
2010/9/23 Otávio Pontes ota...@profusion.mobi: 2010/9/22 Gustavo Sverzut Barbieri barbi...@profusion.mobi: 2010/9/22 Otávio Pontes ota...@profusion.mobi: I have added the transition layout into edje too. It displays an animation when changing box state with different layouts. I am sending the patch for edje and an edc sample file. Awesome results, few comments: - edje users don't have direct access to items, so you shouldn't require to listen to child,added/child,removed... but it doesn't hurt... however: - edje already knows about the items, as they are managed through edje_object_part_box_* methods. You should reuse that. This will avoid reload children list to recreate all items again. Done. And it was a better solution. - at _edje_box_layout_calculate_coords() you don't revert the box properties (padding, align) to the original once you measure the final state. Okay, at layout you have a if (progress == 0.0) and then do that, but it is better to do it in the other function. Also, comparing Setting box properties in layout function when progress == 0 is necessary because sometimes layout is used without any animation and _edje_box_layout_calculate_coords is called only when an animation will start. After running _edje_box_layout_calculate_coords the layout will place objects without looking at box properties. These properties will be needed only when progress == 0.0, so setting them on _edje_box_layout_calculate_coords is not necessary. for double equality will raise some warnings for compilers with -Wextra AFAIR. Checking now if progress 0.01 to avoid floating point problems. - double check if anim-start_progress 1 before calling _exec() to avoid division by 0.0 and an FPU exception? While it is hard to happen in tests, it may happen one day in platforms that crash the application :-( Done. - edje coding style require all structs with Edje prefix, even if they are private. Done Last but not least, few questions that I cannot remember from Edje and from your patch it is not obvious to me: - does it still allocates the animation even if the transition is immediate (ie: zero timed transition: in your program)? Seems so as _edje_box_recalc_apply() always create it. _edje_box_recalc_apply aways allocate the anim struct, that is used for all animations with this box. I could allocate the struct only if necessary, but it wont be possible to avoid reloading children in _edje_box_layout_load_children_list. In this new patch anim struct is created when the first child is added to the box. I'd move this to part box constructor: evas_object_box_layout_set(ep-object, _edje_box_layout, ep-anim, _edje_box_layout_free_data), always have it (you may even call it just box and remove the anim reference. Then you free it (your _edje_box_layout_free_data) at part delete. You keep this as the single layout function ever set to ep-object. Then move all your _edje_box_layout_calculate_coords() to _edje_box_recalc_apply() as there you know for sure what happened and do not have to set a flag to be checked later... I guess these things will make code simpler and less error prone, also easier for others to review and maintain it. Calling functions to allocate and destroy data in edje_load.c. Restart flag was removed and _edje_box_layout_calculate_coords is called in in _edje_box_recalc_apply. The recalculate flag is still necessary. Sending new patch attached. sorry taking so long! in svn as r52871. -- Gustavo Sverzut Barbieri http://profusion.mobi embedded systems -- MSN: barbi...@gmail.com Skype: gsbarbieri Mobile: +55 (19) 9225-2202 -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] E SVN: raster trunk/TMP/st/elementary/src/lib
On Wed, Sep 29, 2010 at 12:59 AM, Enlightenment SVN no-re...@enlightenment.org wrote: Log: this should fix reparenting of already focused widgets and properly reset focus stack. eve still need that big fat hack in chrome.c (call elm_object_unfocus() :-() -- Gustavo Sverzut Barbieri http://profusion.mobi embedded systems -- MSN: barbi...@gmail.com Skype: gsbarbieri Mobile: +55 (19) 9225-2202 -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] E SVN: raster trunk/eina/src/include
On Wed, 25 Aug 2010, Joerg Sonnenberger wrote: On Wed, Aug 25, 2010 at 10:22:19PM +0200, Vincent Torri wrote: On Wed, 25 Aug 2010, Raphael Kubo da Costa wrote: FWIW, on FreeBSD at least, limits.h includes both sys/limits.h and sys/syslimits.h (the latter only if __POSIX_VISIBLE is defined). All versions ? At least down to FreeBSD 4.9. Unless you are doing silly things like using -pedantic, but in that case you get what you ask for. I asked a guy using mac os x and it indeed works. So i'll remove the def's Vincent -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel