27 #ifndef PURPLE_THEME_MANAGER_H 28 #define PURPLE_THEME_MANAGER_H 30 #include <glib-object.h> 40 #define PURPLE_TYPE_THEME_MANAGER (purple_theme_manager_get_type()) 41 #define PURPLE_THEME_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), PURPLE_TYPE_THEME_MANAGER, PurpleThemeManager)) 42 #define PURPLE_THEME_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), PURPLE_TYPE_THEME_MANAGER, PurpleThemeManagerClass)) 43 #define PURPLE_IS_THEME_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), PURPLE_TYPE_THEME_MANAGER)) 44 #define PURPLE_IS_THEME_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), PURPLE_TYPE_THEME_MANAGER)) 45 #define PURPLE_GET_THEME_MANAGER_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), PURPLE_TYPE_THEME_MANAGER, PurpleThemeManagerClass)) 52 GObjectClass parent_class;
void purple_theme_manager_unregister_type(PurpleThemeLoader *loader)
Removes the loader and all themes of the same type from the loader.
Purple Theme Abstact Class API.
void purple_theme_manager_init(void)
Initalizes the theme manager.
PurpleTheme * purple_theme_manager_find_theme(const gchar *name, const gchar *type)
Finds the PurpleTheme object stored by the theme manager.
void purple_theme_manager_for_each_theme(PTFunc func)
Calls the given function on each purple theme.
PurpleTheme * purple_theme_manager_load_theme(const gchar *theme_dir, const gchar *type)
Loads a theme of the given type without adding it to the manager.
void purple_theme_manager_register_type(PurpleThemeLoader *loader)
Adds a loader to the theme manager so it knows how to build themes.
Purple Theme Loader Abstact Class API.
void purple_theme_manager_add_theme(PurpleTheme *theme)
Adds a PurpleTheme to the theme manager.
void purple_theme_manager_uninit(void)
Uninitalizes the manager then frees all the themes and loaders it is responsible for.
void purple_theme_manager_refresh(void)
Rebuilds all the themes in the theme manager.
G_BEGIN_DECLS GType purple_theme_manager_get_type(void)
GObject foo.
void purple_theme_manager_remove_theme(PurpleTheme *theme)
Removes a PurpleTheme from the theme manager and frees the theme.