Mercurial > pidgin.yaz
diff src/conversation.h @ 9260:947876140943
[gaim-migrate @ 10059]
Patch by Stu Tomlinson to add gaim_conversation_has_focus() and
gaim_conv_window_has_focus(), and the (optional) UI ops.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Fri, 11 Jun 2004 00:08:29 +0000 |
parents | 1e51236d825e |
children | 8b2451878e26 |
line wrap: on
line diff
--- a/src/conversation.h Thu Jun 10 20:57:52 2004 +0000 +++ b/src/conversation.h Fri Jun 11 00:08:29 2004 +0000 @@ -147,6 +147,7 @@ void (*move_conversation)(GaimConvWindow *win, GaimConversation *conv, unsigned int newIndex); int (*get_active_index)(const GaimConvWindow *win); + gboolean (*has_focus)(GaimConvWindow *win); }; /** @@ -177,8 +178,11 @@ void (*update_progress)(GaimConversation *conv, float percent); + gboolean (*has_focus)(GaimConversation *conv); + /* Events */ void (*updated)(GaimConversation *conv, GaimConvUpdateType type); + }; /** @@ -422,6 +426,16 @@ const GaimConvWindow *win); /** + * Determines if a conversation window has focus + * + * @param win The window. + * + * @return @c TRUE if the conversation window has focus, @c FALSE if + * it does not or the UI does not have a concept of window focus + */ +gboolean gaim_conv_window_has_focus(GaimConvWindow *win); + +/** * Returns the list of conversations in the specified window. * * @param win The window. @@ -798,6 +812,16 @@ void gaim_conversation_update_progress(GaimConversation *conv, float percent); /** + * Determines if a conversation has focus + * + * @param conv The conversation. + * + * @return @c TRUE if the conversation has focus, @c FALSE if + * it does not or the UI does not have a concept of conversation focus + */ +gboolean gaim_conversation_has_focus(GaimConversation *conv); + +/** * Updates the visual status and UI of a conversation. * * @param conv The conversation.