# HG changeset patch # User Elliott Sales de Andrade # Date 1338244426 0 # Node ID 0dd2cbee5b80e854a098e335335037c289c13367 # Parent 997570b274d1910bbd6d66169e131b9b777ebbcd Add API for getting default conversation theme. diff -r 997570b274d1 -r 0dd2cbee5b80 pidgin/gtkconv.c --- a/pidgin/gtkconv.c Mon May 28 22:13:56 2012 +0000 +++ b/pidgin/gtkconv.c Mon May 28 22:33:46 2012 +0000 @@ -8383,6 +8383,12 @@ return TRUE; } +PurpleTheme * +pidgin_conversations_get_default_theme(void) +{ + return default_conv_theme; +} + void * pidgin_conversations_get_handle(void) { diff -r 997570b274d1 -r 0dd2cbee5b80 pidgin/gtkconv.h --- a/pidgin/gtkconv.h Mon May 28 22:13:56 2012 +0000 +++ b/pidgin/gtkconv.h Mon May 28 22:33:46 2012 +0000 @@ -172,6 +172,13 @@ PurpleConversationUiOps *pidgin_conversations_get_conv_ui_ops(void); /** + * Returns the default theme for GTK+ conversations. + * + * @return The default GTK+ conversation theme. + */ +PurpleTheme *pidgin_conversations_get_default_theme(void); + +/** * Updates the buddy icon on a conversation. * * @param conv The conversation.