Re: [E-devel] single-line textblock auto scroll

2009-05-04 Thread The Rasterman
On Tue, 05 May 2009 01:50:40 +0200 "Marco Trevisan (Treviño)" 
said:

> Carsten Haitzler (The Rasterman) wrote:
> > On Thu, 30 Apr 2009 17:35:15 -0300 Gustavo Sverzut Barbieri
> >  said:
> > 
> >> On Thu, Apr 30, 2009 at 3:56 PM, Tomaz Noleto  wrote:
> >>> Hi,
> >>>
> >>> I am trying to use TEXTBLOCK with entry_mode EDITABLE, but I am facing
> >>> a problem when the typed text gets bigger than the part size. I was
> >>> expecting that the text could scroll automatically to the left and the
> >>> cursor would not cross the part's boundaries. Is there any properties
> >>> that I could set in edje to get this behavior? should I implement it
> >>> manually in my app? Or should it be a built-in feature to be done in
> >>> edje backend?
> >> edje is not a widget set, but basic building blocks. You need to
> >> implement the scroll yourself, see elm_entry.c
> > 
> > what he said - elm_entry.c tho doesnt auto-scroll. put the entry in a
> > scroller (like the scrolled entry test in test.c does in elementary) and
> > bingo. try elementary_test (yes - that list is scrollable - drag it).
> > 
> 
> In the single-line mode, the only way I got to make it scroll
> automatically to the right was to enable the line wrap and so:
> 
>   et = elm_entry_add(win);
>   elm_entry_single_line_set(et, TRUE);
>   elm_entry_editable_set(et, TRUE);
>   elm_entry_line_wrap_set(et, TRUE);
> 
> I don't know, why but also using elementary_test this is the only way to
> make the single-line entry to scroll as soon as you write (so to make
> the scroller follow the cursor).
> By the way, unfortunately this doesn't work with the password fields.

just look at the scrolled entry test in elementary_test - it scrolls to the
right for the single line entires (automatically as you type or move the cursor
with arrow keys)

-- 
- Codito, ergo sum - "I code, therefore I am" --
The Rasterman (Carsten Haitzler)ras...@rasterman.com


--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] edje: emit signal to 'GROUP' part

2009-05-04 Thread Jose Gonzalez
   pieterg wrote:

> On Saturday 02 May 2009 22:08:27 Gustavo Sverzut Barbieri wrote:
>   
>> On Sat, May 2, 2009 at 4:15 PM, pieterg  wrote:
>> 
>>> On Saturday 02 May 2009 19:26:00 Gustavo Sverzut Barbieri wrote:
>>>   
 On Sat, May 2, 2009 at 1:28 PM, pieterg  wrote:
 
> How about if we allow the use of "group:signal" as signal name?
> I've implemented this as a test, and it works like expected.
>   
 I don't know if it would break things, possibly you better do check if
 there is a part with that id and it is GROUP in order to avoid
 breaking existing apps that may use ":" in the name.
 
>>> OK, good point. So something like this perhaps?
>>>   
>> mostly. I liked your patch, but committed a slightly different version
>> that does only one strchr() and uses strdupa() instead of strdup() as
>> strings live for short time and are rather small.
>>
>> I also changed it to use the part name, not the source name as usually
>> you can have more than one part using the same group/source. See
>> attached example.
>> 
>
> Indeed, I was in doubt about whether to use the part name or the source 
> name, changed it to the source name the last minute. But in order to allow 
> the same group to be swallowed several times, we need to use the part name, 
> as you say.
>   

   That ability was part of what was intended in the original design. There
were other apects that I recall discussing with rephorm at the time.. but
can't recall just exactly what those were anymore.

   There was one other fairly simple extension I do recall we discussed
at the time: we wanted to add to edje (along similar lines) the ability
to embedd other descriptively defined 'objects' via loadable modules and
the basic swallow mechanism.

   This was to add a new "OBJECT" part type, whose main decription would
have two attributes, say "module" and "src".

   Thus for example one would have as part of an OBJECT part description:

 module: "module_name";
 src: "some uri";

   The 'module' would refer to an "edje object module" which would simply be
a loadable lib which has a few basic interfaces. For example, besides the usual
module init/shutdown funcs, they must also expose an "add" function of the form:

Evas_Object *(*add)(Evas *evas);

and a "file set" function of the form:

void (*file_set)(Evas_Object *obj, const char *uri);

and this is what the 'src: "some uri";' would refer to for being 'set'.

   Further refinements of this are possible, but just with this one can
extend edje in some interesting and non-trivial ways which many can use.
For example, most any smart class you can define that would allow for the
smart objs it creates to have a file 'set' on its instances... say eg.
an "svg" module, where one sets .svg docs as the files.. or say some
kind of 'gadget' module where you set a .edj file as a theme... or many,
many such kinds of things. Very similar of course to the html  tag
and other such.

  Since these modules can do much more than use 'sandboxed' scripts, it might
also be nice to add an edje api func to disable loading any object modules,
or 'unknown' ones somehow, etc.

   This is all fairly straightforward to implement, if desired.


Want more out of life?? Fast track your career with an online degree.
http://thirdpartyoffers.juno.com/TGL2141/fc/BLSrjpTKL6dobI0ICbt3elKJ0bxR9DVnlLJFOZtlrQNbZUgKsdcQ9mpncC8/

--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] single-line textblock auto scroll

2009-05-04 Thread Marco Trevisan (Treviño)
Carsten Haitzler (The Rasterman) wrote:
> On Thu, 30 Apr 2009 17:35:15 -0300 Gustavo Sverzut Barbieri
>  said:
> 
>> On Thu, Apr 30, 2009 at 3:56 PM, Tomaz Noleto  wrote:
>>> Hi,
>>>
>>> I am trying to use TEXTBLOCK with entry_mode EDITABLE, but I am facing
>>> a problem when the typed text gets bigger than the part size. I was
>>> expecting that the text could scroll automatically to the left and the
>>> cursor would not cross the part's boundaries. Is there any properties
>>> that I could set in edje to get this behavior? should I implement it
>>> manually in my app? Or should it be a built-in feature to be done in
>>> edje backend?
>> edje is not a widget set, but basic building blocks. You need to
>> implement the scroll yourself, see elm_entry.c
> 
> what he said - elm_entry.c tho doesnt auto-scroll. put the entry in a scroller
> (like the scrolled entry test in test.c does in elementary) and bingo. try
> elementary_test (yes - that list is scrollable - drag it).
> 

In the single-line mode, the only way I got to make it scroll
automatically to the right was to enable the line wrap and so:

et = elm_entry_add(win);
elm_entry_single_line_set(et, TRUE);
elm_entry_editable_set(et, TRUE);
elm_entry_line_wrap_set(et, TRUE);

I don't know, why but also using elementary_test this is the only way to
make the single-line entry to scroll as soon as you write (so to make
the scroller follow the cursor).
By the way, unfortunately this doesn't work with the password fields.

-- 
Treviño's World - Life and Linux
http://www.3v1n0.net/


--
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


[E-devel] e17 crashes when loading/unloading modules

2009-05-04 Thread Albin Tonnerre
Hello,
On my two computers, unloading and loading modules via the GUI gives a segfault.
Apparently, it's due to _e_configure_module_update_cb being called, as the
backtrace shows:

0x7f32973f3af3 in select () from /lib/libc.so.6
(gdb) bt
#0  0x7f32973f3af3 in select () from /lib/libc.so.6
#1  0x7f329447382e in ?? () from /usr/lib/libxcb.so.1
#2  0x7f329447559a in xcb_wait_for_event () from /usr/lib/libxcb.so.1
#3  0x7f3297ced4a8 in ?? () from /usr/lib/libX11.so.6
#4  0x7f3297ced85d in ?? () from /usr/lib/libX11.so.6
#5  0x7f3297cee131 in _XReadEvents () from /usr/lib/libX11.so.6
#6  0x7f3297cd4958 in XNextEvent () from /usr/lib/libX11.so.6
#7  0x0048516f in e_alert_show (
text=0x4e2d48 "This is very bad. Enlightenment SEGV'd.\n\nThis is not meant 
to happen and is likely a sign of\na bug in Enlightenment or the libraries it 
relies\non. You can gdb attach to this process now to try\ndebug i"...) at 
e_alert.c:129
#8  0x0046f017 in e_sigseg_act (x=, info=, 
data=) at e_signals.c:69
#9  
#10 eina_list_append (list=0x1, data=0x20fba50) at eina_list.c:566
#11 0x004a0b56 in _queue_append (obj=0x1736e20, command=4, icon=0x0, 
label=0x0, header=0, func=0, 
data=0x0, val=0x0, relative=0, use_relative=0, item=-1) at 
e_widget_ilist.c:222
#12 0x004a0ced in e_widget_ilist_selected_set (obj=0x1, n=)
at e_widget_ilist.c:598
#13 0x7f328e7bd4d9 in _e_configure_module_update_cb (data=0x1a68610, 
type=, 
event=) at e_conf.c:519
#14 0x7f32981f87d6 in _ecore_event_call () at ecore_events.c:439
#15 0x7f32982014e5 in _ecore_main_loop_iterate_internal 
(once_only=-1740584304) at ecore_main.c:679
#16 0x7f32982016f7 in ecore_main_loop_begin () at ecore_main.c:97
#17 0x0042ea5a in main (argc=1, argv=0x1550294) at e_main.c:1062

Looking at the source, I found that e_widget_ilist_selected_get is called with
eco->cat_list as an argument, in e_conf.c. However, cat_list has been a
widget_toolbar since November, so there's likely a mistake here and this call
should probably be replaced with e_widget_toolbar_item_select

However, I'm not sure how to fix this, as I'm not sure whether a call to
e_widget_toolbar_item_select is necessary (the correct category is still
selected without the function being called, eg when commenting out the whole
callback). Also, I'm not sure why the callback is called when loading modules,
in the first place.

I'd appreciate if anyone had pointers and could enlighten me on the matter.

Regards,
-- 
Albin Tonnerre


signature.asc
Description: Digital signature
--
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


[E-devel] places, hal and device kit

2009-05-04 Thread Gustavo Sverzut Barbieri
http://blog.fubar.dk/?p=105

short summary: gnome is leading the move away from HAL to DeviceKit.

Dave, maybe we should take on this and follow they steps? I don't know
about device kit, but it's meant to be a simple thing, at least
compared to the huge beast that is hal.

-- 
Gustavo Sverzut Barbieri
http://profusion.mobi embedded systems
--
MSN: barbi...@gmail.com
Skype: gsbarbieri
Mobile: +55 (19) 9225-2202

--
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] [emotion][PATCH] fixing bugs after eina list change

2009-05-04 Thread Bruno Dilly
On Mon, May 4, 2009 at 3:51 PM, Gustavo Sverzut Barbieri
 wrote:
> On Mon, May 4, 2009 at 3:23 PM, Bruno Dilly  wrote:
>> This patch fix some bugs in gstreamer module.
>
> not good on this chunk:
>
> @@ -101,6 +101,7 @@
>                  GstCaps            *sink_caps;
>
>                  asink = (Emotion_Audio_Sink *)eina_list_data_get(alist);
> +                 alist = eina_list_next(alist);
>                  sink_pad =
> gst_element_get_pad(gst_bin_get_by_name(GST_BIN(ev->pipeline),
> "a52dec"), "src");
>                  sink_caps = gst_pad_get_caps(sink_pad);
>
> original alist is lost. :-(

Yeah, reading just the patch, it looks like alist is lost, but ev
keeps this pointer (ev->audio_sinks).
I don't know why, but when the eina_list changes were applied (commit
39195), ecore_list_next was substituted only by eina_list_data_get..
So, taking a look in the entire function, it looks right. I will try
to describe better the next patches.

>
>
>
> --
> Gustavo Sverzut Barbieri
> http://profusion.mobi embedded systems
> --
> MSN: barbi...@gmail.com
> Skype: gsbarbieri
> Mobile: +55 (19) 9225-2202
>

--
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


[E-devel] [GSoC] Adding blog to planet e

2009-05-04 Thread Andre Dieb
Hello list,

I'm one of the students for this year E's GSoC and I'm reporting project
progress on my blog. Could you please add it to planet-e?

The rss feed of the specific project label is
http://genuinepulse.blogspot.com/feeds/posts/default/-/eupnp.

Thanks in advance.

-- 
André Dieb Martins

Embedded Systems and Pervasive Computing Lab (Embedded)
Electrical Engineering Department (DEE)
Center of Electrical Engineering and Informatics (CEEI)
Federal University of Campina Grande (UFCG)

Blog: http://genuinepulse.blogspot.com/
Mail: dieb at embedded.ufcg.edu.br, andre.dieb at gmail.com
--
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] [emotion][PATCH] fixing bugs after eina list change

2009-05-04 Thread Vincent Torri


On Mon, 4 May 2009, Bruno Dilly wrote:

> This patch fix some bugs in gstreamer module.

can you please open a ticket and attach the patch, please ? 
(http://trac.enlightenment.org/e/newticket)

thank you

Vincent

--
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] [emotion][PATCH] fixing bugs after eina list change

2009-05-04 Thread Gustavo Sverzut Barbieri
On Mon, May 4, 2009 at 3:23 PM, Bruno Dilly  wrote:
> This patch fix some bugs in gstreamer module.

not good on this chunk:

@@ -101,6 +101,7 @@
  GstCaps*sink_caps;

  asink = (Emotion_Audio_Sink *)eina_list_data_get(alist);
+ alist = eina_list_next(alist);
  sink_pad =
gst_element_get_pad(gst_bin_get_by_name(GST_BIN(ev->pipeline),
"a52dec"), "src");
  sink_caps = gst_pad_get_caps(sink_pad);

original alist is lost. :-(



-- 
Gustavo Sverzut Barbieri
http://profusion.mobi embedded systems
--
MSN: barbi...@gmail.com
Skype: gsbarbieri
Mobile: +55 (19) 9225-2202

--
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


[E-devel] [emotion][PATCH] fixing bugs after eina list change

2009-05-04 Thread Bruno Dilly
This patch fix some bugs in gstreamer module.
Index: src/modules/gstreamer/emotion_gstreamer_pipeline_cdda.c
===
--- src/modules/gstreamer/emotion_gstreamer_pipeline_cdda.c	(revision 40503)
+++ src/modules/gstreamer/emotion_gstreamer_pipeline_cdda.c	(working copy)
@@ -108,7 +108,7 @@
if (!asink) return NULL;
 
ev->audio_sinks = eina_list_append(ev->audio_sinks, asink);
-   if (!eina_list_data_find(ev->audio_sinks, asink))
+   if (eina_error_get())
  {
 	free(asink);
 	return NULL;
Index: src/modules/gstreamer/emotion_gstreamer_pipeline_dvd.c
===
--- src/modules/gstreamer/emotion_gstreamer_pipeline_dvd.c	(revision 40503)
+++ src/modules/gstreamer/emotion_gstreamer_pipeline_dvd.c	(working copy)
@@ -101,6 +101,7 @@
 		  GstCaps*sink_caps;
 
 		  asink = (Emotion_Audio_Sink *)eina_list_data_get(alist);
+		  alist = eina_list_next(alist);
 		  sink_pad = gst_element_get_pad(gst_bin_get_by_name(GST_BIN(ev->pipeline), "a52dec"), "src");
 		  sink_caps = gst_pad_get_caps(sink_pad);
 
@@ -165,7 +166,7 @@
 	vsink = (Emotion_Video_Sink *)malloc(sizeof(Emotion_Video_Sink));
 	if (!vsink) return;
 	ev->video_sinks = eina_list_append(ev->video_sinks, vsink);
-	if (!eina_list_data_find(ev->video_sinks, vsink))
+	if (eina_error_get())
 	  {
 	 free(vsink);
 	 return;
@@ -203,7 +204,7 @@
 	asink = (Emotion_Audio_Sink *)malloc(sizeof(Emotion_Audio_Sink));
 	if (!asink) return;
 	ev->audio_sinks = eina_list_append(ev->audio_sinks, asink);
-	if (!eina_list_data_find(ev->audio_sinks, asink))
+	if (eina_error_get())
 	  {
 	 free(asink);
 	 return;
Index: src/modules/gstreamer/emotion_gstreamer_pipeline.c
===
--- src/modules/gstreamer/emotion_gstreamer_pipeline.c	(revision 40503)
+++ src/modules/gstreamer/emotion_gstreamer_pipeline.c	(working copy)
@@ -97,7 +97,7 @@
 	vsink = (Emotion_Video_Sink *)calloc(1, sizeof(Emotion_Video_Sink));
 	if (!vsink) return;
 	ev->video_sinks = eina_list_append(ev->video_sinks, vsink);
-	if (!eina_list_data_find(ev->video_sinks, vsink))
+	if (eina_error_get())
 	  {
 	 free(vsink);
 	 return;
@@ -126,14 +126,13 @@
 	asink = (Emotion_Audio_Sink *)calloc(1, sizeof(Emotion_Audio_Sink));
 	if (!asink) return;
 	ev->audio_sinks = eina_list_append(ev->audio_sinks, asink);
-	if (!eina_list_data_find(ev->audio_sinks, asink))
+	if (eina_error_get())
 	  {
 	 free(asink);
 	 return;
 	  }
 
-	for (index = 0; asink != eina_list_nth(ev->audio_sinks, index); index++)
-	  ;
+	index = eina_list_count(ev->audio_sinks);
 	asink->sink = emotion_audio_sink_create(ev, index);
 	gst_bin_add(GST_BIN(ev->pipeline), asink->sink);
 	audiopad = gst_element_get_pad(asink->sink, "sink");
@@ -155,7 +154,7 @@
if (!vsink) return NULL;
 
ev->video_sinks = eina_list_append(ev->video_sinks, vsink);
-   if (!eina_list_data_find(ev->video_sinks, vsink))
+   if (eina_error_get())
  {
 	free(vsink);
 	return NULL;
--
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel