aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile.am
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2013-08-02 12:06:55 +0200
committerLars Uebernickel <lars.uebernickel@canonical.com>2013-08-02 12:06:55 +0200
commit98c5556a14454fa988b0b81ffb22cef9a67011e9 (patch)
tree0f50d4b5315dfa095b7cccbe824ee242289ee31a /src/Makefile.am
parentab72c8871394f1b197e606c2d5b20f149c27138a (diff)
downloadayatana-indicator-sound-98c5556a14454fa988b0b81ffb22cef9a67011e9.tar.gz
ayatana-indicator-sound-98c5556a14454fa988b0b81ffb22cef9a67011e9.tar.bz2
ayatana-indicator-sound-98c5556a14454fa988b0b81ffb22cef9a67011e9.zip
Use bus_watch_namespace() to monitor mpris players
This function is more robust than the current code and uses glib's G_DBUS_SIGNAL_FLAGS_MATCH_ARG0_NAMESPACE instead of creating match rules itself. bus-watch-namespace.[ch] is shared with gnome-settings-daemon.
Diffstat (limited to 'src/Makefile.am')
-rw-r--r--src/Makefile.am6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 8af02ce..1a82a18 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -7,9 +7,10 @@ indicator_sound_service_SOURCES = \
media-player.vala \
media-player-list.vala \
mpris2-interfaces.vala \
- mpris2-watcher.vala \
freedesktop-interfaces.vala \
- sound-menu.vala
+ sound-menu.vala \
+ bus-watch-namespace.c \
+ bus-watch-namespace.h
indicator_sound_service_VALAFLAGS = \
--ccode \
@@ -22,6 +23,7 @@ indicator_sound_service_VALAFLAGS = \
--pkg libxml-2.0 \
--pkg libpulse \
--pkg libpulse-mainloop-glib \
+ --pkg bus-watcher \
--target-glib=2.36
# -w to disable warnings for vala-generated code