comparison pidgin/gtkconv-theme.h @ 32647:3e27c95ab8e6

Fix a leak. pidgin_conversation_theme_add_variant should only be used by the theme builder, so it's fine if we let it take ownership of the variant name string.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Mon, 19 Sep 2011 20:23:13 +0000
parents a7a6770f26e2
children 2e8721fceaa5
comparison
equal deleted inserted replaced
32646:f857a6db3bd9 32647:3e27c95ab8e6
70 GType pidgin_conversation_theme_get_type(void); 70 GType pidgin_conversation_theme_get_type(void);
71 71
72 const GHashTable *pidgin_conversation_theme_get_info(const PidginConvTheme *theme); 72 const GHashTable *pidgin_conversation_theme_get_info(const PidginConvTheme *theme);
73 void pidgin_conversation_theme_set_info(PidginConvTheme *theme, GHashTable *info); 73 void pidgin_conversation_theme_set_info(PidginConvTheme *theme, GHashTable *info);
74 74
75 void pidgin_conversation_theme_add_variant(PidginConvTheme *theme, const char *variant); 75 void pidgin_conversation_theme_add_variant(PidginConvTheme *theme, char *variant);
76 const char *pidgin_conversation_theme_get_variant(PidginConvTheme *theme); 76 const char *pidgin_conversation_theme_get_variant(PidginConvTheme *theme);
77 void pidgin_conversation_theme_set_variant(PidginConvTheme *theme, const char *variant); 77 void pidgin_conversation_theme_set_variant(PidginConvTheme *theme, const char *variant);
78 const GList *pidgin_conversation_theme_get_variants(PidginConvTheme *theme); 78 const GList *pidgin_conversation_theme_get_variants(PidginConvTheme *theme);
79 79
80 PidginConvTheme *pidgin_conversation_theme_load(const char *styledir); 80 PidginConvTheme *pidgin_conversation_theme_load(const char *styledir);