Mercurial > pidgin
comparison libpurple/theme-manager.c @ 27590:a08e84032814
merge of '2348ff22f0ff3453774b8b25b36238465580c609'
and 'e76f11543c2a4aa05bdf584f087cbe3439029661'
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Sun, 12 Jul 2009 05:43:38 +0000 |
parents | d629a42c8340 |
children | f1437342cc0e |
comparison
equal
deleted
inserted
replaced
27104:048bcf41deef | 27590:a08e84032814 |
---|---|
292 g_return_if_fail(func); | 292 g_return_if_fail(func); |
293 | 293 |
294 g_hash_table_foreach(theme_table, | 294 g_hash_table_foreach(theme_table, |
295 (GHFunc) purple_theme_manager_function_wrapper, func); | 295 (GHFunc) purple_theme_manager_function_wrapper, func); |
296 } | 296 } |
297 | |
298 PurpleTheme * | |
299 purple_theme_manager_load_theme(const gchar *theme_dir, const gchar *type) | |
300 { | |
301 PurpleThemeLoader *loader; | |
302 | |
303 g_return_val_if_fail(theme_dir != NULL && type != NULL, NULL); | |
304 | |
305 loader = g_hash_table_lookup(theme_table, type); | |
306 g_return_val_if_fail(PURPLE_IS_THEME_LOADER(loader), NULL); | |
307 | |
308 return purple_theme_loader_build(loader, theme_dir); | |
309 } |