changeset 32806:0dd2cbee5b80

Add API for getting default conversation theme.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Mon, 28 May 2012 22:33:46 +0000
parents 997570b274d1
children fb8263d936e5
files pidgin/gtkconv.c pidgin/gtkconv.h
diffstat 2 files changed, 13 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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)
 {
--- 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.