[E-devel] edje patch

2009-02-19 Thread Vincent Torri


hey,

no objection of i commit the patch below ? It's for Windows :p

Vincent


Index: src/bin/edje_cc_parse.c
===
--- src/bin/edje_cc_parse.c (révision 39091)
+++ src/bin/edje_cc_parse.c (copie de travail)
@@ -721,7 +721,7 @@
free(def);
  */
  }
-   fd = open(file_in, O_RDONLY | O_BINARY);
+   fd = open(file_in, O_RDONLY | O_BINARY, S_IRUSR | S_IWUSR);
if (fd  0)
  {
 	fprintf(stderr, %s: Error. cannot open file \%s\ for input. 
%s\n,

Index: src/bin/edje_cc_handlers.c
===
--- src/bin/edje_cc_handlers.c  (révision 39091)
+++ src/bin/edje_cc_handlers.c  (copie de travail)
@@ -823,7 +823,7 @@
di-key = parse_str(0);
filename = parse_str(1);

-   fd = open(filename, O_RDONLY | O_BINARY);
+   fd = open(filename, O_RDONLY | O_BINARY, S_IRUSR | S_IWUSR);
if (fd  0)
  {
 fprintf(stderr, %s: Error. %s:%i when opening file \%s\: 
\%s\\n,
--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] edje patch

2009-02-19 Thread The Rasterman
On Thu, 19 Feb 2009 10:29:57 +0100 (CET) Vincent Torri vto...@univ-evry.fr
said:

hmm - no. no objection. :) interesting that you have to do the patch
though... :)

 hey,
 
 no objection of i commit the patch below ? It's for Windows :p
 
 Vincent
 
 
 Index: src/bin/edje_cc_parse.c
 ===
 --- src/bin/edje_cc_parse.c   (révision 39091)
 +++ src/bin/edje_cc_parse.c   (copie de travail)
 @@ -721,7 +721,7 @@
   free(def);
*/
}
 -   fd = open(file_in, O_RDONLY | O_BINARY);
 +   fd = open(file_in, O_RDONLY | O_BINARY, S_IRUSR | S_IWUSR);
  if (fd  0)
{
   fprintf(stderr, %s: Error. cannot open file \%s\ for input. 
 %s\n,
 Index: src/bin/edje_cc_handlers.c
 ===
 --- src/bin/edje_cc_handlers.c(révision 39091)
 +++ src/bin/edje_cc_handlers.c(copie de travail)
 @@ -823,7 +823,7 @@
  di-key = parse_str(0);
  filename = parse_str(1);
 
 -   fd = open(filename, O_RDONLY | O_BINARY);
 +   fd = open(filename, O_RDONLY | O_BINARY, S_IRUSR | S_IWUSR);
  if (fd  0)
{
   fprintf(stderr, %s: Error. %s:%i when opening file \%s\: 
 \%s\\n,
 


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


--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] edje patch

2009-02-19 Thread Vincent Torri


On Thu, 19 Feb 2009, Carsten Haitzler (The Rasterman) wrote:

 On Thu, 19 Feb 2009 10:29:57 +0100 (CET) Vincent Torri vto...@univ-evry.fr
 said:

 hmm - no. no objection. :) interesting that you have to do the patch
 though... :)

thanks, in svn

Vincent

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] [Patch] Illume keyboard dictionary fix and speedup

2009-02-19 Thread The Rasterman
On Mon, 02 Feb 2009 21:00:12 +0100 Marco Trevisan (Treviño) m...@3v1n0.net
said:

 Olof Sjobergh wrote:
  I made a mistake in the last patch, so here's a new one that should
  work better. It fixes the problems i mentioned above, plus:
  
  - E no longer segfaults on entering a € (euro sign) from the Numbers
  keyboard. This would segfault since it is not in the normalisation
  table and thus won't be normalised to a char  128. To fix this we
  just include a check if a normalised char is  128 before looking for
  tuples.
 
 Hello I've just tested this patch in my Openmoko Freerunner, but now
 every time I add a char like à, è, é, ù, ì... I get a segmentation fault.
 
 Have you any idea (i'm not using no dict at all [I've disabled the
 default English one], but the personal dynamic dict only)?

also tested here. still markedly slow :( this is going to need possible
reverting all the way back to how it was before - fast but with utf8 errors. :(

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


--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


[E-devel] [PATCH] gstreamer v4l support for emotion

2009-02-19 Thread Lars Munch
This patch adds gstreamer v4l support to emotion. If you got a webcam it can
be tested by doing:

emotion_test -gstreamer v4l://

This will use the first video device /dev/video0.

If you do not have a webcam, you can also try it using the Virtual Video driver
(modprobe vivi). If you got more that one video device you can also use

emotion_test -gstreamer v4l://0 v4l://1

to play from both /dev/video0 and /dev/video1.

Regards
Lars Munch

---
 src/modules/gstreamer/Makefile.am  |5 +-
 src/modules/gstreamer/emotion_gstreamer.c  |   13 +++-
 src/modules/gstreamer/emotion_gstreamer_pipeline.c |6 +-
 src/modules/gstreamer/emotion_gstreamer_pipeline.h |1 +
 .../gstreamer/emotion_gstreamer_pipeline_v4l.c |   85 
 5 files changed, 103 insertions(+), 7 deletions(-)
 create mode 100644 src/modules/gstreamer/emotion_gstreamer_pipeline_v4l.c

diff --git a/src/modules/gstreamer/Makefile.am 
b/src/modules/gstreamer/Makefile.am
index f3519af..6aee2e3 100644
--- a/src/modules/gstreamer/Makefile.am
+++ b/src/modules/gstreamer/Makefile.am
@@ -24,10 +24,11 @@ emotion_gstreamer_pipeline.h \
 emotion_gstreamer_pipeline_cdda.c \
 emotion_gstreamer_pipeline_dvd.c \
 emotion_gstreamer_pipeline_file.c \
-emotion_gstreamer_pipeline_uri.c
+emotion_gstreamer_pipeline_uri.c \
+emotion_gstreamer_pipeline_v4l.c
 gstreamer_la_LIBADD  = @EVAS_LIBS@ @ECORE_LIBS@ @GST_LIBS@ 
$(top_builddir)/src/lib/libemotion.la
 gstreamer_la_LDFLAGS = -module -avoid-version
 gstreamer_la_LIBTOOLFLAGS = --tag=disable-static
 gstreamer_la_DEPENDENCIES = $(top_builddir)/config.h
 
-endif
\ No newline at end of file
+endif
diff --git a/src/modules/gstreamer/emotion_gstreamer.c 
b/src/modules/gstreamer/emotion_gstreamer.c
index d528dea..1516bd3 100644
--- a/src/modules/gstreamer/emotion_gstreamer.c
+++ b/src/modules/gstreamer/emotion_gstreamer.c
@@ -390,6 +390,17 @@ em_file_open(const char   *file,
 return 0;
  }
  }
+   /* v4l */
+   else if (strstr(file, v4l://))
+ {
+   fprintf(stderr, [Emotion] [gst] build V4L pipeline\n);
+   if (!(emotion_pipeline_v4l_build(ev, file)))
+ {
+fprintf(stderr, [Emotion] [gst] error while building V4L 
pipeline\n);
+gst_object_unref(ev-pipeline);
+return 0;
+ }
+ }
/* Normal media file */
else
  {
@@ -605,8 +616,6 @@ em_len_get(void *video)
return val / 10.0;
 
  fallback:
-   fputs(Gstreamer reported no length, try existing sinks...\n, stderr);
-
ecore_list_first_goto(ev-audio_sinks);
while ((asink = ecore_list_next(ev-audio_sinks)) != NULL)
  if (asink-length_time = 0)
diff --git a/src/modules/gstreamer/emotion_gstreamer_pipeline.c 
b/src/modules/gstreamer/emotion_gstreamer_pipeline.c
index cf1e28b..5fcd742 100644
--- a/src/modules/gstreamer/emotion_gstreamer_pipeline.c
+++ b/src/modules/gstreamer/emotion_gstreamer_pipeline.c
@@ -93,7 +93,7 @@ file_new_decoded_pad_cb(GstElement *decodebin,
GstElement *queue;
GstPad *videopad;
 
-   vsink = (Emotion_Video_Sink *)malloc(sizeof(Emotion_Video_Sink));
+   vsink = (Emotion_Video_Sink *)calloc(1, sizeof(Emotion_Video_Sink));
if (!vsink) return;
if (!ecore_list_append(ev-video_sinks, vsink))
  {
@@ -121,7 +121,7 @@ file_new_decoded_pad_cb(GstElement *decodebin,
Emotion_Audio_Sink *asink;
GstPad *audiopad;
 
-   asink = (Emotion_Audio_Sink *)malloc(sizeof(Emotion_Audio_Sink));
+   asink = (Emotion_Audio_Sink *)calloc(1, sizeof(Emotion_Audio_Sink));
if (!asink) return;
if (!ecore_list_append(ev-audio_sinks, asink))
  {
@@ -146,7 +146,7 @@ emotion_video_sink_new(Emotion_Gstreamer_Video *ev)
 
if (!ev) return NULL;
 
-   vsink = (Emotion_Video_Sink *)malloc(sizeof(Emotion_Video_Sink));
+   vsink = (Emotion_Video_Sink *)calloc(1, sizeof(Emotion_Video_Sink));
if (!vsink) return NULL;
 
if (!ecore_list_append(ev-video_sinks, vsink))
diff --git a/src/modules/gstreamer/emotion_gstreamer_pipeline.h 
b/src/modules/gstreamer/emotion_gstreamer_pipeline.h
index 2e8a703..3a8b849 100644
--- a/src/modules/gstreamer/emotion_gstreamer_pipeline.h
+++ b/src/modules/gstreamer/emotion_gstreamer_pipeline.h
@@ -14,6 +14,7 @@ int emotion_pipeline_cdda_build   (void *video, const 
char * device, uns
 int emotion_pipeline_file_build   (void *video, const char *file);
 int emotion_pipeline_uri_build(void *video, const char *uri);
 int emotion_pipeline_dvd_build(void *video, const char *device);
+int emotion_pipeline_v4l_build(void *video, const char *device);
 int emotion_pipeline_cdda_track_count_get (void *video);
 
 GstElement *emotion_audio_sink_create (Emotion_Gstreamer_Video 
*ev, int index);
diff --git a/src/modules/gstreamer/emotion_gstreamer_pipeline_v4l.c 

[E-devel] Submit this EWL bug in tracker?

2009-02-19 Thread Terseus
Hi E-developers!!

First of all, sorry for my possible-poor english, I write it very few.

I have found a bug (at least I think it's a bug) in the EWL libraries, but
don't know if I must submit it, let me explain...

I'm developing a text-editor using EWL, the app have a tabbed bar (an
Ewl_Notebook widget) and I create and destroy pages without problem, except
in one special situation: when I destroy the last page of the tabbar and
create another one, I receive the next EWL messages:

* Ewl Developer Warning * :
  To find where this is occurring set a breakpoint
  for the function ewl_print_warning.
 This program is calling:

 ewl_attach_get();

 With the paramter:

 w

 as the wrong type. (NULL) instead of (widget).
 Please fix your program.

 * Ewl Developer Warning * :
  To find where this is occurring set a breakpoint
  for the function ewl_print_warning.
 This program is calling:

 ewl_widget_hide();

 With the paramter:

 w

 as the wrong type. (NULL) instead of (widget).
 Please fix your program.


I think that EWL doesn't handle very well the void tabbars, but I have no
problem with it... except when I destroy the last page and create another
one exactly three times, that when I receive a Segmentation fault signal;
this don't happen if I don't destroy the last page, no matter how much pages
create and destroy, nor the sort of the pages.

In addition, as you can imagine, I don't have calls to the functions
ewl_attach_get or ewl_widget_hide in my code.

With a few of gdb I found that the SF signal is raised in the function
ewl_widget_type_is in the file ewl_widget.c.
In this function, the parameter widget is valid, but not his properties
inheritance and theme_path, I think that the signal is raised when, in
the loop, access to widget-inheritance (but it's only a supposition).

I don't post it in the tracker because I don't have the latest SVN build,
that is because I use Enlightenment as my primary (and unique) window
manager in this PC and now I have it with an almost-stable build (I build it
from SVN), also I have done some bad builds'n'rollbacks, so I don't have the
source code of my build (a stupid error, I know...) and don't know how in
the hell provide you the exactly version of my build; so, I don't know if
the bug is still present in the actual SVN and don't want full with garbage
the bug tracker.

If anyone can test this Ewl_Notebook bug with an updated build of EWL would
be great; if want my code for creation and destroy pages say it to me and
will send you.
Or if anyone can say me how can I get the exactly version of my build and if
I must post this in the tracker I'd be grateful.

Sorry for my noob behavior, but this will be my first bug submited in a free
software tracker, and don't want post invalid bugs, which I think must be
very annoying for the developers.

Thanks in advance.
Terseus.
--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] [Patch] Illume keyboard dictionary fix and speedup

2009-02-19 Thread Olof Sjobergh
On Thu, Feb 19, 2009 at 2:48 PM, The Rasterman Carsten Haitzler
ras...@rasterman.com wrote:
 also tested here. still markedly slow :( this is going to need possible
 reverting all the way back to how it was before - fast but with utf8 errors. 
 :(

Thanks for testing it. I guess the only choice is to revert the utf8
changes for now, then at least the keyboard will work for some
languages, until it can be fixed for good.

Best regards,

Olof Sjöbergh


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


 --
 Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
 -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
 -Strategies to boost innovation and cut costs with open source participation
 -Receive a $600 discount off the registration fee with the source code: SFAD
 http://p.sf.net/sfu/XcvMzF8H
 ___
 enlightenment-devel mailing list
 enlightenment-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


[E-devel] Eterm and utf8

2009-02-19 Thread Kim Woelders

Hello,

It is annoying that Eterm doesn't handle utf8. Here is a half-baked patch that 
might inspire somebody (Michael? :) ) to do it properly.

Beware! This patch breaks things in non-utf8 locales, probably doesn't work on 
big-endian platforms, and is not suited for anything except playing around.

That said, things seem to work fairly well with e.g. LANG=en_US.UTF-8 and selecting a 
good font, e.g.
Eterm -F -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1

With -misc-fixed-medium-r-normal-ja-13-120-75-75-c-120-iso10646-1 it even looks 
like Japanese and Korean is rendered correctly but there is some weirdness with 
column stepping (every second column is skipped).

/Kim--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] [Patch] Illume keyboard dictionary fix and speedup

2009-02-19 Thread The Rasterman
On Thu, 19 Feb 2009 21:53:33 +0100 Olof Sjobergh olo...@gmail.com said:

 On Thu, Feb 19, 2009 at 2:48 PM, The Rasterman Carsten Haitzler
 ras...@rasterman.com wrote:
  also tested here. still markedly slow :( this is going to need possible
  reverting all the way back to how it was before - fast but with utf8
  errors. :(
 
 Thanks for testing it. I guess the only choice is to revert the utf8
 changes for now, then at least the keyboard will work for some
 languages, until it can be fixed for good.

to fix this for good it needs a complete rehash of dict format (and thus code).
thus.. its going to fester on a todo list for a while.
-- 
- Codito, ergo sum - I code, therefore I am --
The Rasterman (Carsten Haitzler)ras...@rasterman.com


--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Eterm and utf8

2009-02-19 Thread Toma
Patch was not included in the email. Might be best to create a bug on
trac.enlightenment.org/e/ and attach the patch. There may already be a
bug open for UTF8 support...

-Toma.


2009/2/20 Kim Woelders k...@woelders.dk:
 Hello,

 It is annoying that Eterm doesn't handle utf8. Here is a half-baked patch
 that might inspire somebody (Michael? :) ) to do it properly.

 Beware! This patch breaks things in non-utf8 locales, probably doesn't work
 on big-endian platforms, and is not suited for anything except playing
 around.

 That said, things seem to work fairly well with e.g. LANG=en_US.UTF-8 and
 selecting a good font, e.g.
 Eterm -F -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1

 With -misc-fixed-medium-r-normal-ja-13-120-75-75-c-120-iso10646-1 it even
 looks like Japanese and Korean is rendered correctly but there is some
 weirdness with column stepping (every second column is skipped).

 /Kim
 --
 Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
 -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
 -Strategies to boost innovation and cut costs with open source participation
 -Receive a $600 discount off the registration fee with the source code: SFAD
 http://p.sf.net/sfu/XcvMzF8H
 ___
 enlightenment-devel mailing list
 enlightenment-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/enlightenment-devel



--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel