Re: [Vala] Retrieve Row ID from Gtk.TreeView

2013-10-31 Thread Daniel Brendle
> > [CCode (instance_pos = -1)] > public void selected_request(Gtk.TreeView source){ > Gtk.TreeSelection sel = source.get_selection(); > Gtk.TreeIter selected; > Gtk.TreeModel model; > sel.get_selected(out model

Re: [Vala] Async call GLib.IOStream.splice_async failed!

2013-10-31 Thread Heiher
https://bugzilla.gnome.org/show_bug.cgi?id=710103 On Mon, Oct 14, 2013 at 3:30 PM, Luca Bruno wrote: > On 14/10/2013 06:59, Heiher wrote: >> >> Hello, >> >> vala codes: >> public static int main (string args[]) { >> GLib.IOStream? is0 = null; >> GLib.IOStream? is1 = null; >> >>

Re: [Vala] libsoup Session.Async does not send stuff

2013-10-31 Thread Daniel Brendle
On Thu, 2013-10-31 at 20:03 +0100, Luca Bruno wrote: > Keep the session alive here: Soup.SessionSync session = new > Soup.SessionSync (); > Add that as a server instance. Also, keep the server itself alive > somewhere. > Acutally this worked. Now i think i understand. The lifetime of the SessionAs

Re: [Vala] libsoup Session.Async does not send stuff

2013-10-31 Thread Luca Bruno
Keep the session alive here: Soup.SessionSync session = new Soup.SessionSync (); Add that as a server instance. Also, keep the server itself alive somewhere. On Thu, Oct 31, 2013 at 6:21 PM, Daniel Brendle wrote: > > > Of course it won't be reentrant anymore, and multiple > > requests to the pro

Re: [Vala] libsoup Session.Async does not send stuff

2013-10-31 Thread Daniel Brendle
> Of course it won't be reentrant anymore, and multiple > requests to the proxy will trample each other. But the > point is that libsoup works and the handler should is > correctly written; the fault is with vala. But as I said, > I cannot locate the fault. Perhaps its vala+libsoup > interaction b

Re: [Vala] Finally first release of my tool "Network Packet Cleaner" ^__^

2013-10-31 Thread Tarnyko
r...@no-log.org writes: Hello, I'm proud to present my "Packet Cleaner" tool ! (ehm no imagination for a good name so it's Network Packet Cleaner" :-/) Congratulations ! I just tested it on Win7 x64 and it works fine. I especially like the interactivity of the "Circle" panel. Will kee

[Vala] General tree walking question

2013-10-31 Thread Donn Ingle
Hi, Apologies if this is OT. I am trying to do this in Vala. This is a general tree walking question. I'm a bit thick and trees really kill my brain. Here's the situation: I have a "Thing" class that contains an ArrayList of (potentially) many other Things. This all results in a tree where Things

[Vala] Finally first release of my tool "Network Packet Cleaner" ^__^

2013-10-31 Thread raum
Hello, I'm proud to present my "Packet Cleaner" tool ! (ehm no imagination for a good name so it's Network Packet Cleaner" :-/) I've asked a lot of questions about how to handle files, how to use GTK, etc... and I wanted to show you the conclusion. I'm not sure I've the right to include tsha

Re: [Vala] libsoup Session.Async does not send stuff

2013-10-31 Thread Nor Jaidi Tuah
On Thu, 2013-10-31 at 16:56 +0800, Nor Jaidi Tuah wrote: > Perhaps this is a manifestation of the async+closure > bug: https://bugzilla.gnome.org/show_bug.cgi?id=653143 Please ignore my previous remark. That bug report was about vala async. I don't think that is relevant here. The strange thing a

Re: [Vala] libsoup Session.Async does not send stuff

2013-10-31 Thread Nor Jaidi Tuah
Perhaps this is a manifestation of the async+closure bug: https://bugzilla.gnome.org/show_bug.cgi?id=653143 Nice day Nor Jaidi Tuah PRIVILEGED/CONFIDENTIAL information may be contained in this message. If you are neither the addressee (intended recipient) nor an authorised recipient of the

Re: [Vala] Gdk event handler cast mystery

2013-10-31 Thread Donn Ingle
On 30 October 2013 18:45, Evan Nemerson wrote: > Use the relevant Gdk.Event member instead: > Gdk.EventButton eb = event.button; Ah! Super thanks. \d ___ vala-list mailing list vala-list@gnome.org https://mail.gnome.org/mailman/listinfo/vala-li