libpurple/theme-manager.h

branch
soc.2013.gobjectification.plugins
changeset 37023
d9bcdc9a91e6
parent 37017
8e2b68c79fa1
child 37034
9d6765962b22
equal deleted inserted replaced
37022:d891503c8aa6 37023:d9bcdc9a91e6
88 void purple_theme_manager_refresh(void); 88 void purple_theme_manager_refresh(void);
89 89
90 /** 90 /**
91 * Finds the PurpleTheme object stored by the theme manager. 91 * Finds the PurpleTheme object stored by the theme manager.
92 * 92 *
93 * @name: The name of the PurpleTheme. 93 * @param name The name of the PurpleTheme.
94 * @type: The type of the PurpleTheme. 94 * @param type The type of the PurpleTheme.
95 * 95 *
96 * Returns:s The PurpleTheme, or NULL if it wasn't found. 96 * @returns The PurpleTheme, or NULL if it wasn't found.
97 */ 97 */
98 PurpleTheme *purple_theme_manager_find_theme(const gchar *name, const gchar *type); 98 PurpleTheme *purple_theme_manager_find_theme(const gchar *name, const gchar *type);
99 99
100 /** 100 /**
101 * Adds a PurpleTheme to the theme manager. If the theme already exists 101 * Adds a PurpleTheme to the theme manager. If the theme already exists
102 * then this function does nothing. 102 * then this function does nothing.
103 * 103 *
104 * @theme: The PurpleTheme to add to the manager. 104 * @param theme The PurpleTheme to add to the manager.
105 */ 105 */
106 void purple_theme_manager_add_theme(PurpleTheme *theme); 106 void purple_theme_manager_add_theme(PurpleTheme *theme);
107 107
108 /** 108 /**
109 * Removes a PurpleTheme from the theme manager and frees the theme. 109 * Removes a PurpleTheme from the theme manager and frees the theme.
110 * 110 *
111 * @theme: The PurpleTheme to remove from the manager. 111 * @param theme The PurpleTheme to remove from the manager.
112 */ 112 */
113 void purple_theme_manager_remove_theme(PurpleTheme *theme); 113 void purple_theme_manager_remove_theme(PurpleTheme *theme);
114 114
115 /** 115 /**
116 * Adds a loader to the theme manager so it knows how to build themes. 116 * Adds a loader to the theme manager so it knows how to build themes.
117 * 117 *
118 * @loader: The PurpleThemeLoader to add. 118 * @param loader The PurpleThemeLoader to add.
119 */ 119 */
120 void purple_theme_manager_register_type(PurpleThemeLoader *loader); 120 void purple_theme_manager_register_type(PurpleThemeLoader *loader);
121 121
122 /** 122 /**
123 * Removes the loader and all themes of the same type from the loader. 123 * Removes the loader and all themes of the same type from the loader.
124 * 124 *
125 * @loader: The PurpleThemeLoader to be removed. 125 * @param loader The PurpleThemeLoader to be removed.
126 */ 126 */
127 void purple_theme_manager_unregister_type(PurpleThemeLoader *loader); 127 void purple_theme_manager_unregister_type(PurpleThemeLoader *loader);
128 128
129 /** 129 /**
130 * Calls the given function on each purple theme. 130 * Calls the given function on each purple theme.
131 * 131 *
132 * @func: The PTFunc to be applied to each theme. 132 * @param func The PTFunc to be applied to each theme.
133 */ 133 */
134 void purple_theme_manager_for_each_theme(PTFunc func); 134 void purple_theme_manager_for_each_theme(PTFunc func);
135 135
136 /** 136 /**
137 * Loads a theme of the given type without adding it to the manager 137 * Loads a theme of the given type without adding it to the manager
138 * 138 *
139 * @theme_dir: the directory of the theme to load 139 * @param theme_dir the directory of the theme to load
140 * @type: the type of theme to load 140 * @param type the type of theme to load
141 */ 141 */
142 PurpleTheme *purple_theme_manager_load_theme(const gchar *theme_dir, const gchar *type); 142 PurpleTheme *purple_theme_manager_load_theme(const gchar *theme_dir, const gchar *type);
143 143
144 G_END_DECLS 144 G_END_DECLS
145 #endif /* PURPLE_THEME_MANAGER_H */ 145 #endif /* PURPLE_THEME_MANAGER_H */

mercurial