Mercurial > pidgin
diff libpurple/theme.h @ 25911:0c7b74fc558e
Lots of minor whitespace and comment changes:
* Removed stray whitespace
* Changed a few places that used space indentation to use tabs
* Changed some places that used tabs for alignment in the middle
of a line of code to use spaces
* Use two tabs to indent code that spans more than one line instead of
a few tabs and a few spaces in an effort to align the subsequent lines
with the initial one
* Changed "#ifdef _BLAH_H" to "#ifdef BLAH_H" because an underscore
followed by a capital letter is reserved for use by the compiler and
system libraries.
I also changed the path to the sound theme.xml file from
root_node = xmlnode_from_file(dir, "theme.xml", "sound themes", "sound-loader");
to
root_node = xmlnode_from_file(dir, "theme.xml", "sound themes", "sound-theme-loader");
| author | Mark Doliner <mark@kingant.net> |
|---|---|
| date | Sun, 25 Jan 2009 22:55:23 +0000 |
| parents | fbf72bbd1084 |
| children | a444fe876e52 |
line wrap: on
line diff
--- a/libpurple/theme.h Sat Jan 24 03:11:09 2009 +0000 +++ b/libpurple/theme.h Sun Jan 25 22:55:23 2009 +0000 @@ -23,8 +23,8 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA */ -#ifndef _PURPLE_THEME_H_ -#define _PURPLE_THEME_H_ +#ifndef PURPLE_THEME_H +#define PURPLE_THEME_H #include <glib.h> #include <glib-object.h> @@ -39,12 +39,12 @@ typedef struct _PurpleTheme PurpleTheme; typedef struct _PurpleThemeClass PurpleThemeClass; -#define PURPLE_TYPE_THEME (purple_theme_get_type ()) -#define PURPLE_THEME(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PURPLE_TYPE_THEME, PurpleTheme)) -#define PURPLE_THEME_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PURPLE_TYPE_THEME, PurpleThemeClass)) -#define PURPLE_IS_THEME(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PURPLE_TYPE_THEME)) -#define PURPLE_IS_THEME_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PURPLE_TYPE_THEME)) -#define PURPLE_THEME_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PURPLE_TYPE_THEME, PurpleThemeClass)) +#define PURPLE_TYPE_THEME (purple_theme_get_type ()) +#define PURPLE_THEME(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PURPLE_TYPE_THEME, PurpleTheme)) +#define PURPLE_THEME_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PURPLE_TYPE_THEME, PurpleThemeClass)) +#define PURPLE_IS_THEME(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PURPLE_TYPE_THEME)) +#define PURPLE_IS_THEME_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PURPLE_TYPE_THEME)) +#define PURPLE_THEME_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PURPLE_TYPE_THEME, PurpleThemeClass)) struct _PurpleTheme { @@ -69,107 +69,107 @@ GType purple_theme_get_type(void); /** - * Returns the name of the PurpleTheme object - * - * @param theme the purple theme + * Returns the name of the PurpleTheme object. * - * @return The string representating the name of the theme + * @param theme The purple theme. + * + * @return The string representating the name of the theme. */ const gchar *purple_theme_get_name(PurpleTheme *theme); /** - * Sets the name of the PurpleTheme object - * - * @param theme the purple theme - * @param name the name of the PurpleTheme object + * Sets the name of the PurpleTheme object. + * + * @param theme The purple theme. + * @param name The name of the PurpleTheme object. */ void purple_theme_set_name(PurpleTheme *theme, const gchar *name); /** - * Returns the description of the PurpleTheme object - * - * @param theme the purple theme + * Returns the description of the PurpleTheme object. * - * @return A short description of the theme + * @param theme The purple theme. + * + * @return A short description of the theme. */ const gchar *purple_theme_get_description(PurpleTheme *theme); /** - * Sets the description of the PurpleTheme object - * - * @param theme the purple theme - * @param description the description of the PurpleTheme object + * Sets the description of the PurpleTheme object. + * + * @param theme The purple theme. + * @param description The description of the PurpleTheme object. */ void purple_theme_set_description(PurpleTheme *theme, const gchar *description); /** - * Returns the author of the PurpleTheme object - * - * @param theme the purple theme + * Returns the author of the PurpleTheme object. * - * @return The author of the theme + * @param theme The purple theme. + * + * @return The author of the theme. */ const gchar *purple_theme_get_author(PurpleTheme *theme); /** - * Sets the author of the PurpleTheme object - * - * @param theme the purple theme - * @param author the author of the PurpleTheme object + * Sets the author of the PurpleTheme object. + * + * @param theme The purple theme. + * @param author The author of the PurpleTheme object. */ void purple_theme_set_author(PurpleTheme *theme, const gchar *author); /** - * Returns the type (string) of the PurpleTheme object - * - * @param theme the purple theme + * Returns the type (string) of the PurpleTheme object. * - * @return The string represtenting the type + * @param theme The purple theme. + * + * @return The string represtenting the type. */ const gchar *purple_theme_get_type_string(PurpleTheme *theme); /** - * Returns the directory of the PurpleTheme object - * - * @param theme the purple theme + * Returns the directory of the PurpleTheme object. * - * @return The string represtenting the theme directory + * @param theme The purple theme. + * + * @return The string represtenting the theme directory. */ const gchar *purple_theme_get_dir(PurpleTheme *theme); /** - * Sets the directory of the PurpleTheme object - * - * @param theme the purple theme - * @param dir the directory of the PurpleTheme object + * Sets the directory of the PurpleTheme object. + * + * @param theme The purple theme. + * @param dir The directory of the PurpleTheme object. */ void purple_theme_set_dir(PurpleTheme *theme, const gchar *dir); /** - * Returns the image preview of the PurpleTheme object - * - * @param theme the purple theme + * Returns the image preview of the PurpleTheme object. * - * @return The image preview of the PurpleTheme object + * @param theme The purple theme. + * + * @return The image preview of the PurpleTheme object. */ const gchar *purple_theme_get_image(PurpleTheme *theme); /** - * Returns the image preview and directory of the PurpleTheme object - * - * @param theme the purple theme + * Returns the image preview and directory of the PurpleTheme object. * - * @return The image preview 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 - * - * @param theme the purple theme - * @param img the image preview of the PurpleTheme object + * Sets the directory of the PurpleTheme object. + * + * @param theme The purple theme. + * @param img The image preview of the PurpleTheme object. */ void purple_theme_set_image(PurpleTheme *theme, const gchar *img); G_END_DECLS -#endif /* _PURPLE_THEME_H_ */ +#endif /* PURPLE_THEME_H */
