Re: [Vala] GTK and Property problems

2010-06-26 Thread pHilipp Zabel
On Sat, Jun 26, 2010 at 9:36 AM, Andrew rugby...@gmail.com wrote: HI guys, Perhaps the simplest way to ask this is, could anyone tell me why when the attached file (Genie) is compiled and then run, do I get these error messages? (wasiliana:2710): Gtk-CRITICAL **: gtk_container_add:

Re: [Vala] maemo5 hildon input mode

2010-02-09 Thread pHilipp Zabel
On Tue, Feb 9, 2010 at 3:53 PM, Levi Bard taktaktaktaktaktaktaktaktak...@gmail.com wrote: While this is indeed correct workaround, the Hildon binding should probably be updated (so you get type-checking from the compiler). In that case, can that be a different vapi so that we can still use

Re: [Vala] maemo5 hildon input mode

2010-02-09 Thread pHilipp Zabel
2010/2/9 Jiří Zárevúcky zarevucky.j...@gmail.com: pHilipp Zabel píše v Út 09. 02. 2010 v 16:37 +0100: On Tue, Feb 9, 2010 at 3:53 PM, Levi Bard taktaktaktaktaktaktaktaktak...@gmail.com wrote: While this is indeed correct workaround, the Hildon binding should probably be updated (so you get

Re: [Vala] maemo5 hildon input mode

2010-02-09 Thread pHilipp Zabel
2010/2/9 Jiří Zárevúcky zarevucky.j...@gmail.com: pHilipp Zabel píše v Út 09. 02. 2010 v 22:05 +0100: 2010/2/9 Jiří Zárevúcky zarevucky.j...@gmail.com: pHilipp Zabel píše v Út 09. 02. 2010 v 16:37 +0100: On Tue, Feb 9, 2010 at 3:53 PM, Levi Bard taktaktaktaktaktaktaktaktak...@gmail.com

Re: [Vala] How to use the ZLib bindings?

2009-11-10 Thread pHilipp Zabel
Hi Yu, On Mon, Nov 9, 2009 at 7:12 PM, Feng Yu rainwood...@gmail.com wrote: On Sun, Oct 4, 2009 at 7:25 AM, Philipp Zabel pza...@gmx.de wrote: Hi, Does anybody have example code that uses the ZLib bindings? I tried to implement the example described at http://zlib.net/zlib_how.html

Re: [Vala] calling delegate from async

2009-10-24 Thread pHilipp Zabel
On Sat, Oct 24, 2009 at 12:59 PM, Jan Hudec b...@ucw.cz wrote: On Fri, Oct 23, 2009 at 15:31:53 +0200, pHilipp Zabel wrote: Hi, I'd like to call a delegate function from an async function, like this: class AsyncDelegate {         delegate void TestFunc ();         void test_func

Re: [Vala] calling delegate from async

2009-10-24 Thread pHilipp Zabel
On Sat, Oct 24, 2009 at 4:44 PM, pHilipp Zabel philipp.za...@gmail.com wrote: On Sat, Oct 24, 2009 at 12:59 PM, Jan Hudec b...@ucw.cz wrote: On Fri, Oct 23, 2009 at 15:31:53 +0200, pHilipp Zabel wrote: Hi, I'd like to call a delegate function from an async function, like this: class

[Vala] calling delegate from async

2009-10-23 Thread pHilipp Zabel
Hi, I'd like to call a delegate function from an async function, like this: class AsyncDelegate { delegate void TestFunc (); void test_func () { print (delegate\n); } async void test_async (TestFunc f) { print (async enter\n);

[Vala] problems with GMarkupParser bindings

2009-10-19 Thread pHilipp Zabel
Hi, I'm trying to use the Simple XML Subset Parser, starting from the example at http://live.gnome.org/Vala/MarkupSample. The GLib.MarkupParser struct is defined as follows: unowned GLib.MarkupParser parser = { (context, element_name, attribute_names, attribute_values) =

Re: [Vala] Interesting bug...

2009-10-18 Thread pHilipp Zabel
On Sat, Oct 17, 2009 at 3:31 PM, Magnus Therning mag...@therning.org wrote: Here's a piece of code I'm having some problems with:  int main( string[] args ) {      var res = store_password_sync( NETWORK_PASSWORD, DEFAULT,                                     Vala Test key, the password, 0 );

[Vala] [PATCH] add bindings for g_ascii_strtoull

2009-10-13 Thread Philipp Zabel
Hi, I'm missing to_uint64 from the glib-2.0 string bindings. regards Philipp diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi index eaea833..8f603f0 100644 --- a/vapi/glib-2.0.vapi +++ b/vapi/glib-2.0.vapi @@ -921,6 +921,8 @@ public class string { public ulong to_ulong (out weak

[Vala] How to use the ZLib bindings?

2009-10-04 Thread Philipp Zabel
Hi, Does anybody have example code that uses the ZLib bindings? I tried to implement the example described at http://zlib.net/zlib_how.html for inflation, but compilation failed with errors from gcc about STATUS_OK etc. symbols not being found. The following patch helped with that for some

Re: [Vala] Impossible to subclass from gio stream classes?

2009-10-01 Thread pHilipp Zabel
On Thu, Oct 1, 2009 at 7:04 PM, Jan Hudec b...@ucw.cz wrote: On Thu, Oct 01, 2009 at 09:43:39 +0200, Xavier Bestel wrote: Does that mean that sbuclassing a non-Vala GObject is different from subclassing a Vala one ? Well, somewhat. For non-vala classes, you can't call non-default

[Vala] Impossible to subclass from gio stream classes?

2009-09-30 Thread Philipp Zabel
Hi, I'd like to subclass GLib.BufferedInputStream. Vala doesn't like the following construct: class MyStream : GLib.BufferedInputStream { MyStream (GLib.InputStream base_stream) { base (base_stream); } } $ valac mystream.vala --pkg gio-2.0 mystream.vala:3.3-3.20: error: chain up

Re: [Vala] [RFC, PATCH] add async keyword to vapigen

2009-09-25 Thread pHilipp Zabel
On Fri, Sep 25, 2009 at 9:23 AM, Jan Hudec b...@ucw.cz wrote: On Thu, Sep 24, 2009 at 22:21:36 +0200, Philipp Zabel wrote: Or would it be better to make the parser recognize asynchronous functions that don't end in _async? An async function can be recognized by having a GAsyncReadyCallback

[Vala] RFC: hildon-1.vapi update for Maemo Fremantle

2009-09-24 Thread Philipp Zabel
Hi, I tried to update the hildon-1.vapi file to support the new widgets in Maemo Fremantle. What I did so far: - I manually patched gtk+-2.0.vapi to include the HILDON_SIZE_ constants and hildon_set_theme_size and hildon_gtk_tree_view_new_with_model methods (patch below). There's probably quite