Mercurial > pidgin.yaz
diff src/gtkconv.h @ 12175:a655bdeb561d
[gaim-migrate @ 14477]
SF Patch #1360582 from Casey Harkins (charkins)
"This patch adds an unseen_count field to gtkconvs which
obviously counts the number of unseen messages. It is
handled entirely within ...set_unseen() in gtkconv.c.
The code for filling the gtkblist menutray context menu
with unseen conversations is moved into gtkconv.c
because it will also be used by the docklet (avoiding
code duplication). I documented it in ChangeLog.API.
The context menu items and the tooltips faceprint added
now will show the message count as well."
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Mon, 21 Nov 2005 00:43:20 +0000 |
parents | 95bffda9b762 |
children | 762bb28154bf |
line wrap: on
line diff
--- a/src/gtkconv.h Sun Nov 20 22:09:24 2005 +0000 +++ b/src/gtkconv.h Mon Nov 21 00:43:20 2005 +0000 @@ -143,6 +143,7 @@ GtkWidget *toolbar; GaimUnseenState unseen_state; + guint unseen_count; struct { @@ -211,6 +212,21 @@ GaimConversation * gaim_gtk_conversations_get_first_unseen(GaimConversationType type, GaimUnseenState min_state); +/** + * Adds an item to a menu for each conversation of the given type + * with an unseen state greater than or equal to the specified minimum + * state. The menu item will present the conversation to the user + * when activated. + * + * @param menu Menu widget to add items to. + * @param type The type of conversation. + * @param min_state The minimum unseen state. + * @return Number of conversations added to menu. + */ +guint +gaim_gtk_conversations_fill_unseen_menu(GtkWidget *menu, + GaimConversationType type, + GaimUnseenState min_state); /** * Presents a gaim conversation to the user.