Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 54281 - New mail arrival sound stopped recently in evolution 1.4.6 after a Gnome library update
Summary: New mail arrival sound stopped recently in evolution 1.4.6 after a Gnome libr...
Status: RESOLVED DUPLICATE of bug 50700
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-18 00:52 UTC by Han Pilmeyer
Modified: 2005-07-17 13:06 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Han Pilmeyer 2004-06-18 00:52:04 UTC
When new mail arrives in Evolution there is an option to play a sound file. This used to work with Evolution 1.4.6, but a recent Gnome library update apparently causes it to fail. See possible fix in "additional information" below.

Reproducible: Always
Steps to Reproduce:
1.In Tools->Evolution Settings->Mail Preferences->New Mail Notification
specify the option to "play a sound file" and select a sound file. I used a wav file.
2.Wait for new mail to arrive
3.No sound is produced

Other Gnome applications still produce sound.





The problem has been identified:

Subject: Re: [Evolution] Mail arrival sound
From: Jeffrey Stedfast <fejj@ximian.com>
To: Lonnie Borntreger <email@borntreger.com>
Cc: Evolution List <evolution@lists.ximian.com>
It used to be in mail/main.c and I thought that Ettore had moved all the
init calls into shell/main.c.
 
Oh well.
 
Jeff
 
On Wed, 2004-06-16 at 22:31 -0700, Lonnie Borntreger wrote:
> OK - based on Jeff's email - I was spurred to action (even though my
> background is in running development environments - not developing
> itself).
>
> I did some reading in /usr/include/libgnome-2.0/libgnome/gnome-sound.h
> and then did some debugging.
>
> pocket-> cat a.c
> #include <libgnome/gnome-sound.h>
>
> main()
> {
>         char *filename = "/storage/SOUNDS/notify.wav";
>         gnome_sound_play (filename);
> }
>
> -> gcc -I /usr/include/libgnome-2.0 -I /usr/include/glib-2.0 \
>     -I /usr/lib/glib-2.0/include -l gnome-2 a.c
> -> ./a.out
>
> Result: no sound
>
> pocket-> cat a.c
> #include <libgnome/gnome-sound.h>
>
> main()
> {
>         char *filename = "/storage/SOUNDS/notify.wav";
>         gnome_sound_init("localhost");
>         gnome_sound_play (filename);
> }
>
> -> gcc -I /usr/include/libgnome-2.0 -I /usr/include/glib-2.0 \
>     -I /usr/lib/glib-2.0/include -l gnome-2 a.c
> -> ./a.out
>
> Result: sound
>
> The only call to gnome_sound_init that I see in the evolution source is
> one in calendar/gui/alarm-notify/notify-main.c - nothing in mail.  So, I
> added a call to gnome_sound_init in mail/mail-folder-cache.c right
> before the call to gnome_sound_play.  Amazing enough, now I get mail
> notifications.  Not only that, I get gnome system notifications when I
> click around in the menus - which never occurred before.  So, basically,
> gnome_sound_init should be called when evolution starts - if it's called
> in mail-folder-cache.c then no other sound works until the first mail
> arrived.
>
> TTFN,
> Lonnie Borntreger
>
Comment 1 foser (RETIRED) gentoo-dev 2004-06-18 01:29:48 UTC
this is a known bug in libgnome(ui) i think.. a dupe is somewhere in this bugzilla, i'm not sure if there's a fix already
Comment 2 Vermyndax 2004-07-18 09:04:15 UTC
I had reported that bug here:
http://bugs.gentoo.org/show_bug.cgi?id=50700

Someone marked it as "resolved upstream" but I updated all of my GNOME stuff yesterday and it's still broken.
Comment 3 foser (RETIRED) gentoo-dev 2004-07-19 05:10:17 UTC

*** This bug has been marked as a duplicate of 50700 ***