aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2014-02-10 16:42:39 -0600
committerTed Gould <ted@gould.cx>2014-02-10 16:42:39 -0600
commit3ce0b11814352483761e693d50364b1b43694d26 (patch)
treeeaf12181da981aa3dccae56ce6d598d506197f63 /src
parent9660d0b5c1cee59d7b34e989fc2da19b67167619 (diff)
downloadayatana-indicator-sound-3ce0b11814352483761e693d50364b1b43694d26.tar.gz
ayatana-indicator-sound-3ce0b11814352483761e693d50364b1b43694d26.tar.bz2
ayatana-indicator-sound-3ce0b11814352483761e693d50364b1b43694d26.zip
Getting accounts service into the service
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt11
-rw-r--r--src/service.vala1
2 files changed, 11 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index c11ec51..7efb2a5 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -6,6 +6,15 @@
set(HEADER_PATH "${CMAKE_CURRENT_BINARY_DIR}/indicator-sound-service.h")
set(SYMBOLS_PATH "${CMAKE_CURRENT_BINARY_DIR}/indicator-sound-service.def")
+vapi_gen(accounts-service
+ LIBRARY
+ accounts-service
+ PACKAGES
+ gio-2.0
+ INPUT
+ /usr/share/gir-1.0/AccountsService-1.0.gir
+)
+
vala_init(indicator-sound-service
PACKAGES
config
@@ -20,9 +29,9 @@ vala_init(indicator-sound-service
--thread
--vapidir=${CMAKE_SOURCE_DIR}/vapi/
--vapidir=.
- --target-glib=2.36
--pkg=url-dispatcher
--pkg=bus-watcher
+ --pkg=accounts-service
)
vala_add(indicator-sound-service
diff --git a/src/service.vala b/src/service.vala
index f7d86bb..a246758 100644
--- a/src/service.vala
+++ b/src/service.vala
@@ -87,6 +87,7 @@ public class IndicatorSound.Service {
uint player_action_update_id;
Notify.Notification notification;
bool syncing_preferred_players = false;
+ Act.UserManager account_manager = Act.UserManager.get_default();
const double volume_step_percentage = 0.06;