summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/kiro-client.c3
-rw-r--r--src/kiro-server.c3
-rw-r--r--src/kiro-trb.c3
3 files changed, 6 insertions, 3 deletions
diff --git a/src/kiro-client.c b/src/kiro-client.c
index 807d7d5..0e2d486 100644
--- a/src/kiro-client.c
+++ b/src/kiro-client.c
@@ -57,7 +57,7 @@ struct _KiroClientPrivate {
};
-G_DEFINE_TYPE_WITH_PRIVATE (KiroClient, kiro_client, G_TYPE_OBJECT);
+G_DEFINE_TYPE (KiroClient, kiro_client, G_TYPE_OBJECT);
static void kiro_client_init (KiroClient *self)
@@ -79,6 +79,7 @@ kiro_client_class_init (KiroClientClass *klass)
{
GObjectClass *gobject_class = G_OBJECT_CLASS(klass);
gobject_class->finalize = kiro_client_finalize;
+ g_type_class_add_private(klass, sizeof(KiroClientPrivate));
}
diff --git a/src/kiro-server.c b/src/kiro-server.c
index 6b63fcc..276388b 100644
--- a/src/kiro-server.c
+++ b/src/kiro-server.c
@@ -61,7 +61,7 @@ struct _KiroServerPrivate {
};
-G_DEFINE_TYPE_WITH_PRIVATE (KiroServer, kiro_server, G_TYPE_OBJECT);
+G_DEFINE_TYPE (KiroServer, kiro_server, G_TYPE_OBJECT);
static void kiro_server_init (KiroServer *self)
@@ -86,6 +86,7 @@ kiro_server_class_init (KiroServerClass *klass)
{
GObjectClass *gobject_class = G_OBJECT_CLASS(klass);
gobject_class->finalize = kiro_server_finalize;
+ g_type_class_add_private(klass, sizeof(KiroServerPrivate));
}
diff --git a/src/kiro-trb.c b/src/kiro-trb.c
index dc8146f..aa71648 100644
--- a/src/kiro-trb.c
+++ b/src/kiro-trb.c
@@ -60,7 +60,7 @@ struct _KiroTrbPrivate {
};
-G_DEFINE_TYPE_WITH_PRIVATE (KiroTrb, kiro_trb, G_TYPE_OBJECT);
+G_DEFINE_TYPE (KiroTrb, kiro_trb, G_TYPE_OBJECT);
static
@@ -84,6 +84,7 @@ kiro_trb_class_init (KiroTrbClass *klass)
{
GObjectClass *gobject_class = G_OBJECT_CLASS(klass);
gobject_class->finalize = kiro_trb_finalize;
+ g_type_class_add_private(klass, sizeof(KiroTrbPrivate));
}