Mercurial > pidgin.yaz
comparison plugins/docklet/docklet.c @ 12021:1a86417abfc8
[gaim-migrate @ 14314]
Yet another patch from charkins related to the docklet. This one prevents the docklet's unseen msg notification from kicking in for non-logged text (e.g. notification of file transfer, etc).
committer: Tailor Script <tailor@pidgin.im>
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Wed, 09 Nov 2005 03:55:20 +0000 |
parents | 014c22dd9d06 |
children | 46fcc0765187 |
comparison
equal
deleted
inserted
replaced
12020:440d9354b67f | 12021:1a86417abfc8 |
---|---|
93 GList *l; | 93 GList *l; |
94 DockletStatus newstatus = DOCKLET_STATUS_OFFLINE; | 94 DockletStatus newstatus = DOCKLET_STATUS_OFFLINE; |
95 gboolean pending = FALSE; | 95 gboolean pending = FALSE; |
96 | 96 |
97 /* determine if any ims have unseen messages */ | 97 /* determine if any ims have unseen messages */ |
98 for(l = gaim_get_ims(); l!=NULL; l=l->next) { | 98 if(gaim_gtk_conversations_get_first_unseen(GAIM_CONV_TYPE_IM, GAIM_UNSEEN_TEXT)) |
99 GaimConversation *conv = (GaimConversation*)l->data; | 99 pending = TRUE; |
100 if(GAIM_IS_GTK_CONVERSATION(conv)) { | |
101 if(GAIM_GTK_CONVERSATION(conv)->unseen_state!=GAIM_UNSEEN_NONE) { | |
102 pending = TRUE; | |
103 break; | |
104 } | |
105 } | |
106 } | |
107 | 100 |
108 /* iterate through all accounts and determine which | 101 /* iterate through all accounts and determine which |
109 * status to show in the tray icon based on the following | 102 * status to show in the tray icon based on the following |
110 * ranks (highest encountered rank will be used): | 103 * ranks (highest encountered rank will be used): |
111 * | 104 * |