Mercurial > pidgin
comparison plugins/mailchk.c @ 4576:c7569367ed87
[gaim-migrate @ 4857]
"Sender: darkrain
I tried your patch, but my system (debian unstable) barfed
building it.
The first problem was that sound.h was included before
gaim.h, so I moved it to be included after gaim.h.
Then, I changed the other line (the one about playing the
actualy sound) to read:
gaim_sound_play_event(GAIM_SOUND_POUNCE_DEFAULT); "
now it should actually work :-)
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Wed, 12 Feb 2003 03:12:03 +0000 |
parents | 1b52e29f1ffb |
children | fac4c73dd5ad |
comparison
equal
deleted
inserted
replaced
4575:1b52e29f1ffb | 4576:c7569367ed87 |
---|---|
1 #include "config.h" | 1 #include "config.h" |
2 #include "sound.h" | |
3 | 2 |
4 #ifndef GAIM_PLUGINS | 3 #ifndef GAIM_PLUGINS |
5 #define GAIM_PLUGINS | 4 #define GAIM_PLUGINS |
6 #endif | 5 #endif |
7 | 6 |
8 #include "gaim.h" | 7 #include "gaim.h" |
8 #include "sound.h" | |
9 #include <sys/stat.h> | 9 #include <sys/stat.h> |
10 #include <sys/types.h> | 10 #include <sys/types.h> |
11 #include <unistd.h> | 11 #include <unistd.h> |
12 | 12 |
13 #define ANY_MAIL 0x01 | 13 #define ANY_MAIL 0x01 |
73 g_signal_connect(GTK_OBJECT(mail), "destroy", G_CALLBACK(maildes), NULL); | 73 g_signal_connect(GTK_OBJECT(mail), "destroy", G_CALLBACK(maildes), NULL); |
74 gtk_widget_show(mail); | 74 gtk_widget_show(mail); |
75 } | 75 } |
76 | 76 |
77 if (count & NEW_MAIL) | 77 if (count & NEW_MAIL) |
78 gaim_sound_play(SND_POUNCE_DEFAULT); | 78 gaim_sound_play_event(GAIM_SOUND_POUNCE_DEFAULT); |
79 | 79 |
80 if (count & UNREAD_MAIL) | 80 if (count & UNREAD_MAIL) |
81 gtk_label_set_text(GTK_LABEL(mail), "You have new mail!"); | 81 gtk_label_set_text(GTK_LABEL(mail), "You have new mail!"); |
82 else if (count & ANY_MAIL) | 82 else if (count & ANY_MAIL) |
83 gtk_label_set_text(GTK_LABEL(mail), "You have mail."); | 83 gtk_label_set_text(GTK_LABEL(mail), "You have mail."); |