Mercurial > pidgin
comparison libpurple/sound-theme.c @ 25090:5a02912e0bac
more gobject fixed
author | Justin Rodriguez <ffdragon@soc.pidgin.im> |
---|---|
date | Sun, 22 Jun 2008 03:07:07 +0000 |
parents | d60c3d1c6966 |
children | cf7625d4d7e0 |
comparison
equal
deleted
inserted
replaced
25089:d60c3d1c6966 | 25090:5a02912e0bac |
---|---|
52 static void | 52 static void |
53 purple_sound_theme_init(GTypeInstance *instance, | 53 purple_sound_theme_init(GTypeInstance *instance, |
54 gpointer klass) | 54 gpointer klass) |
55 { | 55 { |
56 PurpleSoundThemePrivate *priv; | 56 PurpleSoundThemePrivate *priv; |
57 GObject *obj = (GObject *)instance; | |
58 | 57 |
59 priv = PURPLE_SOUND_THEME_GET_PRIVATE(obj); | 58 (PURPLE_SOUND_THEME(instance))->priv = g_new0(PurpleSoundThemePrivate, 1); |
59 | |
60 priv = PURPLE_SOUND_THEME_GET_PRIVATE(instance); | |
60 | 61 |
61 priv->sound_files = g_hash_table_new_full (g_str_hash, | 62 priv->sound_files = g_hash_table_new_full (g_str_hash, |
62 g_str_equal, | 63 g_str_equal, |
63 g_free, | 64 g_free, |
64 g_free); | 65 g_free); |