|
From: <der...@ya...> - 2002-09-25 07:06:21
|
Hello,
I have been using the CVS version of gaim (0.60cvs)
with the docklet and noticed that it does not
update to the unread_pending state on the arrival
of only one message.
The code in docklet.c that checks reads
if (unread_message_queue) {
status = unread_pending;
} else if (awaymessage) {
now, the docklet plugin registers to get
event_im_recv events, which are sent
by function serv_got_im in server.c
*before* the unread_message_queue is updated.
Thats bad.
However after the unread_message_queue is
updated serv_got_im sends an
event_im_displayed_rcvd.
Thats good.
But the event is not registered by the docklet.
Thats bad.
So, here is what I did to fix it.
RCS file:
/cvsroot/gaim/gaim/plugins/docklet/docklet.c,v
retrieving revision 1.5
diff -u -r1.5 docklet.c
--- docklet.c 16 Sep 2002 08:35:16 -0000 1.5
+++ docklet.c 25 Sep 2002 06:47:26 -0000
@@ -332,6 +332,7 @@
gaim_signal_connect(handle, event_connecting,
gaim_connecting, NULL);
gaim_signal_connect(handle, event_away, gaim_away,
NULL);
gaim_signal_connect(handle, event_im_recv,
gaim_im_recv, NULL);
+ gaim_signal_connect(handle, event_im_displayed_rcvd,
gaim_im_recv, NULL);
gaim_signal_connect(handle, event_buddy_signon,
gaim_buddy_signon, NULL);
gaim_signal_connect(handle, event_buddy_signoff,
gaim_buddy_signoff, NULL);
gaim_signal_connect(handle, event_buddy_away,
gaim_buddy_away, NULL);
I hope its good?
Derek
http://mobile.yahoo.com.au - Yahoo! Messenger for SMS
- Always be connected to your Messenger Friends
|