Re: [Vala] Question on Documentation and tutorials.

2008-09-10 Thread Clément DAVID
Hi, you may use dbus to get the plug message from Hal. And then you may tell Hal to mount the volume. The best way to understand is to look at source : http://svn.gnome.org/viewvc/gnome-volume-manager/trunk/src/manager.c?rview=markup * gvm_dbus_init (void) * gvm_hal_init (void) The secon

Re: [Vala] RSS/Atom or XML parsing library

2008-09-10 Thread Alexander Bokovoy
On Wed, Sep 10, 2008 at 9:56 PM, Christian Hergert <[EMAIL PROTECTED]> wrote: > I haven't touched rss-glib in a couple months, but if you have feature > requests, i'll hack them in promptly. > > I don't think i announced it on the list here either, but if anyone is > interested in a datamapper for

Re: [Vala] RSS/Atom or XML parsing library

2008-09-10 Thread Christian Hergert
I haven't touched rss-glib in a couple months, but if you have feature requests, i'll hack them in promptly. I don't think i announced it on the list here either, but if anyone is interested in a datamapper for gobject, i made one of those as well (which ive used pretty successfully with rss-glib

Re: [Vala] patch to add read/write to FileStream

2008-09-10 Thread Jürg Billeter
On Thu, 2008-09-04 at 18:14 -0400, Cliff Brake wrote: > The below patch adds read/write to FileStream: Thanks for the patch. > Question: is there any way I can always set nmemb=1 so the caller > does not have to set that variable? In vala, I would just do: > > read(buf), instead of read(buf, 1

Re: [Vala] problem appending structs to Lists

2008-09-10 Thread Jürg Billeter
On Thu, 2008-09-04 at 11:20 -0400, Cliff Brake wrote: > from the below code, I assume its not valid to use structs in lists? That's right, GList does not directly support arbitrary struct elements. However, it's possible to put nullable/boxed structs in a GList. To do this, you need to declare th

Re: [Vala] var does not honor weak?

2008-09-10 Thread Jürg Billeter
On Sun, 2008-09-07 at 06:16 -0700, Mihail Naydenov wrote: > Im pretty new to both glib/gobject and vala so I might be missing > something, > but creating a weak reference is supposed not to create a new > reference to the object it points to. > > On the other hand var is supposed to guess the ty

Re: [Vala] [Bindings] Few quick questions about glib

2008-09-10 Thread Jürg Billeter
On Sat, 2008-09-06 at 14:40 -0700, Mihail Naydenov wrote: > 1 > public class List{ > ... > public G data; //is this correct? Is not weak missing? Every > other member function returning the data or a new list returns weak > ref > public List next; //same here > public weak List prev;

Re: [Vala] RSS/Atom or XML parsing library

2008-09-10 Thread Alexander Bokovoy
On Wed, Sep 10, 2008 at 5:24 PM, Alessandro Pellizzari <[EMAIL PROTECTED]> wrote: > Hi all, > > for a software I am writing, I would like to be able to "decode" > RSS/Atom feeds, mapping them to Vala objects, like DOM. > > Is there a library with vapi files ready? > Or else, what library would you

Re: [Vala] RSS/Atom or XML parsing library

2008-09-10 Thread Michael Lawrence
There's the libxml2 bindings for XML. On Wed, Sep 10, 2008 at 6:24 AM, Alessandro Pellizzari <[EMAIL PROTECTED]>wrote: > Hi all, > > for a software I am writing, I would like to be able to "decode" > RSS/Atom feeds, mapping them to Vala objects, like DOM. > > Is there a library with vapi files re

[Vala] RSS/Atom or XML parsing library

2008-09-10 Thread Alessandro Pellizzari
Hi all, for a software I am writing, I would like to be able to "decode" RSS/Atom feeds, mapping them to Vala objects, like DOM. Is there a library with vapi files ready? Or else, what library would you suggest? (I would like to see if I can write some vapi files... :) Thank you. -- Alessandro

Re: [Vala] Question on Documentation and tutorials.

2008-09-10 Thread Alessandro Pellizzari
Il giorno ven, 22/08/2008 alle 14.42 +0200, Clément DAVID ha scritto: > Example: you want to eject a specific volume > 2. Then look at the corresponding vapi file to find the Vala > classes and fonctions names (Usually C class name without the first > 'G' and C function name without class pre

Re: [Vala] gscript bindings?

2008-09-10 Thread Alexander Bokovoy
On Wed, Sep 10, 2008 at 3:01 PM, pancake <[EMAIL PROTECTED]> wrote: > I have recently read some posts in planet.gnome about the GScript > implementation (A glib based api) to script aplications using javascript > (atm). > > The concepts are quite similar to the LUA binding I do few time ago, but >

[Vala] gscript bindings?

2008-09-10 Thread pancake
I have recently read some posts in planet.gnome about the GScript implementation (A glib based api) to script aplications using javascript (atm). The concepts are quite similar to the LUA binding I do few time ago, but using the power of GLib and GObject, so it automatically supports introspection