diff options
author | Lennart Poettering <lennart@poettering.net> | 2006-05-31 17:54:34 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2006-05-31 17:54:34 +0000 |
commit | 879eef6acb3c8a6ad937a5a7cfbfc9f151bcc0cd (patch) | |
tree | 5d6b0333d973b28b79dcf21dbd55ba426cbafc9d /src/ServerInfoManager.cc | |
parent | f533f1625e70ce3a0df31320da3f2006cc60d764 (diff) |
Make the volume meter buttons insensitive if pavumeter is not in the $PATH
git-svn-id: file:///home/lennart/svn/public/paman/trunk@69 cdefa82f-4ce1-0310-97f5-ab6066f37c3c
Diffstat (limited to 'src/ServerInfoManager.cc')
-rw-r--r-- | src/ServerInfoManager.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ServerInfoManager.cc b/src/ServerInfoManager.cc index 436912d..0e41cde 100644 --- a/src/ServerInfoManager.cc +++ b/src/ServerInfoManager.cc @@ -790,6 +790,14 @@ void ServerInfoManager::runVolumeMeter(const Glib::ustring &source) { Glib::spawn_command_line_async(t); } +bool ServerInfoManager::volumeMeterSupported() { + gchar *c; + c = g_find_program_in_path(PAVUMETER_PATH); + g_free(c); + + return !!c; +} + void ServerInfoManager::killClient(uint32_t index) { pa_operation_unref(pa_context_kill_client(&context, index, NULL, NULL)); } |