Mercurial > pidgin
comparison libpurple/theme-loader.h @ 32819:2c6510167895 default tip
propagate from branch 'im.pidgin.pidgin.2.x.y' (head 3315c5dfbd0ad16511bdcf865e5b07c02d07df24)
to branch 'im.pidgin.pidgin' (head cbd1eda6bcbf0565ae7766396bb8f6f419cb6a9a)
| author | Elliott Sales de Andrade <qulogic@pidgin.im> |
|---|---|
| date | Sat, 02 Jun 2012 02:30:49 +0000 |
| parents | 5050da3d9c95 |
| children |
comparison
equal
deleted
inserted
replaced
| 32818:01ff09d4a463 | 32819:2c6510167895 |
|---|---|
| 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; | |
| 54 }; | 53 }; |
| 55 | 54 |
| 56 struct _PurpleThemeLoaderClass | 55 struct _PurpleThemeLoaderClass |
| 57 { | 56 { |
| 58 GObjectClass parent_class; | 57 GObjectClass parent_class; |
| 59 PurpleTheme *((*purple_theme_loader_build)(const gchar*)); | 58 PurpleTheme *((*purple_theme_loader_build)(const gchar*)); |
| 59 gboolean (*probe_directory)(const gchar *); | |
| 60 }; | 60 }; |
| 61 | 61 |
| 62 /**************************************************************************/ | 62 /**************************************************************************/ |
| 63 /** @name Purple Theme-Loader API */ | 63 /** @name Purple Theme-Loader API */ |
| 64 /**************************************************************************/ | 64 /**************************************************************************/ |
| 87 * | 87 * |
| 88 * @returns A PurpleTheme containing the information from the directory | 88 * @returns A PurpleTheme containing the information from the directory |
| 89 */ | 89 */ |
| 90 PurpleTheme *purple_theme_loader_build(PurpleThemeLoader *loader, const gchar *dir); | 90 PurpleTheme *purple_theme_loader_build(PurpleThemeLoader *loader, const gchar *dir); |
| 91 | 91 |
| 92 /** | |
| 93 * Probes a directory to see if it might possibly contain a theme | |
| 94 * | |
| 95 * This function might only check for obvious files or directory structure. | |
| 96 * Loading of a theme may fail for other reasons. | |
| 97 * The default prober checks for $dir/purple/$type. | |
| 98 * | |
| 99 * @param loader The theme loader | |
| 100 * @param dir The directory that may contain the theme | |
| 101 * | |
| 102 * @returns TRUE if the directory appears to contain a theme, FALSE otherwise. | |
| 103 */ | |
| 104 gboolean purple_theme_loader_probe(PurpleThemeLoader *loader, const gchar *dir); | |
| 105 | |
| 92 G_END_DECLS | 106 G_END_DECLS |
| 93 #endif /* PURPLE_THEME_LOADER_H */ | 107 #endif /* PURPLE_THEME_LOADER_H */ |
