Re: [Vala] Compiling VTG under Ubuntu 11.10

2011-10-16 Thread bsquared
rastersoft writes: > Hi: > > That link points to a sample plugin, not to Vala Toys... :? > > El 16/10/11 17:47, bsquared escribió: As I indicated. The sample can be used as a guide to installing a gedit plugin. >> I believe I pieced together how to install the plugin from the >> Val GEdit Plug

Re: [Vala] SDL Sample not compiling correctly

2011-10-16 Thread Aaron
There is no need to report this as it has been corrected already: http://git.gnome.org/browse/vala/commit/vapi/sdl.vapi?id=1a311070fb505860e8f60b99df08a9d4aa37910b Quoting Luca Bruno : On Sun, Oct 16, 2011 at 1:26 PM, Simon Werbeck wrote: Hi, I tried compiling the SDL Sample from http://l

Re: [Vala] Compiling VTG under Ubuntu 11.10

2011-10-16 Thread rastersoft
Hi: That link points to a sample plugin, not to Vala Toys... :? El 16/10/11 17:47, bsquared escribió: rastersoft writes: Hi: I found your patches, and I applied it, but it still complains. Now the problem is with libafrodite: error: Package `afrodite-0.14' not found in specified Vala API d

Re: [Vala] SDL Sample not compiling correctly

2011-10-16 Thread Luca Bruno
On Sun, Oct 16, 2011 at 1:26 PM, Simon Werbeck wrote: > Hi, > > I tried compiling the SDL Sample from http://live.gnome.org/Vala/** > SDLSample > Compiling actually works without errors but when running, the application > is not responding to events. > I've

[Vala] SDL Sample not compiling correctly

2011-10-16 Thread Simon Werbeck
Hi, I tried compiling the SDL Sample from http://live.gnome.org/Vala/SDLSample Compiling actually works without errors but when running, the application is not responding to events. I've already isolated the error, it seems that the code for the Event.poll() function is not correct: private v

Re: [Vala] how to pass a List by reference?

2011-10-16 Thread Leonardo Ferreira Fontenelle
(Now mailing the whole list, not just Abderrahim Kitouni.) On Friday, October 14, 2011 12:16 PM, "Abderrahim Kitouni" wrote: > > The above compiles without problems for me (valac 0.14.0). This error > probably means that you are trying to use this variable from a lambda > expression. > > Another

[Vala] Help with Soup: get_chunk () vs. flatten ().data

2011-10-16 Thread bsquared
Hello, I'm following some c code as an example that uses MesageBody.get_chunk in a while loop. I am curious if/why this would be better than using Soup.MessageBody.flatten. the c code: while ((buffer = soup_message_body_get_chunk (http_message->response_body, offset))) {

Re: [Vala] Compiling VTG under Ubuntu 11.10

2011-10-16 Thread bsquared
rastersoft writes: > Hi: > > I found your patches, and I applied it, but it still complains. Now > the problem is with libafrodite: > > error: Package `afrodite-0.14' not found in specified Vala API > directories or GObject-Introspection GIR directories > Compilation failed: 1 error(s), 0 warning

[Vala] The right way to compare file timestamp?

2011-10-16 Thread Tal Hadad
I want to compare the timestamp of a given file, to see whether a modification warning shell be given. I try to use this code as a start(with GIO package): if (file.query_exists ()) { FileInfo info = file.query_filesystem_info ("*"); TimeVal temp_time; info.get_modification_time (out t

Re: [Vala] Compiling VTG under Ubuntu 11.10

2011-10-16 Thread rastersoft
Hi: I found your patches, and I applied it, but it still complains. Now the problem is with libafrodite: error: Package `afrodite-0.14' not found in specified Vala API directories or GObject-Introspection GIR directories Compilation failed: 1 error(s), 0 warning(s) The bug is because it's c

Re: [Vala] [suggestion] Make lambda generated func inline(performance)

2011-10-16 Thread Luca Bruno
2011/10/16 Tal Hadad > > I thought on this simple suggestion: > Whenever lambda expression exist, Vala translate it to func: > static (type) __lambda4_ ([args]) { > ... > } > > Lambda expression is used for callback, but Vala always produce > another func which is the real callback, which call la

[Vala] [suggestion] Make lambda generated func inline(performance)

2011-10-16 Thread Tal Hadad
I thought on this simple suggestion: Whenever lambda expression exist, Vala translate it to func: static (type) __lambda4_ ([args]) { ... } Lambda expression is used for callback, but Vala always produce another func which is the real callback, which call lambda func (maybe for allowing user data