summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorColin Guthrie <cguthrie@mandriva.org>2009-01-26 20:23:03 +0000
committerColin Guthrie <cguthrie@mandriva.org>2009-02-22 16:42:34 +0000
commit75fc8f14b24e795656b04407ec55a9e5e8c5c755 (patch)
treec9380d3fce26dd5f8bd798bc1d043b11dde5de67 /src
parent63ce8401f261d43600d0418aec23471a2ef90e25 (diff)
Fix the enabling/disabling of the RAOP option if the module is not detected
Diffstat (limited to 'src')
-rw-r--r--src/paprefs.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/paprefs.cc b/src/paprefs.cc
index cd7081e..6a067d8 100644
--- a/src/paprefs.cc
+++ b/src/paprefs.cc
@@ -77,7 +77,7 @@ public:
void writeToGConfCombine();
void onGConfChange(const Glib::ustring& key, const Gnome::Conf::Value& value);
- bool rtpRecvAvailable, rtpSendAvailable, zeroconfPublishAvailable, zeroconfDiscoverAvailable, remoteAvailable;
+ bool rtpRecvAvailable, rtpSendAvailable, zeroconfPublishAvailable, zeroconfDiscoverAvailable, zeroconfRaopDiscoverAvailable, remoteAvailable;
};
MainWindow::MainWindow(BaseObjectType* cobject, const Glib::RefPtr<Gnome::Glade::Xml>& x) :
@@ -152,6 +152,7 @@ void MainWindow::updateSensitive() {
anonymousAuthCheckButton->set_sensitive(b && remoteAvailable);
zeroconfDiscoverCheckButton->set_sensitive(zeroconfDiscoverAvailable);
+ zeroconfRaopDiscoverCheckButton->set_sensitive(zeroconfRaopDiscoverAvailable);
rtpReceiveCheckButton->set_sensitive(rtpRecvAvailable);
rtpSendCheckButton->set_sensitive(rtpSendAvailable);
@@ -435,6 +436,8 @@ void MainWindow::checkForModules() {
zeroconfPublishAvailable = access(MODULESDIR "module-zeroconf-publish" SHREXT, F_OK) == 0;
zeroconfDiscoverAvailable = access(MODULESDIR "module-zeroconf-discover" SHREXT, F_OK) == 0;
+ zeroconfRaopDiscoverAvailable = access(MODULESDIR "module-raop-discover" SHREXT, F_OK) == 0;
+
rtpRecvAvailable = access(MODULESDIR "module-rtp-recv" SHREXT, F_OK) == 0;
rtpSendAvailable = access(MODULESDIR "module-rtp-send" SHREXT, F_OK) == 0;
}