Mercurial > pidgin
diff libpurple/theme.h @ 25096:fbf72bbd1084
Fixed up a few typos, readability, leaks, and bugs, all minor and mostly in theme and theme loader classes
| author | Justin Rodriguez <ffdragon@soc.pidgin.im> |
|---|---|
| date | Mon, 30 Jun 2008 03:50:35 +0000 |
| parents | 8f397c8e728a |
| children | 0c7b74fc558e |
line wrap: on
line diff
--- a/libpurple/theme.h Fri Jun 27 21:01:47 2008 +0000 +++ b/libpurple/theme.h Mon Jun 30 03:50:35 2008 +0000 @@ -75,7 +75,7 @@ * * @return The string representating the name of the theme */ -gchar *purple_theme_get_name(PurpleTheme *theme); +const gchar *purple_theme_get_name(PurpleTheme *theme); /** * Sets the name of the PurpleTheme object @@ -92,7 +92,7 @@ * * @return A short description of the theme */ -gchar *purple_theme_get_description(PurpleTheme *theme); +const gchar *purple_theme_get_description(PurpleTheme *theme); /** * Sets the description of the PurpleTheme object @@ -109,7 +109,7 @@ * * @return The author of the theme */ -gchar *purple_theme_get_author(PurpleTheme *theme); +const gchar *purple_theme_get_author(PurpleTheme *theme); /** * Sets the author of the PurpleTheme object @@ -126,7 +126,7 @@ * * @return The string represtenting the type */ -gchar *purple_theme_get_type_string(PurpleTheme *theme); +const gchar *purple_theme_get_type_string(PurpleTheme *theme); /** * Returns the directory of the PurpleTheme object @@ -135,7 +135,7 @@ * * @return The string represtenting the theme directory */ -gchar *purple_theme_get_dir(PurpleTheme *theme); +const gchar *purple_theme_get_dir(PurpleTheme *theme); /** * Sets the directory of the PurpleTheme object @@ -150,9 +150,18 @@ * * @param theme the purple theme * - * @return The PurpleStoredImage preview of the PurpleTheme object + * @return The image preview of the PurpleTheme object */ -PurpleStoredImage *purple_theme_get_image(PurpleTheme *theme); +const gchar *purple_theme_get_image(PurpleTheme *theme); + +/** + * Returns the image preview and directory of the PurpleTheme object + * + * @param theme the purple theme + * + * @return The image preview of the PurpleTheme object + */ +gchar *purple_theme_get_image_full(PurpleTheme *theme); /** * Sets the directory of the PurpleTheme object @@ -160,7 +169,7 @@ * @param theme the purple theme * @param img the image preview of the PurpleTheme object */ -void purple_theme_set_image(PurpleTheme *theme, PurpleStoredImage *img); +void purple_theme_set_image(PurpleTheme *theme, const gchar *img); G_END_DECLS #endif /* _PURPLE_THEME_H_ */
