nmcompat: Support nm dbus properties
authorKalle Valo <kalle.valo@canonical.com>
Fri, 28 Jan 2011 15:02:43 +0000 (17:02 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Fri, 28 Jan 2011 15:20:16 +0000 (16:20 +0100)
commit05ad678faf94266f0a51b8eba63f9a7e8d8acc03
treebf741fe0cb67d67d92c3c56e6ac72fe8ca9cf5b7
parent298b67120507e9f19fa60e56d8abbe4f870125cc
nmcompat: Support nm dbus properties

After some investigation I found that network-manager also provides
the network state through properties and libnm-glib library uses this
instead of the GetState() method.

Add Get() method call retrieve the property and a PropertyChanged signal
to notify state changes. Now empathy, which uses libnm-glib, properly
detects network state changes.

I deliberately omitted GetAll() method because libnm-glib doesn't seem
to need it.
plugins/nmcompat.c