From 879eef6acb3c8a6ad937a5a7cfbfc9f151bcc0cd Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 31 May 2006 17:54:34 +0000 Subject: 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 --- src/ServerInfoManager.cc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/ServerInfoManager.cc') 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)); } -- cgit