Re: Error when trying to access nm with vala and gdbus

2012-01-13 Thread Florent Thévenet
Le jeudi 12 janvier 2012 à 19:01 -0600, Dan Williams a écrit : > > > > conn = Bus.get_proxy_sync(BusType.SYSTEM, > > "org.freedesktop.NetworkManager.Settings.Connection", > > "/org/freedesktop/NetworkManager/Settings/15"); > > Here's the problem: you still need to use the NetworkManager dbus

Re: Error when trying to access nm with vala and gdbus

2012-01-12 Thread Dan Williams
On Thu, 2012-01-12 at 16:35 +0100, Florent Thévenet wrote: > Hi everyone, > > I'm writing a program to change the evolution smtp server according to > the network I'm connected to, implemented in Vala > > The simpler solution I found to talk to networkmanager is over dbus, > here is the code I us

Error when trying to access nm with vala and gdbus

2012-01-12 Thread Florent Thévenet
Hi everyone, I'm writing a program to change the evolution smtp server according to the network I'm connected to, implemented in Vala The simpler solution I found to talk to networkmanager is over dbus, here is the code I use: """ [DBus (name = "org.freedesktop.NetworkManager")] interface Networ