From 75fc8f14b24e795656b04407ec55a9e5e8c5c755 Mon Sep 17 00:00:00 2001 From: Colin Guthrie Date: Mon, 26 Jan 2009 20:23:03 +0000 Subject: Fix the enabling/disabling of the RAOP option if the module is not detected --- src/paprefs.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') 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& 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; } -- cgit