diff options
author | Ankit Vani <a@nevitus.org> | 2013-08-07 03:36:33 +0530 |
---|---|---|
committer | Ankit Vani <a@nevitus.org> | 2013-08-07 03:36:33 +0530 |
commit | 35d2324b91fceef1f9975061f819466e5fe106da (patch) | |
tree | f854a8500f488f23f4e0b452b6300245feaa8d1f /pidgin/gtkconv.h | |
parent | 14245e8d7ad12462b7f370b66788d11e20d6534a (diff) | |
parent | 3fb909d6e9c9d91b5391c1b3833c0b94dadcdb1e (diff) | |
download | pidgin-35d2324b91fceef1f9975061f819466e5fe106da.tar.gz |
Merged default branch
Diffstat (limited to 'pidgin/gtkconv.h')
-rw-r--r-- | pidgin/gtkconv.h | 48 |
1 files changed, 43 insertions, 5 deletions
diff --git a/pidgin/gtkconv.h b/pidgin/gtkconv.h index f82eb7fc58..94d09bca4e 100644 --- a/pidgin/gtkconv.h +++ b/pidgin/gtkconv.h @@ -178,7 +178,7 @@ PurpleTheme *pidgin_conversations_get_default_theme(void); * * @param conv The conversation. */ -void pidgin_conv_update_buddy_icon(PurpleConversation *conv); +void pidgin_conv_update_buddy_icon(PurpleIMConversation *im); /** * Sets the active conversation within a GTK-conversation. @@ -195,14 +195,13 @@ void pidgin_conv_switch_active_conversation(PurpleConversation *conv); void pidgin_conv_update_buttons_by_protocol(PurpleConversation *conv); /** - * Returns a list of conversations of the given type which have an unseen + * Returns a list of conversations of any type which have an unseen * state greater than or equal to the specified minimum state. Using the * hidden_only parameter, this search can be limited to hidden * conversations. The max_count parameter will limit the total number of * converations returned if greater than zero. The returned list should * be freed by the caller. * - * @param type The type of conversation. * @param min_state The minimum unseen state. * @param hidden_only If TRUE, only consider hidden conversations. * @param max_count Maximum number of conversations to return, or 0 for @@ -210,8 +209,47 @@ void pidgin_conv_update_buttons_by_protocol(PurpleConversation *conv); * @return List of PurpleConversation matching criteria, or NULL. */ GList * -pidgin_conversations_find_unseen_list(PurpleConversationType type, - PidginUnseenState min_state, +pidgin_conversations_get_unseen_all(PidginUnseenState min_state, + gboolean hidden_only, + guint max_count); + +/** + * Returns a list of IM conversations which have an unseen state greater + * than or equal to the specified minimum state. Using the hidden_only + * parameter, this search can be limited to hidden IM conversations. The + * max_count parameter will limit the total number of IM converations + * returned if greater than zero. The returned list should be freed by the + * caller. + * + * @param min_state The minimum unseen state. + * @param hidden_only If TRUE, only consider hidden conversations. + * @param max_count Maximum number of conversations to return, or 0 for + * no maximum. + * @return List of PurpleIMConversation matching criteria, + * or NULL. + */ +GList * +pidgin_conversations_get_unseen_ims(PidginUnseenState min_state, + gboolean hidden_only, + guint max_count); + +/** + * Returns a list of chat conversations which have an unseen state greater + * than or equal to the specified minimum state. Using the hidden_only + * parameter, this search can be limited to hidden chat conversations. The + * max_count parameter will limit the total number of chat converations + * returned if greater than zero. The returned list should be freed by the + * caller. + * + * @param min_state The minimum unseen state. + * @param hidden_only If TRUE, only consider hidden conversations. + * @param max_count Maximum number of conversations to return, or 0 for + * no maximum. + * @return List of PurpleChatConversation matching criteria, + * or NULL. + */ +GList * +pidgin_conversations_get_unseen_chats(PidginUnseenState min_state, gboolean hidden_only, guint max_count); |