aboutsummaryrefslogtreecommitdiffstats
path: root/embed/downloader-view.c
diff options
context:
space:
mode:
Diffstat (limited to 'embed/downloader-view.c')
-rw-r--r--embed/downloader-view.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/embed/downloader-view.c b/embed/downloader-view.c
index 610475cf9..3e84a8af0 100644
--- a/embed/downloader-view.c
+++ b/embed/downloader-view.c
@@ -35,6 +35,9 @@
#include <gtk/gtk.h>
#include <libgnomeui/gnome-icon-lookup.h>
+#ifdef HAVE_LIBCANBERRA_GTK
+#include <canberra-gtk.h>
+#endif
#ifdef HAVE_LIBNOTIFY
#include <libnotify/notify.h>
@@ -440,6 +443,13 @@ update_download_row (DownloaderView *dv, EphyDownload *download)
g_free (downloaded);
#endif
+#ifdef HAVE_LIBCANBERRA_GTK
+ ca_context_play (ca_gtk_context_get (), 0,
+ CA_PROP_APPLICATION_NAME, _("GNOME Web Browser"),
+ CA_PROP_EVENT_ID, "complete-download",
+ CA_PROP_EVENT_DESCRIPTION, _("Download completed"),
+ NULL);
+#endif
return;
case EPHY_DOWNLOAD_PAUSED: