Is it possible to use vala's interface with DBus?
Let's say there already exists object in DBus with interface like this:
[DBus(Name = "org.freedesktop.Foo"]
public interface IFoo
{
public abstract void DoFoo();
public abstract string FooString { get; }
}
Now I want to get that object from
Frederik wrote:
Magnus Therning wrote:
Where should I have looked to find that info myself?
Unfortunately, this info is missing in the Gee section of the tutorial,
but you can see it here:
http://live.gnome.org/Vala/GeeSamples
I don't need a --pkg glib-2.0 when "using GLib", is that added
a
Jaroslav Šmíd wrote:
> How can I use DBus properties with vala? I've tried following:
>
> -- code begin --
>
> DBus.Connection con = DBus.Bus.get(DBus.BusType.SYSTEM);
> dynamic DBus.Object nmIface =
> con.get_object("org.freedesktop.NetworkManager",
> "/org/freedesktop/NetworkManager", "org.free
How can I use DBus properties with vala? I've tried following:
-- code begin --
DBus.Connection con = DBus.Bus.get(DBus.BusType.SYSTEM);
dynamic DBus.Object nmIface =
con.get_object("org.freedesktop.NetworkManager",
"/org/freedesktop/NetworkManager", "org.freedesktop.NetworkManager");
dynamic
Jan Hudec wrote:
> I didn't notice that thing -- it's indeed good tool for the job. I would
> still prefer something to mark in the source that we are synchronizing an
> async function. Maybe a .sync() "submethod" to match .begin() and .end() and
> state clearly what is happening:
.sync() is exact
Hello
I just added some lines about async stuff to the tutorial.
I used information I found in the recent mails from this mailing list.
If somebody finds the information incorrect, uncomplete or wrong, please
correct it, so that everybody can make use of that information.
Regards
Jörn
Hello, I have some strange error when I try to install VTE 0.5.0 :
checking for VSC... no
vsc library dependencies not met:
vala-1.0 >= 0.5.7: not found
configure: error: vsc library dependencies not met: glib-2.0 >= 2.12.0
gio-2.0 >= 2.12.0 gobject-2.0 >= 2.12.0 gthread-2.0 >= 2.16.0 vala-1.0
On Sat, Sep 19, 2009 at 15:40:16 +0200, Didier Ptitjes wrote:
> Jan Hudec wrote:
> > I can imagine a special syntax that will make vala generate this might be
> > accepted in future. My suggestion would be
> >
> > var result = yield sync foo_async();
>
> I guess I would propose:
>
> var resu
I'm currently working on bindings for the gpgme library, and have a
question while working on them. Many of the structures are defined like
this:
struct _private_name {
...
};
typedef struct _private_name *public_name_t;
Now, as far as binding these for Vala goes, this means that Vala
sh
Jan Hudec wrote:
> I can imagine a special syntax that will make vala generate this might be
> accepted in future. My suggestion would be
>
> var result = yield sync foo_async();
I guess I would propose:
var result = foo_async();
We talked about that on IRC today with Jürg, and it may be po
After a long sleep ;) the new vtg 0.5.0 is ready:
Vala Toys for gEdit - "Bath, riel or kip?"
can be downloaded here:
http://vtg.googlecode.com/files/vtg-0.5.0.tar.bz2
This version supports the new valac 0.7.6.
NEWS for version 0.5.0
==
* Search (grep) in pr
Magnus Therning wrote:
> Where should I have looked to find that info myself?
Unfortunately, this info is missing in the Gee section of the tutorial,
but you can see it here:
http://live.gnome.org/Vala/GeeSamples
> I don't need a --pkg glib-2.0 when "using GLib", is that added
> automatically?
Frederik wrote:
Magnus Therning wrote:
However, when I try to compile a simple example from Vala Code
(http://code.valaide.org/content/gee-set-example) I get the following
error:
% valac Set.vala
Set.vala:1.7-1.9: error: The namespace name `Gee' could not be found
using Gee;
^^^
Magnus Therning wrote:
> However, when I try to compile a simple example from Vala Code
> (http://code.valaide.org/content/gee-set-example) I get the following
> error:
>
> % valac Set.vala
> Set.vala:1.7-1.9: error: The namespace name `Gee' could not be found
> using Gee;
> ^^^
>
I've been playing with vala for a day or so now and thought I'd check out Gee.
I've installed it successfully:
% pacman -Q libgee
libgee 0.3.0-1
and from my limited understanding it should be available to vala:
% pacman -Ql libgee|grep vala
libgee /usr/share/vala/
libgee /usr/share/va
On Fri, 2009-09-18 at 21:54 +0200, Jan Hudec wrote:
> Until recently, I could store a delegate in a class. It was incorrect in many
> cases because a destroy notify was not stored in the delegates.
>
> Now the destroy notify is stored, but for some reason fails to be stored in
> a class. What is w
It is a little big project for a one man and in my opinion it is not worth
it.
What do you what to gain with it, more speed when running the executable?
In my opinion VALA produces pretty fast executable even though it produces a
C code...
And It is more simple to find wrong generated code when you
On Sat, Sep 19, 2009 at 01:41:34 +0200, Michael 'Mickey' Lauer wrote:
> > No, the call without .begin() is being deprecated.
> >
> > >From yestarday's discussion on IRC I understood it's not generally possible
> > to collapse to synchronous call automagically. Doing it involves running
> > a (recu
18 matches
Mail list logo