comparison libpurple/theme-loader.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 b37ccfd1697b
children b1c8ffbd48f9
comparison
equal deleted inserted replaced
25910:3d8c53f3108e 25911:0c7b74fc558e
21 * You should have received a copy of the GNU General Public License 21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software 22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA 23 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
24 */ 24 */
25 25
26 #ifndef _PURPLE_THEME_LOADER_H_ 26 #ifndef PURPLE_THEME_LOADER_H
27 #define _PURPLE_THEME_LOADER_H_ 27 #define PURPLE_THEME_LOADER_H
28 28
29 #include <glib.h> 29 #include <glib.h>
30 #include <glib-object.h> 30 #include <glib-object.h>
31 #include "theme.h" 31 #include "theme.h"
32 32
38 * PurpleThemeLoader is a GObject. 38 * PurpleThemeLoader is a GObject.
39 */ 39 */
40 typedef struct _PurpleThemeLoader PurpleThemeLoader; 40 typedef struct _PurpleThemeLoader PurpleThemeLoader;
41 typedef struct _PurpleThemeLoaderClass PurpleThemeLoaderClass; 41 typedef struct _PurpleThemeLoaderClass PurpleThemeLoaderClass;
42 42
43 #define PURPLE_TYPE_THEME_LOADER (purple_theme_loader_get_type ()) 43 #define PURPLE_TYPE_THEME_LOADER (purple_theme_loader_get_type())
44 #define PURPLE_THEME_LOADER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PURPLE_TYPE_THEME_LOADER, PurpleThemeLoader)) 44 #define PURPLE_THEME_LOADER(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), PURPLE_TYPE_THEME_LOADER, PurpleThemeLoader))
45 #define PURPLE_THEME_LOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PURPLE_TYPE_THEME_LOADER, PurpleThemeLoaderClass)) 45 #define PURPLE_THEME_LOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), PURPLE_TYPE_THEME_LOADER, PurpleThemeLoaderClass))
46 #define PURPLE_IS_THEME_LOADER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PURPLE_TYPE_THEME_LOADER)) 46 #define PURPLE_IS_THEME_LOADER(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), PURPLE_TYPE_THEME_LOADER))
47 #define PURPLE_IS_THEME_LOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PURPLE_TYPE_THEME_LOADER)) 47 #define PURPLE_IS_THEME_LOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), PURPLE_TYPE_THEME_LOADER))
48 #define PURPLE_THEME_LOADER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PURPLE_TYPE_THEME_LOADER, PurpleThemeLoaderClass)) 48 #define PURPLE_THEME_LOADER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), PURPLE_TYPE_THEME_LOADER, PurpleThemeLoaderClass))
49 49
50 struct _PurpleThemeLoader 50 struct _PurpleThemeLoader
51 { 51 {
52 GObject parent; 52 GObject parent;
53 gpointer priv; 53 gpointer priv;
71 GType purple_theme_loader_get_type(void); 71 GType purple_theme_loader_get_type(void);
72 72
73 /** 73 /**
74 * Returns the string represtenting the type of the theme loader 74 * Returns the string represtenting the type of the theme loader
75 * 75 *
76 * @param self the theme loader 76 * @param self The theme loader
77 * 77 *
78 * @returns the string represting this type 78 * @returns The string represting this type
79 */ 79 */
80 const gchar *purple_theme_loader_get_type_string(PurpleThemeLoader *self); 80 const gchar *purple_theme_loader_get_type_string(PurpleThemeLoader *self);
81 81
82 /** 82 /**
83 * Creates a new PurpleTheme 83 * Creates a new PurpleTheme
84 * 84 *
85 * @param dir the directory containing the theme 85 * @param dir The directory containing the theme
86 * 86 *
87 * @returns PurpleTheme containing the information from the directory 87 * @returns A PurpleTheme containing the information from the directory
88 */ 88 */
89 PurpleTheme *purple_theme_loader_build(PurpleThemeLoader *loader, const gchar *dir); 89 PurpleTheme *purple_theme_loader_build(PurpleThemeLoader *loader, const gchar *dir);
90 90
91 G_END_DECLS 91 G_END_DECLS
92 #endif /* _PURPLE_THEME_LOADER_H_ */ 92 #endif /* PURPLE_THEME_LOADER_H */