diff 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
line wrap: on
line diff
--- a/plugins/docklet/docklet.c	Wed Nov 09 03:09:55 2005 +0000
+++ b/plugins/docklet/docklet.c	Wed Nov 09 03:55:20 2005 +0000
@@ -95,15 +95,8 @@
 	gboolean pending = FALSE;
 
 	/* determine if any ims have unseen messages */
-	for(l = gaim_get_ims(); l!=NULL; l=l->next) {
-		GaimConversation *conv = (GaimConversation*)l->data;
-		if(GAIM_IS_GTK_CONVERSATION(conv)) {
-			if(GAIM_GTK_CONVERSATION(conv)->unseen_state!=GAIM_UNSEEN_NONE) {
-				pending = TRUE;
-				break;
-			}
-		}
-	}
+	if(gaim_gtk_conversations_get_first_unseen(GAIM_CONV_TYPE_IM, GAIM_UNSEEN_TEXT))
+		pending = TRUE;
 
 	/* iterate through all accounts and determine which
 	 * status to show in the tray icon based on the following