[rhythmbox] Notify the user when their downloads are finished.
- From: Adam Zimmerman <adamz src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [rhythmbox] Notify the user when their downloads are finished.
- Date: Thu, 11 Feb 2010 18:54:57 +0000 (UTC)
commit 48bb6c29ea84b4736fb34f0a9cddc430715e4eeb
Author: Adam Zimmerman <adam zimmerman85 gmail com>
Date: Wed Feb 10 16:00:40 2010 -0800
Notify the user when their downloads are finished.
plugins/magnatune/magnatune/MagnatuneSource.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/plugins/magnatune/magnatune/MagnatuneSource.py b/plugins/magnatune/magnatune/MagnatuneSource.py
index 8d03861..d4dc023 100644
--- a/plugins/magnatune/magnatune/MagnatuneSource.py
+++ b/plugins/magnatune/magnatune/MagnatuneSource.py
@@ -489,6 +489,9 @@ class MagnatuneSource(rb.BrowserSource):
if self.purchase_filesize == 0: # All downloads are complete
self.__downloading = False
shell = self.get_property('shell')
+ width, height = gtk.icon_size_lookup(gtk.ICON_SIZE_LARGE_TOOLBAR)
+ icon = rb.try_load_icon(gtk.icon_theme_get_default(), "magnatune", width, 0)
+ shell.notify_custom(4000, _("Finished Downloading"), _("All Magnatune downloads have been completed."), icon, True)
manager = shell.get_player().get_property('ui-manager')
manager.get_action("/MagnatuneSourceViewPopup/MagnatuneCancelDownload").set_sensitive(False)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]