Mercurial > pidgin.yaz
diff libpurple/sound.c @ 23474:331a7a69d955
Changed the theme_manager_init function to do less, makes it cleaner and faster (won't have to build
2+ times)
author | Justin Rodriguez <ffdragon@soc.pidgin.im> |
---|---|
date | Sun, 06 Jul 2008 05:57:26 +0000 |
parents | 44b4e8bd759b |
children | 25af9b1994c8 |
line wrap: on
line diff
--- a/libpurple/sound.c Mon Jun 30 23:12:54 2008 +0000 +++ b/libpurple/sound.c Sun Jul 06 05:57:26 2008 +0000 @@ -25,6 +25,8 @@ #include "blist.h" #include "prefs.h" #include "sound.h" +#include "sound-loader.h" +#include "theme-manager.h" static PurpleSoundUiOps *sound_ui_ops = NULL; @@ -134,6 +136,8 @@ purple_prefs_add_none("/purple/sound"); purple_prefs_add_int("/purple/sound/while_status", STATUS_AVAILABLE); memset(last_played, 0, sizeof(last_played)); + + purple_theme_manager_register_type(g_object_new(PURPLE_TYPE_SOUND_THEME_LOADER, "type", "sound", NULL)); } void