Re: [Evolution] Mail arrival sound



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





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