[rhythmbox] Make sure the cancel button is greyed out when all downloads are finished.



commit c45cfafb7b80a763e400bbd6bb89c4e946653608
Author: Adam Zimmerman <adam zimmerman85 gmail com>
Date:   Wed Feb 10 11:15:20 2010 -0800

    Make sure the cancel button is greyed out when all downloads are finished.

 plugins/magnatune/magnatune/MagnatuneSource.py |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/plugins/magnatune/magnatune/MagnatuneSource.py b/plugins/magnatune/magnatune/MagnatuneSource.py
index be94abc..8d03861 100644
--- a/plugins/magnatune/magnatune/MagnatuneSource.py
+++ b/plugins/magnatune/magnatune/MagnatuneSource.py
@@ -486,8 +486,11 @@ class MagnatuneSource(rb.BrowserSource):
 
 		self.__remove_download_files (dest, sku)
 
-		if self.purchase_filesize == 0:
+		if self.purchase_filesize == 0: # All downloads are complete
 			self.__downloading = False
+			shell = self.get_property('shell')
+			manager = shell.get_player().get_property('ui-manager')
+			manager.get_action("/MagnatuneSourceViewPopup/MagnatuneCancelDownload").set_sensitive(False)
 
 		self.__db.add_uri(os.path.split(track_path)[0])
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]