diff options
author | Diego Escalante Urrelo <diegoe@src.gnome.org> | 2008-07-25 05:05:35 +0800 |
---|---|---|
committer | Diego Escalante Urrelo <diegoe@src.gnome.org> | 2008-07-25 05:05:35 +0800 |
commit | bcfca9743b166b426967008df11c1d4b3b367348 (patch) | |
tree | b9b9210217205d1d14728c09c2b9fb5cc1391a9e /embed/downloader-view.c | |
parent | d7b662e7b30776e3a9d1ad8f76e2b6787f66fab9 (diff) | |
download | gsoc2013-epiphany-bcfca9743b166b426967008df11c1d4b3b367348.tar gsoc2013-epiphany-bcfca9743b166b426967008df11c1d4b3b367348.tar.gz gsoc2013-epiphany-bcfca9743b166b426967008df11c1d4b3b367348.tar.bz2 gsoc2013-epiphany-bcfca9743b166b426967008df11c1d4b3b367348.tar.lz gsoc2013-epiphany-bcfca9743b166b426967008df11c1d4b3b367348.tar.xz gsoc2013-epiphany-bcfca9743b166b426967008df11c1d4b3b367348.tar.zst gsoc2013-epiphany-bcfca9743b166b426967008df11c1d4b3b367348.zip |
Enable complete-download sound with libcanberra.
svn path=/branches/gnome-2-24/; revision=8361
Diffstat (limited to 'embed/downloader-view.c')
-rw-r--r-- | embed/downloader-view.c | 10 |
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: |