pidgin: 4bbc900d: Add documentation for conversation theme...
qulogic at pidgin.im
qulogic at pidgin.im
Mon Sep 19 17:20:56 EDT 2011
----------------------------------------------------------------------
Revision: 4bbc900d2b6991c4639a85197e1e31cef94ff919
Parent: 26f493ec6f5a41774c9d3d20d8251910f7cd5b58
Author: qulogic at pidgin.im
Date: 09/19/11 17:03:41
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/4bbc900d2b6991c4639a85197e1e31cef94ff919
Changelog:
Add documentation for conversation themes.
Changes against parent 26f493ec6f5a41774c9d3d20d8251910f7cd5b58
patched pidgin/gtkconv-theme.h
-------------- next part --------------
============================================================
--- pidgin/gtkconv-theme.h c97a2f5ee9b572fb543688d23686bb58261154f5
+++ pidgin/gtkconv-theme.h ebd8c60b11c8620b82019b505e41715cc3afe62d
@@ -69,12 +69,65 @@ GType pidgin_conversation_theme_get_type
*/
GType pidgin_conversation_theme_get_type(void);
+/**
+ * Get the Info.plist hash table from a conversation theme.
+ *
+ * @param theme The conversation theme
+ *
+ * @return The hash table. Keys are strings as outlined for message styles,
+ * values are GValue*s. This is an internal structure. Take a ref if
+ * necessary, but don't destroy it yourself.
+ */
const GHashTable *pidgin_conversation_theme_get_info(const PidginConvTheme *theme);
+
+/**
+ * Set the Info.plist hash table for a conversation theme.
+ *
+ * @param theme The conversation theme
+ * @param info The new hash table. The theme will take ownership of this hash
+ * table. Do not use it yourself afterwards with holding a ref.
+ * For key and value specifications, @see pidgin_conversation_theme_get_info.
+ *
+ */
void pidgin_conversation_theme_set_info(PidginConvTheme *theme, GHashTable *info);
+/**
+ * Add an available variant name to a conversation theme.
+ *
+ * @param theme The conversation theme
+ * @param variant The name of the variant
+ *
+ * @Note The conversation theme will take ownership of the variant name string.
+ * This function should normally only be called by the theme loader.
+ */
void pidgin_conversation_theme_add_variant(PidginConvTheme *theme, char *variant);
+
+/**
+ * Get the currently set variant name for a conversation theme.
+ *
+ * @param theme The conversation theme
+ *
+ * @return The current variant name.
+ */
const char *pidgin_conversation_theme_get_variant(PidginConvTheme *theme);
+
+/**
+ * Set the variant name for a conversation theme.
+ *
+ * @param theme The conversation theme
+ * @param variant The name of the variant
+ *
+ */
void pidgin_conversation_theme_set_variant(PidginConvTheme *theme, const char *variant);
+
+/**
+ * Get a list of available variants for a conversation theme.
+ *
+ * @param theme The conversation theme
+ *
+ * @return The list of variants. This GList and the string data are owned by
+ * the theme and should not be freed by the caller.
+ */
const GList *pidgin_conversation_theme_get_variants(PidginConvTheme *theme);
PidginConvTheme *pidgin_conversation_theme_copy(const PidginConvTheme *theme);
More information about the Commits
mailing list