Re: [E-devel] Python bindings NOTICE: Getting things Python 3 compatible.
On 10/06/12 15:13, Kai Huuhko wrote: Heads up, expect the unexpected. I've started getting the bindings ready for Py3. I'm going to add two functions, fruni and touni (see below), which will handle string conversions. Any *_set method taking in strings will need to wrap the value(s) in fruni and the *_get methods returning char* wrap them in touni. I was under the impression that we already do that. Anyhow, just to make sure, you mean to do that internally in our implementations and not let the users of the API do it, right? -- Tom. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] E SVN: tasn trunk/edje/src/lib
On 12/06/12 02:54, Cedric BAIL wrote: On Sun, Jun 10, 2012 at 8:14 PM, Enlightenment SVN no-re...@enlightenment.org wrote: Log: Edje load: Although we don't use them that much, we have refcounts in evas. Don't assume an evas_object_del has to delete the object. Woot ? Why would the sub object of Edje object be refcounted ? Only Edje is alloed to play with them ! Nah, evas is also allowed to play with them... Also, the fix is more correct anyway, code should express what we mean, without too much magic. :) -- Tom. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] E SVN: tasn trunk/edje/src/lib
On Tue, Jun 12, 2012 at 3:28 PM, Tom Hacohen tom.haco...@samsung.com wrote: On 12/06/12 02:54, Cedric BAIL wrote: On Sun, Jun 10, 2012 at 8:14 PM, Enlightenment SVN no-re...@enlightenment.org wrote: Log: Edje load: Although we don't use them that much, we have refcounts in evas. Don't assume an evas_object_del has to delete the object. Woot ? Why would the sub object of Edje object be refcounted ? Only Edje is alloed to play with them ! Nah, evas is also allowed to play with them... Also, the fix is more correct anyway, code should express what we mean, without too much magic. :) Why would he ? Seriously, nobody should refcount the child of Edje. If someone does that bad things are going to happen, like this child could be an external and trigger event in a dead parent for example. So refcounting the Edje object is fine, referencing its child is calling for wrong things to happen. -- Cedric BAIL -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] E SVN: tasn trunk/edje/src/lib
On 12/06/12 10:00, Cedric BAIL wrote: Why would he ? Seriously, nobody should refcount the child of Edje. If someone does that bad things are going to happen, like this child could be an external and trigger event in a dead parent for example. So refcounting the Edje object is fine, referencing its child is calling for wrong things to happen. It's a smart child, this means evas smart also has ownership of it and it can do whatever it wants. In my case it just refs, calls edje and unrefs (which is a very fair use) and that's completely legal. But even assuming my usage is not good, this code will currently cause an infinite loop on such a case, which is bad. Why the hell should we assume that an object will be deleted there, and that a callback will be called and that the callback will delete the object from the edje list? Of course it works, because it's like that at the moment, but that just feels way too fragile and full of assumptions. -- Tom. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
[E-devel] Removal of the old tiling module in /E-MODULES-EXTRA/tiling
Hello. Now that we moved e-tiling into e17 core it is also time to remove his ancestor from the E-MODULES-EXTRA. It has no real activity since several years and the only one you did small changes on it over the last two years have been billiob and me. And we both no longer use it. Does anybody has a problem with removing it? regards Stefan Schmidt -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] Removal of the old tiling module in /E-MODULES-EXTRA/tiling
To quote a Monty Python movie Get On With It :P What are you waiting for ?? Come on already, remove it !!! :P dh On 06/12/2012 10:08 AM, Stefan Schmidt wrote: Hello. Now that we moved e-tiling into e17 core it is also time to remove his ancestor from the E-MODULES-EXTRA. It has no real activity since several years and the only one you did small changes on it over the last two years have been billiob and me. And we both no longer use it. Does anybody has a problem with removing it? regards Stefan Schmidt -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] Removal of the old tiling module in /E-MODULES-EXTRA/tiling
do it On Tue, Jun 12, 2012 at 10:08 AM, Stefan Schmidt s.schm...@samsung.comwrote: Hello. Now that we moved e-tiling into e17 core it is also time to remove his ancestor from the E-MODULES-EXTRA. It has no real activity since several years and the only one you did small changes on it over the last two years have been billiob and me. And we both no longer use it. Does anybody has a problem with removing it? regards Stefan Schmidt -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] Removal of the old tiling module in /E-MODULES-EXTRA/tiling
On 06/12/2012 10:08 AM, Stefan Schmidt wrote: Hello. Now that we moved e-tiling into e17 core it is also time to remove his ancestor from the E-MODULES-EXTRA. It has no real activity since several years and the only one you did small changes on it over the last two years have been billiob and me. And we both no longer use it. Does anybody has a problem with removing it? regards Stefan Schmidt To quote a Monty Python movie Get On With It :P What are you waiting for Christmas ?? Come on already, remove it !!! :P dh -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] Removal of the old tiling module in /E-MODULES-EXTRA/tiling
On 06/12/2012 10:11 AM, Christopher Michael wrote: On 06/12/2012 10:08 AM, Stefan Schmidt wrote: Hello. Now that we moved e-tiling into e17 core it is also time to remove his ancestor from the E-MODULES-EXTRA. It has no real activity since several years and the only one you did small changes on it over the last two years have been billiob and me. And we both no longer use it. Does anybody has a problem with removing it? regards Stefan Schmidt To quote a Monty Python movie Get On With It :P What are you waiting for Christmas ?? Come on already, remove it !!! :P Easy to explain. I waited for it to be commit rev 72000 :D regards Stefan Schmidt -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] E SVN: stefan trunk/e/src/modules/cpufreq
Hello. Raster or anyone else worked with this code please review if this patch jumps to the right places for error handling. Especially if we want to continue reading other sources after a fgets error. I would think so but some other eyes would help. regards Stefan Schmidt On 06/12/2012 11:01 AM, Enlightenment SVN wrote: Log: e/modules/cpufreq: Check the return of fgets to make sure we operate on something sane If we get NULL as reply here the buf will not contain the stuff we are looking for. Author: stefan Date: 2012-06-12 03:01:56 -0700 (Tue, 12 Jun 2012) New Revision: 72005 Trac: http://trac.enlightenment.org/e/changeset/72005 Modified: trunk/e/src/modules/cpufreq/e_mod_main.c Modified: trunk/e/src/modules/cpufreq/e_mod_main.c === --- trunk/e/src/modules/cpufreq/e_mod_main.c 2012-06-12 10:01:22 UTC (rev 72004) +++ trunk/e/src/modules/cpufreq/e_mod_main.c 2012-06-12 10:01:56 UTC (rev 72005) @@ -604,7 +604,7 @@ s-frequencies = NULL; } - fgets(buf, sizeof(buf), f); + if (fgets(buf, sizeof(buf), f) == NULL) return 1; buf[sizeof(buf) - 1] = 0; fclose(f); @@ -638,7 +638,7 @@ s-governors = NULL; } - fgets(buf, sizeof(buf), f); + if (fgets(buf, sizeof(buf), f) == NULL) return 1; buf[sizeof(buf) - 1] = 0; fclose(f); @@ -698,7 +698,7 @@ f = fopen(buf, r); if (f) { - fgets(buf, sizeof(buf), f); + if (fgets(buf, sizeof(buf), f) == NULL) continue; buf[sizeof(buf) - 1] = 0; fclose(f); @@ -740,7 +740,7 @@ char *p; buf[0] = 0; - fgets(buf, sizeof(buf), f); + if (fgets(buf, sizeof(buf), f) == NULL) return ret;; buf[sizeof(buf) - 1] = 0; fclose(f); for (p = buf; (*p != 0) (isalnum(*p)); p++); -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] E SVN: raster IN trunk: . terminology terminology/data terminology/data/desktop terminology/data/fonts terminology/data/icons terminology/data/images terminology/data/themes terminology/
On Tue, Jun 12, 2012 at 12:10 PM, Enlightenment SVN no-re...@enlightenment.org wrote: Log: finally a terminal emulator for efl! sure - uses a lot of text objects. need evas textgrid obj and more, but this marks a first usable state for terminology. more needs doing like underline and strikethrough support, blink support, visual bell, config panel etc. strikethrough can be done in the textgrid object, no ? Vincent -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
[E-devel] [PATCH] elm: Make the max value displayed in progressbar configurable
Hello, after playing around in Elementary for a while I noticed that the value displayed on the progress bar always goes from 0 to 100. I think that there are use cases where another maximum value would make sense, i.e. in a timer. Please review the attached patch that adds this functionality. Regards, Daniel Willmann (1): elementary: Add elm_progressbar_maxunit_{set,get} functions trunk/elementary/src/lib/elm_progressbar.c | 27 ++- trunk/elementary/src/lib/elm_progressbar.h | 26 ++ 2 files changed, 52 insertions(+), 1 deletion(-) -- 1.7.9.5 -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
[E-devel] [PATCH] elementary: Add elm_progressbar_maxunit_{set, get} functions
These functions change the range of the value displayed on the progress bar with elm_progressbar_unit_format_set. At the moment the value displayed is in the range of 0 to 100. These functions allow you to change the upper range to something else. This is useful if the value represented by the progress bar is something else than percent, such as hours left. Signed-off-by: Daniel Willmann d.willm...@samsung.com --- trunk/elementary/src/lib/elm_progressbar.c | 27 ++- trunk/elementary/src/lib/elm_progressbar.h | 26 ++ 2 files changed, 52 insertions(+), 1 deletion(-) diff --git a/trunk/elementary/src/lib/elm_progressbar.c b/trunk/elementary/src/lib/elm_progressbar.c index 61f2b64..6d7316a 100644 --- a/trunk/elementary/src/lib/elm_progressbar.c +++ b/trunk/elementary/src/lib/elm_progressbar.c @@ -18,6 +18,7 @@ struct _Elm_Progressbar_Smart_Data Evas_Coordsize; doubleval; + doublemaxunit; Eina_Bool horizontal : 1; Eina_Bool inverted : 1; @@ -78,7 +79,7 @@ _units_set(Evas_Object *obj) { char buf[1024]; -snprintf(buf, sizeof(buf), sd-units, 100 * sd-val); +snprintf(buf, sizeof(buf), sd-units, sd-maxunit * sd-val); elm_layout_text_set(obj, elm.text.status, buf); } else elm_layout_text_set(obj, elm.text.status, NULL); @@ -227,6 +228,7 @@ _elm_progressbar_smart_add(Evas_Object *obj) priv-pulse_state = EINA_FALSE; priv-units = eina_stringshare_add(%.0f %%); priv-val = MIN_RATIO_LVL; + priv-maxunit = 100; elm_layout_theme_set (obj, progressbar, horizontal, elm_widget_style_get(obj)); @@ -365,6 +367,29 @@ elm_progressbar_value_get(const Evas_Object *obj) } EAPI void +elm_progressbar_maxunit_set(Evas_Object *obj, + double maxunit) +{ + ELM_PROGRESSBAR_CHECK(obj); + ELM_PROGRESSBAR_DATA_GET(obj, sd); + + if (sd-maxunit == maxunit) return; + + sd-maxunit = maxunit; + + _units_set(obj); +} + +EAPI double +elm_progressbar_maxunit_get(const Evas_Object *obj) +{ + ELM_PROGRESSBAR_CHECK(obj) 0.0; + ELM_PROGRESSBAR_DATA_GET(obj, sd); + + return sd-maxunit; +} + +EAPI void elm_progressbar_span_size_set(Evas_Object *obj, Evas_Coord size) { diff --git a/trunk/elementary/src/lib/elm_progressbar.h b/trunk/elementary/src/lib/elm_progressbar.h index 5ee2aff..49ee65a 100644 --- a/trunk/elementary/src/lib/elm_progressbar.h +++ b/trunk/elementary/src/lib/elm_progressbar.h @@ -154,6 +154,32 @@ EAPI void elm_progressbar_value_set(Evas_Object *obj, do EAPI double elm_progressbar_value_get(const Evas_Object *obj); /** + * Set the range of the value displayed on a given progress bar + * widget + * + * @param obj The progress bar object + * @param scalemax The maximum value + * + * This sets the range of the value that is displayed on a progress bar + * to go from 0 to @p scalemax. + * + * @ingroup Progressbar + */ +EAPI void elm_progressbar_maxunit_set(Evas_Object *obj, double maxunit); + +/** + * Get the range of the value displayed on a given progress bar + * + * @param obj The progress bar object + * @return The value current range + * + * @see elm_progressbar_maxunit_set() for more details + * + * @ingroup Progressbar + */ +EAPI double elm_progressbar_maxunit_get(const Evas_Object *obj); + +/** * Set the (exact) length of the bar region of a given progress bar * widget * -- 1.7.9.5 -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] E SVN: raster IN trunk: . terminology terminology/data terminology/data/desktop terminology/data/fonts terminology/data/icons terminology/data/images terminology/data/themes terminology/
On 12/06/12 13:18, Vincent Torri wrote: strikethrough can be done in the textgrid object, no ? Yeah. -- Tom. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] [PATCH] elementary: Add elm_progressbar_maxunit_{set, get} functions
Hello. On 06/12/2012 11:24 AM, Daniel Willmann wrote: /** + * Set the range of the value displayed on a given progress bar + * widget + * + * @param obj The progress bar object + * @param scalemax The maximum value + * + * This sets the range of the value that is displayed on a progress bar + * to go from 0 to @p scalemax. + * + * @ingroup Progressbar + */ +EAPI void elm_progressbar_maxunit_set(Evas_Object *obj, double maxunit); + +/** + * Get the range of the value displayed on a given progress bar + * + * @param obj The progress bar object + * @return The value current range + * + * @see elm_progressbar_maxunit_set() for more details + * + * @ingroup Progressbar + */ +EAPI double elm_progressbar_maxunit_get(const Evas_Object *obj); + +/** * Set the (exact) length of the bar region of a given progress bar * widget * Trying to be faster as vtorris here. You would need to add @since in the docs saying when it was added. See raster last elm addition from today for an example. regards Stefan Schmidt -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] E SVN: raster IN trunk: . terminology terminology/data terminology/data/desktop terminology/data/fonts terminology/data/icons terminology/data/images terminology/data/themes terminology/
On Tue, 12 Jun 2012 12:18:52 +0200 Vincent Torri vincent.to...@gmail.com wrote: On Tue, Jun 12, 2012 at 12:10 PM, Enlightenment SVN no-re...@enlightenment.org wrote: Log: finally a terminal emulator for efl! Enterminus is forgotten? Sure it bit rotted long ago, but it came first. -- A big old stinking pile of genius that no one wants coz there are too many silver coated monkeys in the world. signature.asc Description: PGP signature -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] E SVN: ngc891 trunk/E-MODULES-EXTRA
Hello. On 06/12/2012 11:40 AM, Enlightenment SVN wrote: Log: Remove leftovers of the tiling module Ups, thanks for that. regards Stefan Schmidt -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] E SVN: raster IN trunk: . terminology terminology/data terminology/data/desktop terminology/data/fonts terminology/data/icons terminology/data/images terminology/data/themes terminology/
On Tue, Jun 12, 2012 at 12:46 PM, David Seikel onef...@gmail.com wrote: On Tue, 12 Jun 2012 12:18:52 +0200 Vincent Torri vincent.to...@gmail.com wrote: On Tue, Jun 12, 2012 at 12:10 PM, Enlightenment SVN no-re...@enlightenment.org wrote: Log: finally a terminal emulator for efl! Enterminus is forgotten? Sure it bit rotted long ago, but it came first. i've asked raster to use 'enterminus' for the name, but he prefers 'terminology' :) Vincent -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] Python bindings NOTICE: Getting things Python 3 compatible.
2012/6/12 Tom Hacohen tom.haco...@samsung.com: On 10/06/12 15:13, Kai Huuhko wrote: Heads up, expect the unexpected. I've started getting the bindings ready for Py3. I'm going to add two functions, fruni and touni (see below), which will handle string conversions. Any *_set method taking in strings will need to wrap the value(s) in fruni and the *_get methods returning char* wrap them in touni. I was under the impression that we already do that. Anyhow, just to make sure, you mean to do that internally in our implementations and not let the users of the API do it, right? yes, sure. Kuuko is updating all the internal api right now. No change for the users davemds -- Tom. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] [PATCH] elementary: Add elm_progressbar_maxunit_{set, get} functions
Hi, Daniel. + return sd-maxunit; +} + +EAPI void elm_progressbar_span_size_set(Evas_Object *obj, Evas_Coord size) { diff --git a/trunk/elementary/src/lib/elm_progressbar.h b/trunk/elementary/src/lib/elm_progressbar.h index 5ee2aff..49ee65a 100644 --- a/trunk/elementary/src/lib/elm_progressbar.h +++ b/trunk/elementary/src/lib/elm_progressbar.h @@ -154,6 +154,32 @@ EAPI void elm_progressbar_value_set(Evas_Object *obj, do EAPI double elm_progressbar_value_get(const Evas_Object *obj); /** + * Set the range of the value displayed on a given progress bar + * widget + * + * @param obj The progress bar object + * @param scalemax The maximum value + * + * This sets the range of the value that is displayed on a progress bar + * to go from 0 to @p scalemax. + * + * @ingroup Progressbar + */ +EAPI void elm_progressbar_maxunit_set(Evas_Object *obj, double maxunit); Please say on these docs that the default value is 100. + +/** + * Get the range of the value displayed on a given progress bar + * + * @param obj The progress bar object + * @return The value current range + * + * @see elm_progressbar_maxunit_set() for more details + * + * @ingroup Progressbar + */ +EAPI double elm_progressbar_maxunit_get(const Evas_Object *obj); + +/** * Set the (exact) length of the bar region of a given progress bar * widget * -- 1.7.9.5 -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel Regards, -- Gustavo Lima Chaves Computer Engineer @ ProFUSION Embedded Systems -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] E SVN: raster IN trunk: . terminology terminology/data terminology/data/desktop terminology/data/fonts terminology/data/icons terminology/data/images terminology/data/themes terminology/
On Tue, 12 Jun 2012 12:18:52 +0200 Vincent Torri vincent.to...@gmail.com said: On Tue, Jun 12, 2012 at 12:10 PM, Enlightenment SVN no-re...@enlightenment.org wrote: Log: finally a terminal emulator for efl! sure - uses a lot of text objects. need evas textgrid obj and more, but this marks a first usable state for terminology. more needs doing like underline and strikethrough support, blink support, visual bell, config panel etc. strikethrough can be done in the textgrid object, no ? it can. it isn't at the moment though. i plan to just for completeness. -- - Codito, ergo sum - I code, therefore I am -- The Rasterman (Carsten Haitzler)ras...@rasterman.com -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] E SVN: raster IN trunk: . terminology terminology/data terminology/data/desktop terminology/data/fonts terminology/data/icons terminology/data/images terminology/data/themes terminology/
On Tue, 12 Jun 2012 20:46:48 +1000 David Seikel onef...@gmail.com said: On Tue, 12 Jun 2012 12:18:52 +0200 Vincent Torri vincent.to...@gmail.com wrote: On Tue, Jun 12, 2012 at 12:10 PM, Enlightenment SVN no-re...@enlightenment.org wrote: Log: finally a terminal emulator for efl! Enterminus is forgotten? Sure it bit rotted long ago, but it came first. other tha it not compiling anymore.. did u ever try it? it was barely emulating a terminal. terminology is pretty close to complete. it runs vim, jed, htop, pico, nano, regular shell, even emacs mostly. does copy paste, scrollback. and even has its own built-in font selector now. -- - Codito, ergo sum - I code, therefore I am -- The Rasterman (Carsten Haitzler)ras...@rasterman.com -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] E SVN: raster IN trunk: . terminology terminology/data terminology/data/desktop terminology/data/fonts terminology/data/icons terminology/data/images terminology/data/themes terminology/
Hello. On 06/12/2012 02:27 PM, Carsten Haitzler (The Rasterman) wrote: On Tue, 12 Jun 2012 20:46:48 +1000 David Seikelonef...@gmail.com said: On Tue, 12 Jun 2012 12:18:52 +0200 Vincent Torri vincent.to...@gmail.com wrote: On Tue, Jun 12, 2012 at 12:10 PM, Enlightenment SVN no-re...@enlightenment.org wrote: Log: finally a terminal emulator for efl! Enterminus is forgotten? Sure it bit rotted long ago, but it came first. other tha it not compiling anymore.. did u ever try it? it was barely emulating a terminal. terminology is pretty close to complete. it runs vim, jed, htop, pico, nano, regular shell, even emacs mostly. does copy paste, scrollback. and even has its own built-in font selector now. If you want some more problematic programs try out mc, midnight commander. That one is not nice to terminology. regards Stefan Schmidt -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] E SVN: raster IN trunk: . terminology terminology/data terminology/data/desktop terminology/data/fonts terminology/data/icons terminology/data/images terminology/data/themes terminology/
On Tue, 12 Jun 2012 22:27:01 +0900 Carsten Haitzler (The Rasterman) ras...@rasterman.com wrote: On Tue, 12 Jun 2012 20:46:48 +1000 David Seikel onef...@gmail.com said: On Tue, 12 Jun 2012 12:18:52 +0200 Vincent Torri vincent.to...@gmail.com wrote: On Tue, Jun 12, 2012 at 12:10 PM, Enlightenment SVN no-re...@enlightenment.org wrote: Log: finally a terminal emulator for efl! Enterminus is forgotten? Sure it bit rotted long ago, but it came first. other tha it not compiling anymore.. did u ever try it? it was barely emulating a terminal. terminology is pretty close to complete. it runs vim, jed, htop, pico, nano, regular shell, even emacs mostly. does copy paste, scrollback. and even has its own built-in font selector now. It still came first, does not matter that it bit rotted and barely worked. That was my point, enterminus came first. Please tell me there's the option of unlimited scrollback? -- A big old stinking pile of genius that no one wants coz there are too many silver coated monkeys in the world. signature.asc Description: PGP signature -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] E SVN: raster IN trunk: . terminology terminology/data terminology/data/desktop terminology/data/fonts terminology/data/icons terminology/data/images terminology/data/themes terminology/
On Tue, 12 Jun 2012 14:35:17 +0100 Stefan Schmidt s.schm...@samsung.com wrote: Hello. On 06/12/2012 02:27 PM, Carsten Haitzler (The Rasterman) wrote: On Tue, 12 Jun 2012 20:46:48 +1000 David Seikelonef...@gmail.com said: On Tue, 12 Jun 2012 12:18:52 +0200 Vincent Torri vincent.to...@gmail.com wrote: On Tue, Jun 12, 2012 at 12:10 PM, Enlightenment SVN no-re...@enlightenment.org wrote: Log: finally a terminal emulator for efl! Enterminus is forgotten? Sure it bit rotted long ago, but it came first. other tha it not compiling anymore.. did u ever try it? it was barely emulating a terminal. terminology is pretty close to complete. it runs vim, jed, htop, pico, nano, regular shell, even emacs mostly. does copy paste, scrollback. and even has its own built-in font selector now. If you want some more problematic programs try out mc, midnight commander. That one is not nice to terminology. Yep, +1 for that. I hardly ever run a terminal without midnight commander on it. -- A big old stinking pile of genius that no one wants coz there are too many silver coated monkeys in the world. signature.asc Description: PGP signature -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
[E-devel] [PATCH] elementary: Add elm_progressbar_maxunit_{set, get} functions
Hello, updated version. I added the @since 1.1 mentioned by Stefan and mentioned the default value. Regards, Daniel These functions change the range of the value displayed on the progress bar with elm_progressbar_unit_format_set. At the moment the value displayed is in the range of 0 to 100. These functions allow you to change the upper range to something else. This is useful if the value represented by the progress bar is something else than percent, such as hours left. Signed-off-by: Daniel Willmann d.willm...@samsung.com --- trunk/elementary/ChangeLog |3 +++ trunk/elementary/src/lib/elm_progressbar.c | 27 +- trunk/elementary/src/lib/elm_progressbar.h | 29 3 files changed, 58 insertions(+), 1 deletion(-) diff --git a/trunk/elementary/ChangeLog b/trunk/elementary/ChangeLog index 1b04015..9d7a5c1 100644 --- a/trunk/elementary/ChangeLog +++ b/trunk/elementary/ChangeLog @@ -176,3 +176,6 @@ * Add elm_win_size_base_set/get, elm_win_size_step_set/get for hinting sizing of windows. Useful for terminals. +2012-06-12 Daniel Willmann + * Add elm_progressbar_maxunit_set/get to change the range of the value + displayed in the progress bar. diff --git a/trunk/elementary/src/lib/elm_progressbar.c b/trunk/elementary/src/lib/elm_progressbar.c index 61f2b64..6d7316a 100644 --- a/trunk/elementary/src/lib/elm_progressbar.c +++ b/trunk/elementary/src/lib/elm_progressbar.c @@ -18,6 +18,7 @@ struct _Elm_Progressbar_Smart_Data Evas_Coordsize; doubleval; + doublemaxunit; Eina_Bool horizontal : 1; Eina_Bool inverted : 1; @@ -78,7 +79,7 @@ _units_set(Evas_Object *obj) { char buf[1024]; -snprintf(buf, sizeof(buf), sd-units, 100 * sd-val); +snprintf(buf, sizeof(buf), sd-units, sd-maxunit * sd-val); elm_layout_text_set(obj, elm.text.status, buf); } else elm_layout_text_set(obj, elm.text.status, NULL); @@ -227,6 +228,7 @@ _elm_progressbar_smart_add(Evas_Object *obj) priv-pulse_state = EINA_FALSE; priv-units = eina_stringshare_add(%.0f %%); priv-val = MIN_RATIO_LVL; + priv-maxunit = 100; elm_layout_theme_set (obj, progressbar, horizontal, elm_widget_style_get(obj)); @@ -365,6 +367,29 @@ elm_progressbar_value_get(const Evas_Object *obj) } EAPI void +elm_progressbar_maxunit_set(Evas_Object *obj, + double maxunit) +{ + ELM_PROGRESSBAR_CHECK(obj); + ELM_PROGRESSBAR_DATA_GET(obj, sd); + + if (sd-maxunit == maxunit) return; + + sd-maxunit = maxunit; + + _units_set(obj); +} + +EAPI double +elm_progressbar_maxunit_get(const Evas_Object *obj) +{ + ELM_PROGRESSBAR_CHECK(obj) 0.0; + ELM_PROGRESSBAR_DATA_GET(obj, sd); + + return sd-maxunit; +} + +EAPI void elm_progressbar_span_size_set(Evas_Object *obj, Evas_Coord size) { diff --git a/trunk/elementary/src/lib/elm_progressbar.h b/trunk/elementary/src/lib/elm_progressbar.h index 5ee2aff..5facafa 100644 --- a/trunk/elementary/src/lib/elm_progressbar.h +++ b/trunk/elementary/src/lib/elm_progressbar.h @@ -154,6 +154,35 @@ EAPI void elm_progressbar_value_set(Evas_Object *obj, do EAPI double elm_progressbar_value_get(const Evas_Object *obj); /** + * Set the range of the value displayed on a given progress bar + * widget + * + * @param obj The progress bar object + * @param maxunit The maximum value + * + * This sets the range of the value that is displayed on a progress bar + * to go from 0 to @p maxunit. The default value of @p maxunit is 100. + * + * @ingroup Progressbar + * @since 1.1 + */ +EAPI void elm_progressbar_maxunit_set(Evas_Object *obj, double maxunit); + +/** + * Get the range of the value displayed on a given progress bar + * widget + * + * @param obj The progress bar object + * @return The current maximum value + * + * @see elm_progressbar_maxunit_set() for more details + * + * @ingroup Progressbar + * @since 1.1 + */ +EAPI double elm_progressbar_maxunit_get(const Evas_Object *obj); + +/** * Set the (exact) length of the bar region of a given progress bar * widget * -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] Python bindings NOTICE: Getting things Python 3 compatible.
2012/6/12 Davide Andreoli d...@gurumeditation.it: 2012/6/12 Tom Hacohen tom.haco...@samsung.com: On 10/06/12 15:13, Kai Huuhko wrote: Heads up, expect the unexpected. I've started getting the bindings ready for Py3. I'm going to add two functions, fruni and touni (see below), which will handle string conversions. Any *_set method taking in strings will need to wrap the value(s) in fruni and the *_get methods returning char* wrap them in touni. I was under the impression that we already do that. Anyhow, just to make sure, you mean to do that internally in our implementations and not let the users of the API do it, right? yes, sure. Kuuko is updating all the internal api right now. No change for the users davemds I didn't press reply to all so my mail went only to Tom this morning, so here it is for the list too, answering Tom's questions: That's right and no there were no conversions in place for python unicode strings. I did end up naming them with a leading underscore to note that they should be used internally only. Also to handle const types there are two more functions; all in total they are: _touni: convert char* to python unicode _ctouni: convert const_char_ptr to python unicode _fruni: convert python unicode to char* _cfruni: convert python unicode to const_char_ptr You can find their implementation near the top of the .pyx files. -- Tom. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] E SVN: raster IN trunk: . terminology terminology/data terminology/data/desktop terminology/data/fonts terminology/data/icons terminology/data/images terminology/data/themes terminology/
On Tue, Jun 12, 2012 at 12:10 PM, Enlightenment SVN no-re...@enlightenment.org wrote: Log: finally a terminal emulator for efl! sure - uses a lot of text objects. need evas textgrid obj and more, but this marks a first usable state for terminology. more needs doing like underline and strikethrough support, blink support, visual bell, config panel etc. Up-to-date EFL here, and Terminology looks like this, regardless of the font being used: http://i.imgur.com/5qJ0s.png (Arch Linux x86 here, BTW.) Leandro -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] E SVN: raster IN trunk: . terminology terminology/data terminology/data/desktop terminology/data/fonts terminology/data/icons terminology/data/images terminology/data/themes terminology/
On Tue, 12 Jun 2012 11:46:07 -0300 Leandro Pereira lean...@profusion.mobi wrote: Using ArchLinux x64 here and it works great for me. Running latest EFL from just a couple hours ago. On Tue, Jun 12, 2012 at 12:10 PM, Enlightenment SVN no-re...@enlightenment.org wrote: Log: finally a terminal emulator for efl! sure - uses a lot of text objects. need evas textgrid obj and more, but this marks a first usable state for terminology. more needs doing like underline and strikethrough support, blink support, visual bell, config panel etc. Up-to-date EFL here, and Terminology looks like this, regardless of the font being used: http://i.imgur.com/5qJ0s.png (Arch Linux x86 here, BTW.) Leandro -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
[E-devel] [PATCH] elev8: CElmActionSlider: Add callback for selected signal
Hello, the elev8 bindings for the ActionSlider are missing the selected signal. This patch adds a handler for it. I have also updated the sample .js to demo the functionality (The label on the fourth button changes). Regards, Daniel Willmann Signed-off-by: Daniel Willmann d.willm...@samsung.com --- trunk/PROTO/elev8/data/javascript/actionslider.js |9 .../elev8/src/modules/elm/CElmActionSlider.cc | 48 +++- .../PROTO/elev8/src/modules/elm/CElmActionSlider.h | 12 + 3 files changed, 68 insertions(+), 1 deletion(-) diff --git a/trunk/PROTO/elev8/data/javascript/actionslider.js b/trunk/PROTO/elev8/data/javascript/actionslider.js index f23fee9..6524783 100644 --- a/trunk/PROTO/elev8/data/javascript/actionslider.js +++ b/trunk/PROTO/elev8/data/javascript/actionslider.js @@ -3,6 +3,14 @@ var elm = require('elm'); var EXPAND_BOTH = { x: 1.0, y: 1.0 }; var FILL_BOTH = { x: -1.0, y: -1.0 }; +function select_cb(widget, label) { +print(label); +if (!label) // undefined +widget.label = Go; +else +widget.label = label; +} + var w = elm.Window({ title: ActionSlider example, width: 320, @@ -41,6 +49,7 @@ var w = elm.Window({ align: { x: -1.0, y: 0.0 }, label: Go, labels: { center: Accept, right: Reject }, +on_select: select_cb, }), left_right_center: elm.ActionSlider({ weight: { x: 1.0, y: 0.0 }, diff --git a/trunk/PROTO/elev8/src/modules/elm/CElmActionSlider.cc b/trunk/PROTO/elev8/src/modules/elm/CElmActionSlider.cc index 73f6ebd..ea92345 100644 --- a/trunk/PROTO/elev8/src/modules/elm/CElmActionSlider.cc +++ b/trunk/PROTO/elev8/src/modules/elm/CElmActionSlider.cc @@ -8,17 +8,25 @@ using namespace v8; GENERATE_PROPERTY_CALLBACKS(CElmActionSlider, labels); GENERATE_PROPERTY_CALLBACKS(CElmActionSlider, slider); GENERATE_PROPERTY_CALLBACKS(CElmActionSlider, magnet); +GENERATE_PROPERTY_CALLBACKS(CElmActionSlider, on_select); + GENERATE_TEMPLATE(CElmActionSlider, PROPERTY(labels), PROPERTY(slider), - PROPERTY(magnet)); + PROPERTY(magnet), + PROPERTY(on_select)); CElmActionSlider::CElmActionSlider(LocalObject _jsObject, CElmObject *parent) : CElmObject(_jsObject, elm_actionslider_add(parent-GetEvasObject())) { } +CElmActionSlider::~CElmActionSlider() +{ + on_select_set(Undefined()); +} + void CElmActionSlider::Initialize(HandleObject target) { target-Set(String::NewSymbol(ActionSlider), @@ -98,4 +106,42 @@ HandleValue CElmActionSlider::magnet_get() const return Integer::New(elm_actionslider_magnet_pos_get(eo)); } +void CElmActionSlider::OnSelect(void *event_info) +{ + HandleFunction callback(Function::Cast(*cb.select)); + char *label = (char *)event_info; + HandleValue args[2] = { jsObject, Undefined()}; + + if (label) + args[1] = String::New(label); + + callback-Call(jsObject, 2, args); +} + +void CElmActionSlider::OnSelectWrapper(void *data, Evas_Object *, void *event_info) +{ + static_castCElmActionSlider*(data)-OnSelect(event_info); +} + +HandleValue CElmActionSlider::on_select_get() const +{ + return cb.select; +} + +void CElmActionSlider::on_select_set(HandleValue val) +{ + if (!cb.select.IsEmpty()) + { +evas_object_smart_callback_del(eo, selected, OnSelectWrapper); +cb.select.Dispose(); +cb.select.Clear(); + } + + if (!val-IsFunction()) + return; + + cb.select = PersistentValue::New(val); + evas_object_smart_callback_add(eo, selected, OnSelectWrapper, this); +} + } diff --git a/trunk/PROTO/elev8/src/modules/elm/CElmActionSlider.h b/trunk/PROTO/elev8/src/modules/elm/CElmActionSlider.h index 328f4de..2663d3f 100644 --- a/trunk/PROTO/elev8/src/modules/elm/CElmActionSlider.h +++ b/trunk/PROTO/elev8/src/modules/elm/CElmActionSlider.h @@ -15,8 +15,14 @@ private: bool position_from_string(HandleValue val, Elm_Actionslider_Pos pos); protected: CElmActionSlider(LocalObject _jsObject, CElmObject *parent); + ~CElmActionSlider(); + static HandleFunctionTemplate GetTemplate(); + struct { + PersistentValue select; + } cb; + public: static void Initialize(HandleObject target); @@ -29,6 +35,12 @@ public: void magnet_set(HandleValue val); HandleValue magnet_get() const; + void OnSelect(void *event_info); + static void OnSelectWrapper(void *data, Evas_Object *, void *event_info); + + HandleValue on_select_get() const; + void on_select_set(HandleValue val); + friend HandleValue CElmObject::NewCElmActionSlider(const Arguments args); }; -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond.
Re: [E-devel] E SVN: raster IN trunk: . terminology terminology/data terminology/data/desktop terminology/data/fonts terminology/data/icons terminology/data/images terminology/data/themes terminology/
On Wed, 13 Jun 2012 00:17:15 +1000 David Seikel onef...@gmail.com said: On Tue, 12 Jun 2012 22:27:01 +0900 Carsten Haitzler (The Rasterman) ras...@rasterman.com wrote: On Tue, 12 Jun 2012 20:46:48 +1000 David Seikel onef...@gmail.com said: On Tue, 12 Jun 2012 12:18:52 +0200 Vincent Torri vincent.to...@gmail.com wrote: On Tue, Jun 12, 2012 at 12:10 PM, Enlightenment SVN no-re...@enlightenment.org wrote: Log: finally a terminal emulator for efl! Enterminus is forgotten? Sure it bit rotted long ago, but it came first. other tha it not compiling anymore.. did u ever try it? it was barely emulating a terminal. terminology is pretty close to complete. it runs vim, jed, htop, pico, nano, regular shell, even emacs mostly. does copy paste, scrollback. and even has its own built-in font selector now. It still came first, does not matter that it bit rotted and barely worked. That was my point, enterminus came first. it never got to being usable. so its irrelevant. it never got beyond demo stage and then bitrotted away in proto. Please tell me there's the option of unlimited scrollback? no there isn't. scrollback is always limited. just set it to a high number if u want almost unlimited. -- - Codito, ergo sum - I code, therefore I am -- The Rasterman (Carsten Haitzler)ras...@rasterman.com -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] E SVN: tasn trunk/evas/src/lib/canvas
Hello Tom. This breaks eyelight. Can you check with eyelight? Please refer the following screenshot. http://www.flickr.com/photos/67308399@N05/718081/in/photostream When I run eyelight and move forward/backward fast, objects are not deleted correctly. howto) 1. build/install PROTO/eyelight 2. run $eyelight -p=efl.elt in trunk/MARKETING/conf/FOSDEM/2011/EFL This commit broke it. Thanks in advance. Daniel Juyung Seo (SeoZ) On Mon, Jun 11, 2012 at 5:35 PM, Enlightenment SVN no-re...@enlightenment.org wrote: Log: Evas smart: Remove from the list, don't assume we have not other refcounts. Without it, it just assumes the object has no refcounts and deletes the object by force. It's very bad if you use refcounts, because your refcounts are gone. Author: tasn Date: 2012-06-11 01:35:07 -0700 (Mon, 11 Jun 2012) New Revision: 71936 Trac: http://trac.enlightenment.org/e/changeset/71936 Modified: trunk/evas/src/lib/canvas/evas_object_smart.c Modified: trunk/evas/src/lib/canvas/evas_object_smart.c === --- trunk/evas/src/lib/canvas/evas_object_smart.c 2012-06-11 08:19:04 UTC (rev 71935) +++ trunk/evas/src/lib/canvas/evas_object_smart.c 2012-06-11 08:35:07 UTC (rev 71936) @@ -301,7 +301,10 @@ { Evas_Object_Smart *o = (Evas_Object_Smart *)(obj-object_data); while (o-contained) - evas_object_del((Evas_Object *)(o-contained)); + { + evas_object_smart_member_del( + EINA_INLIST_CONTAINER_GET(o-contained, Evas_Object)); + } } EAPI Evas_Object * -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ enlightenment-svn mailing list enlightenment-...@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-svn -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
[E-devel] Eio: why Eio_Filter_Direct_Cb x Eio_Filter_Dir_Cb?
Cedric, Any reason why Eio_Filter_Direct_Cb and Eio_Filter_Dir_Cb are different given a 'const' on the last argument? It seems to make no sense. http://trac.enlightenment.org/e/browser/trunk/eio/src/lib/Eio.h#L128 My use case is to have a function with a parameter recursive, whenever it's true I want to use 'eio_dir_stat_ls()' otherwise 'eio_file_stat_ls()'. To do so I'm assigning the filter Cb to a local variable and calling the proper function with the variable... but I can't without warnings due this. I really expect it's a mistake, then just add the missing const and let's be happy :-) -- Gustavo Sverzut Barbieri http://profusion.mobi embedded systems -- MSN: barbi...@gmail.com Skype: gsbarbieri Mobile: +55 (19) 9225-2202 -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] E SVN: raster IN trunk: . terminology terminology/data terminology/data/desktop terminology/data/fonts terminology/data/icons terminology/data/images terminology/data/themes terminology/
On Tue, 12 Jun 2012 18:59:12 -0300 Leandro Pereira lean...@profusion.mobi said: Raster, On 06/12/2012 12:58 PM, Carsten Haitzler (The Rasterman) wrote: On Tue, 12 Jun 2012 11:46:07 -0300 Leandro Pereira lean...@profusion.mobi said: On Tue, Jun 12, 2012 at 12:10 PM, Enlightenment SVN no-re...@enlightenment.org wrote: Log: finally a terminal emulator for efl! sure - uses a lot of text objects. need evas textgrid obj and more, but this marks a first usable state for terminology. more needs doing like underline and strikethrough support, blink support, visual bell, config panel etc. Up-to-date EFL here, and Terminology looks like this, regardless of the font being used: http://i.imgur.com/5qJ0s.png (Arch Linux x86 here, BTW.) i'm wondering if your freetype has a bitmap font handling issue? I don't know -- selecting a TTF font works, and some other bitmap fonts are kind of working (like 'cursor.pcf', although the kerning seems random, it is readable). I'm using the default version that comes with the distribution. Any particular test I could perform besides terminology to see if this is a freetype problem or an evas bug? ftview the pcf files? (ftview - tool comes with freetype) My text editor (joe) has different output from xterm, vte, and rxvt; I what you have there is a font issue in evas. why - i don't know. it seesm to have gotten some font size metrics, only then to not have any bitmap data for the font. it works on all my boxes with the default configured font. other pcf's only work *IF* u set the size right too. i need to fix this in evas. (ie when loading a bitmap font, size is ignored and bitmap font file's size is used - there is logic to handle this case in evas - ie if font only supplies 1 or a few sizes, pick the closest to the size u requested, but it seems to not work). don't know who is right. It is certainly usable, but I'm not sure who is correctly handling the escape sequences. I can provide screenshots later if you want, comparing xterm, rxvt, vte, and terminology. Is this perhaps related to $TERM being different and the editor adapting itself to whatever it knows it works on that particular terminal? TERM is set to xterm in terminology. it pretends to be xterm. Also, it doesn't seem to work properly with a keyboard layout with deadkeys. I need to press the spacebar to get a ' (or some other letter, like a to get an á) which is very useful on a shell. Right now, pressing ' on my US-Intl keyboard gives me an acute accent (tick? back-backtick?) instead, which is wrong. it's key handling is REALLY simple. no input method handling at all. not surprising here. Another thing: it crashed here after a few minutes. No debug symbols and no core file so it shouldn't help much, but maybe this might shed some light: would need valgrind for this. :) *** glibc detected *** ./terminology: free(): invalid pointer: 0x09141568 *** === Backtrace: = /lib/libc.so.6(+0x72632)[0xb7120632] /home/leandro/dev/e/lib/libeina.so.1(eina_array_flush+0x75)[0xb72ed405] /home/leandro/dev/e/lib/libevas.so.1(evas_render_idle_flush+0xfa)[0xb73db55a] /home/leandro/dev/e/lib/libecore_evas.so.1(+0xa215)[0xb7587215] /home/leandro/dev/e/lib/libecore.so.1(_ecore_timer_expired_call+0xd6) [0xb734ed36] /home/leandro/dev/e/lib/libecore.so.1 (_ecore_timer_expired_timers_call+0x24) [0xb734eef4] /home/leandro/dev/e/lib/libecore.so.1(+0xe97b) [0xb734b97b] /home/leandro/dev/e/lib/libecore.so.1(ecore_main_loop_begin+0x3f) [0xb734c0af] /home/leandro/dev/e/lib/libelementary.so.1(elm_run+0x14) [0xb76ab604] ./terminology[0x804bbee] ./terminology[0x804aa99] /lib/libc.so.6(__libc_start_main+0xf5)[0xb70c73d5] ./terminology[0x804aac1] Anyway, the terminal is progressing nicely. I might use it if it proves to be as reliable as rxvt or vte-based terminals. Leandro -- - Codito, ergo sum - I code, therefore I am -- The Rasterman (Carsten Haitzler)ras...@rasterman.com -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] E SVN: raster IN trunk: . terminology terminology/data terminology/data/desktop terminology/data/fonts terminology/data/icons terminology/data/images terminology/data/themes terminology/
Works for me. For a first version - it is awesome. However - I notice some delay in most application when compared to gnome-terminal. On Wed, Jun 13, 2012 at 8:42 AM, Carsten Haitzler ras...@rasterman.comwrote: On Tue, 12 Jun 2012 18:59:12 -0300 Leandro Pereira lean...@profusion.mobi said: Raster, On 06/12/2012 12:58 PM, Carsten Haitzler (The Rasterman) wrote: On Tue, 12 Jun 2012 11:46:07 -0300 Leandro Pereira lean...@profusion.mobi said: On Tue, Jun 12, 2012 at 12:10 PM, Enlightenment SVN no-re...@enlightenment.org wrote: Log: finally a terminal emulator for efl! sure - uses a lot of text objects. need evas textgrid obj and more, but this marks a first usable state for terminology. more needs doing like underline and strikethrough support, blink support, visual bell, config panel etc. Up-to-date EFL here, and Terminology looks like this, regardless of the font being used: http://i.imgur.com/5qJ0s.png (Arch Linux x86 here, BTW.) i'm wondering if your freetype has a bitmap font handling issue? I don't know -- selecting a TTF font works, and some other bitmap fonts are kind of working (like 'cursor.pcf', although the kerning seems random, it is readable). I'm using the default version that comes with the distribution. Any particular test I could perform besides terminology to see if this is a freetype problem or an evas bug? ftview the pcf files? (ftview - tool comes with freetype) My text editor (joe) has different output from xterm, vte, and rxvt; I what you have there is a font issue in evas. why - i don't know. it seesm to have gotten some font size metrics, only then to not have any bitmap data for the font. it works on all my boxes with the default configured font. other pcf's only work *IF* u set the size right too. i need to fix this in evas. (ie when loading a bitmap font, size is ignored and bitmap font file's size is used - there is logic to handle this case in evas - ie if font only supplies 1 or a few sizes, pick the closest to the size u requested, but it seems to not work). don't know who is right. It is certainly usable, but I'm not sure who is correctly handling the escape sequences. I can provide screenshots later if you want, comparing xterm, rxvt, vte, and terminology. Is this perhaps related to $TERM being different and the editor adapting itself to whatever it knows it works on that particular terminal? TERM is set to xterm in terminology. it pretends to be xterm. Also, it doesn't seem to work properly with a keyboard layout with deadkeys. I need to press the spacebar to get a ' (or some other letter, like a to get an á) which is very useful on a shell. Right now, pressing ' on my US-Intl keyboard gives me an acute accent (tick? back-backtick?) instead, which is wrong. it's key handling is REALLY simple. no input method handling at all. not surprising here. Another thing: it crashed here after a few minutes. No debug symbols and no core file so it shouldn't help much, but maybe this might shed some light: would need valgrind for this. :) *** glibc detected *** ./terminology: free(): invalid pointer: 0x09141568 *** === Backtrace: = /lib/libc.so.6(+0x72632)[0xb7120632] /home/leandro/dev/e/lib/libeina.so.1(eina_array_flush+0x75)[0xb72ed405] /home/leandro/dev/e/lib/libevas.so.1(evas_render_idle_flush+0xfa)[0xb73db55a] /home/leandro/dev/e/lib/libecore_evas.so.1(+0xa215)[0xb7587215] /home/leandro/dev/e/lib/libecore.so.1(_ecore_timer_expired_call+0xd6) [0xb734ed36] /home/leandro/dev/e/lib/libecore.so.1 (_ecore_timer_expired_timers_call+0x24) [0xb734eef4] /home/leandro/dev/e/lib/libecore.so.1(+0xe97b) [0xb734b97b] /home/leandro/dev/e/lib/libecore.so.1(ecore_main_loop_begin+0x3f) [0xb734c0af] /home/leandro/dev/e/lib/libelementary.so.1(elm_run+0x14) [0xb76ab604] ./terminology[0x804bbee] ./terminology[0x804aa99] /lib/libc.so.6(__libc_start_main+0xf5)[0xb70c73d5] ./terminology[0x804aac1] Anyway, the terminal is progressing nicely. I might use it if it proves to be as reliable as rxvt or vte-based terminals. Leandro -- - Codito, ergo sum - I code, therefore I am -- The Rasterman (Carsten Haitzler)ras...@rasterman.com -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] E SVN: raster IN trunk: . terminology terminology/data terminology/data/desktop terminology/data/fonts terminology/data/icons terminology/data/images terminology/data/themes terminology/
On Wed, 13 Jun 2012 10:13:43 +0900 Sanjeev BA eflel...@gmail.com said: performance isn't something i'm worried about right now because i KNOW its horrible. it's an array of NxM (eg 80x24 or more if u resize it to be biggeR) text OBJECTs and rect objects. so thats by default at its normal size about 2000 text objects and 2000 rect objects. the plan is to have an evas textgrid object take all of this over as a single object. terminology exists as a test case for textgrid. it exists to provide real world input :) i'm going to have to expand the object count by another 4000 objects to handle strikethrough and underline. again - it's dumb as nuts in the way it does this because i'm expecting textgrid to fix it all in one foul swoop :) in the meantime i want to at least make it look decent and add the basics like font selector (works now, doesn't save though), theme selector, background selector, other options settings, handle visual bell, and some other bits and pieces, as well as in general improve its terminal emulation handling, usability (selections need work, but are usable) etc. and i know i don't have time to do all of the needed things for it, but i've put together a first cut of an efl terminal emulator that is usable. if you think something is missing - pitch in and help. :) the code is in fact surprisingly small and easy to follow. right now i need to split off the options stuff as its polluting the main.c file :) here's a short list of things i think we can do in the short to medium term to make it a first-class terminal: * evas textgrid needs creating and to be used * underline and strikethrough need supporting at termio level * blink and blink2 attributes need to be supported * improve terminal emulation handling (i know it doesn't handle gfx chars and it definitely has an incomplete escape handling core - many are commented out and unhandled) * copy paste support for clipboard not just primary (like xterm) * dnd text (to/from terminal) * ecore-imf support * handle multibyte displays better (does handle utf8 only atm and then maybe not according to convention) * general input mode handling improvements (keypad, other key input, mousereporting etc.) * save of config after options changes (option checkbox for temporary local only changes) * selection of themes * selection of background wallpapers (and support them at all - doesn't right now - should support regular images, animated gifs, and edje files) * transparency support (theme needs to be told to go into tranpsarency mode and then window alpha enabled) * visual bell reporting (signals to theme) * scrollbar (elm scroller that mirrors the term smart size/position - gives us fingerscroll - layer on top of term smart, stick invisible rect inside to track for scrolling etc.) * selection mode mirrors entry style for touch displays (handle on_hold flags, etc.) * selection off edge scrolls in that direction (as per selection mode too if it gets NEAR an edge) * selection should become single edje object so it can be styled nicely * selection should have handles on the start/end so u can drag and change its size once there * improve selection text extraction logic * font selector should include font previews in the list - preferably ONLY be a list of previews * options widgets should be deleted once they are hidden. they stay in memory at the moment * clicking with ANY mouse button while options is up outside of options should dismiss it. things in future to make it totally kick-butt: * tabs (multiple terminals inside a window) with a nice selector that looks like e17's wallpaper2 selector a bit :) * track child process stats like cwd etc. and when launching a new tab or shell use the last child process cwd to put the shell inot * track mem and iowait and cpu stats for child procs and their children and display them as little overlays in the terminal so u know if your grep -r / is cpu or io bound and what is eating up all your cpu cycles or causing a tonne of hdd interrupts etc. - send results of these stats to theme with messages much like cpufreq, battery etc. do in e17 so theme can display as bars, dials or anything it likes (text, led's etc. too). * tiling layout within 1 window to lay out multiple terms in a flexible split/merge column/row grid setup * remember tile layouts and be able to restore them and at least as much of child processes as the term can manage reasonably reliably * split it out into a library - maybe just as part of elementary and make a terminal widget where you can specify your own read/write funcs for the term fd etc. so u can make a custom bit of code that uses the terminal widget as if it were stdin/out but just as loopback within the app (ie don't exec process - just create pty and offer read/write to/from it) * start supporting some of the crazy escape codes that let you inline images into terminals or just create our own extensions and then start making replacement std command wrappers/replacements that are