diff options
author | Bastien Nocera <hadess@hadess.net> | 2012-05-10 16:51:52 +0100 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2012-05-10 16:52:19 +0100 |
commit | 49d2ca03e879ab2558a0bc635cbd46401f429107 (patch) | |
tree | 196f223603364071eca7e04b3a6d6caab000833d /lib | |
parent | d81e3febf5eeab7b1b45f8c3e6d3a24e0b81a326 (diff) | |
download | gnome-bluetooth-49d2ca03e879ab2558a0bc635cbd46401f429107.tar.gz |
lib: Fix problem with BluetoothStatusClass refcounts
Diffstat (limited to 'lib')
-rw-r--r-- | lib/bluetooth-client.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bluetooth-client.c b/lib/bluetooth-client.c index 5ed7c7cd..dd4ff155 100644 --- a/lib/bluetooth-client.c +++ b/lib/bluetooth-client.c @@ -1003,6 +1003,8 @@ static void bluetooth_client_init(BluetoothClient *client) { BluetoothClientPrivate *priv = BLUETOOTH_CLIENT_GET_PRIVATE(client); + g_type_class_ref (BLUETOOTH_TYPE_STATUS); + priv->store = gtk_tree_store_new(_BLUETOOTH_NUM_COLUMNS, G_TYPE_OBJECT, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_UINT, G_TYPE_STRING, @@ -1284,8 +1286,6 @@ static void bluetooth_client_class_init(BluetoothClientClass *klass) GObjectClass *object_class = (GObjectClass *) klass; GError *error = NULL; - g_type_class_ref (BLUETOOTH_TYPE_STATUS); - g_type_class_add_private(klass, sizeof(BluetoothClientPrivate)); object_class->finalize = bluetooth_client_finalize; |