aboutsummaryrefslogtreecommitdiffstats
path: root/data
diff options
context:
space:
mode:
authorClaudio Saavedra <csaavedra@igalia.com>2011-06-24 04:18:37 +0800
committerClaudio Saavedra <csaavedra@igalia.com>2011-06-24 05:00:18 +0800
commit3af15cdbcd31a7ac4eda748ae83180a228d30a80 (patch)
tree1454d2f428a9b6ef143efb54447ed4ebd49827a8 /data
parentab913fa36787366d68e08a0831403872d3e62ffc (diff)
downloadgsoc2013-epiphany-3af15cdbcd31a7ac4eda748ae83180a228d30a80.tar
gsoc2013-epiphany-3af15cdbcd31a7ac4eda748ae83180a228d30a80.tar.gz
gsoc2013-epiphany-3af15cdbcd31a7ac4eda748ae83180a228d30a80.tar.bz2
gsoc2013-epiphany-3af15cdbcd31a7ac4eda748ae83180a228d30a80.tar.lz
gsoc2013-epiphany-3af15cdbcd31a7ac4eda748ae83180a228d30a80.tar.xz
gsoc2013-epiphany-3af15cdbcd31a7ac4eda748ae83180a228d30a80.tar.zst
gsoc2013-epiphany-3af15cdbcd31a7ac4eda748ae83180a228d30a80.zip
Use a gdbus-codegen generated GDBusProxy to monitor NM state
Get rid of the EphyNetMonitor code and instead generate a GDBusProxy subclass that monitors the StateChanged signal and State property in org.gnome.NetworkManager. This proxy exports these features as standard GObject signal and property, respectively, so we can use it directly through the relevant accessors. https://bugzilla.gnome.org/show_bug.cgi?id=622903
Diffstat (limited to 'data')
-rw-r--r--data/Makefile.am1
-rw-r--r--data/ephy-network-manager.xml9
2 files changed, 10 insertions, 0 deletions
diff --git a/data/Makefile.am b/data/Makefile.am
index 6fcfa8144..4d9cf6a36 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -72,6 +72,7 @@ EXTRA_DIST = \
$(gsettings_files) \
$(convert_DATA) \
epiphany-service.xml \
+ ephy-network-manager.xml \
check-mime.py
DISTCLEANFILES = \
diff --git a/data/ephy-network-manager.xml b/data/ephy-network-manager.xml
new file mode 100644
index 000000000..90fcd7011
--- /dev/null
+++ b/data/ephy-network-manager.xml
@@ -0,0 +1,9 @@
+<node>
+ <interface name='org.freedesktop.NetworkManager'>
+ <signal name='StateChanged'>
+ <arg name='state' type='u' />
+ </signal>
+ <property name='State' type='u' access='read'/>
+ <property name='Version' type='s' access='read'/>
+ </interface>
+</node>