Mercurial > pidgin
changeset 8598:58e02f309485
[gaim-migrate @ 9349]
" I've got two patches for mailchk. The first fixes some
compile errors. The second patch adds a preference for
whether or not to play a sound on new mail since it
keeps annoying me (the second patch depends on the
first).
The third patch fixes up my entry in the COPYRIGHT file
(adds the rest of my last name)." --Paul Aurich
that second mailck patch didn't go in.
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Tue, 06 Apr 2004 15:11:20 +0000 |
parents | d0d1507b52b4 |
children | ee7702e912fb |
files | COPYRIGHT plugins/mailchk.c |
diffstat | 2 files changed, 9 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/COPYRIGHT Tue Apr 06 14:31:51 2004 +0000 +++ b/COPYRIGHT Tue Apr 06 15:11:20 2004 +0000 @@ -4,8 +4,8 @@ If you have contributed to Gaim, you deserve to be on this list. Contact us (see: AUTHORS) and we'll add you. -Paul A Daniel Atallah +Paul Aurich Patrick Aussems Kevin Barry Brian Bernas
--- a/plugins/mailchk.c Tue Apr 06 14:31:51 2004 +0000 +++ b/plugins/mailchk.c Tue Apr 06 15:11:20 2004 +0000 @@ -9,6 +9,7 @@ #include "gtkblist.h" #include "gtkplugin.h" +#include "gtksound.h" #define MAILCHK_PLUGIN_ID "gtk-mailchk" @@ -55,7 +56,7 @@ static gboolean check_timeout(gpointer data) { gint count = check_mail(); - struct gaim_buddy_list *list = gaim_get_blist(); + GaimBuddyList *list = gaim_get_blist(); if (count == -1) return FALSE; @@ -89,7 +90,7 @@ static void signon_cb(GaimConnection *gc) { - struct gaim_buddy_list *list = gaim_get_blist(); + GaimBuddyList *list = gaim_get_blist(); if (list && GAIM_IS_GTK_BLIST(list) && !timer) { check_timeout(NULL); /* we want the box to be drawn immediately */ timer = g_timeout_add(2000, check_timeout, NULL); @@ -98,7 +99,7 @@ static void signoff_cb(GaimConnection *gc) { - struct gaim_buddy_list *list = gaim_get_blist(); + GaimBuddyList *list = gaim_get_blist(); if ((!list || !GAIM_IS_GTK_BLIST(list) || !GAIM_GTK_BLIST(list)->vbox) && timer) { g_source_remove(timer); timer = 0; @@ -112,11 +113,11 @@ static gboolean plugin_load(GaimPlugin *plugin) { - struct gaim_buddy_list *list = gaim_get_blist(); + GaimBuddyList *list = gaim_get_blist(); void *conn_handle = gaim_connections_get_handle(); if (!check_timeout(NULL)) { - gaim_debug(GAIM_DEBUG_WARNING, "mailchk", "Could not read $MAIL or /var/spool/mail/$USER"); + gaim_debug_warning("mailchk", "Could not read $MAIL or /var/spool/mail/$USER"); return FALSE; } @@ -156,7 +157,8 @@ N_("Mail Checker"), VERSION, N_("Checks for new local mail."), - N_("Checks for new local mail."), + N_("Adds a small box to the buddy list that" + " shows if you have new mail."), "Eric Warmenhoven <eric@warmenhoven.org>", GAIM_WEBSITE, plugin_load,