Re: [Vala] gstreamer element

2011-04-11 Thread Thijs Vermeir
Hey, On Sun, Apr 10, 2011 at 10:27 PM, Jordi Burguet Castell wrote: > Hello, > > Has anyone tried to do a gstreamer *element* in vala? It sounds to me > like it would be worth because of the more succinct syntax, but I > could not figure out how to put the element and pads description in > the ba

Re: [Vala] [PATCH] x11: Add XTest bindings

2011-04-11 Thread Luca Bruno
On Mon, Apr 11, 2011 at 08:58:42AM +0200, Alexander Kurtz wrote: > Hi everybody, > > I've attached bindings for the XTest extension (aka libxtst) and a small > demonstration program which will start/pause your music player. > > This is how it should work: > > $ valac --pkg=x11 --pkg=xtst -

Re: [Vala] gstreamer element

2011-04-11 Thread Sandino Flores Moreno
Here is another example: https://github.com/tigrux/gst-plugin-omap4videodecbin/blob/master/gst/gstomap4videodecbin.vala On Mon, Apr 11, 2011 at 3:28 AM, Thijs Vermeir wrote: > Hey, > > On Sun, Apr 10, 2011 at 10:27 PM, Jordi Burguet Castell > wrote: >> Hello, >> >> Has anyone tried to do a gstr

Re: [Vala] gstreamer element

2011-04-11 Thread Jordi Burguet Castell
Excellent! I was missing the "class construct" syntax. Very nice examples, thanks to you both! Jordi On Mon, Apr 11, 2011 at 8:26 AM, Sandino Flores Moreno wrote: > Here is another example: > > https://github.com/tigrux/gst-plugin-omap4videodecbin/blob/master/gst/gstomap4videodecbin.vala > > On

Re: [Vala] vala-list Digest, Vol 41, Issue 11

2011-04-11 Thread Dai Derek
e note that this patch needs the patch I submitted earlier[1]. > > I'm looking forward to any comments/criticism/whatever! If everything is > ok, I would be happy if you could merge this into master. > > Best regards > > Alexander Kurtz > > [1] http://mail.gnome

Re: [Vala] [PATCH] x11: Add XTest bindings

2011-04-11 Thread Alexander Kurtz
Am Montag, den 11.04.2011, 15:19 +0200 schrieb Luca Bruno: > Thanks for your contribution. I'd suggest you to report bugs into bugzilla > so that patches don't get forgotten. https://bugzilla.gnome.org/show_bug.cgi?id=647465 Best regards Alexander Kurtz signature.asc Description: This is a dig

Re: [Vala] [PATCH] x11: add several type definitions from X.h

2011-04-11 Thread Alexander Kurtz
Am Donnerstag, den 07.04.2011, 12:51 +0200 schrieb Alexander Kurtz: > I'm currently working on writing Vala bindings for the XTest extension. > For that to work I need several simple type definitions > from /usr/include/X11/X.h which aren't yet defined in x11.vapi. > > The attached patch adds thes

[Vala] [vala][newbie] file_info.get_file_type

2011-04-11 Thread Charles Hixson
I can't figure out what I'm doing wrong, but file_info.get_file_type always returns a value of 0 (i.e., UNKNOWN): // valac --pkg gio-2.0 walker.vala // ./walker void walk (File directory) { try { var enumerator = directory.enumerate_children (FILE

[Vala] [newbie][vala] file_info.get_file_type() is always UNKNOWN

2011-04-11 Thread Charles Hixson
I can't figure out what I'm doing wrong. What I'm trying to do is determine whether a file is a directory or not. But I always get the answer of UNKNOWN (i.e., 0) whether it's a data file or a directory, // valac --pkg gio-2.0 walker.vala // ./walker void walk (File directory) { try {

Re: [Vala] [newbie][vala] file_info.get_file_type() is always UNKNOWN

2011-04-11 Thread Charles Hixson
My apologies for the duplicate post. The first one didn't look like it went, so I assumed I'd accidentally canceled it. ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list

Re: [Vala] [vala][newbie] file_info.get_file_type

2011-04-11 Thread Jens Georg
On Mon, 2011-04-11 at 22:49 -0700, Charles Hixson wrote: > I can't figure out what I'm doing wrong, but > file_info.get_file_type always returns a value of 0 > (i.e., UNKNOWN): That's correct, becauseā€¦ > > > // valac --pkg gio-2.0 walker.vala > // ./walker