~ubuntu-branches/ubuntu/precise/rhythmbox/precise-201203091205

« back to all changes in this revision

Viewing changes to widgets/disclosure-widget.c

Tags: upstream-0.9.2cvs20060102
ImportĀ upstreamĀ versionĀ 0.9.2cvs20060102

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
#include <config.h>
27
27
#endif
28
28
 
 
29
#include <glib/gi18n.h>
29
30
#include <gtk/gtkexpander.h>
30
 
#include <libgnome/gnome-i18n.h>
31
31
 
32
32
#include "disclosure-widget.h"
33
33
 
43
43
        char *hidden;
44
44
};
45
45
 
 
46
#define CDDB_DISCLOSURE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), CDDB_DISCLOSURE_TYPE, CDDBDisclosurePrivate))
 
47
 
46
48
static void
47
49
finalize (GObject *object)
48
50
{
57
59
                g_object_unref (G_OBJECT (disclosure->priv->container));
58
60
        }
59
61
 
60
 
        g_free (disclosure->priv);
61
 
        disclosure->priv = NULL;
62
 
 
63
62
        G_OBJECT_CLASS (parent_class)->finalize (object);
64
63
}
65
64
 
71
70
        parent_class = g_type_class_peek_parent (klass);
72
71
 
73
72
        object_class->finalize = finalize;
 
73
 
 
74
        g_type_class_add_private (klass, sizeof (CDDBDisclosurePrivate));
74
75
}
75
76
 
76
77
static void
77
78
init (CDDBDisclosure *disclosure)
78
79
{
79
 
        disclosure->priv = g_new0 (CDDBDisclosurePrivate, 1);
 
80
        disclosure->priv = CDDB_DISCLOSURE_GET_PRIVATE (disclosure);
80
81
}
81
82
 
82
83
GType