[gnome-bluetooth] lib: Fix compile-time warning
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth] lib: Fix compile-time warning
- Date: Fri, 16 Feb 2018 11:14:14 +0000 (UTC)
commit 86574feca8f33aa173cd9b0558c52d4fafb8320b
Author: Bastien Nocera <hadess hadess net>
Date: Fri Feb 16 11:52:46 2018 +0100
lib: Fix compile-time warning
lib/bluetooth-client.c:1225:8: warning: assignment from incompatible pointer type
[-Wincompatible-pointer-types]
model = g_object_ref(priv->store);
^
lib/bluetooth-client.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/lib/bluetooth-client.c b/lib/bluetooth-client.c
index beea7ed..0233537 100644
--- a/lib/bluetooth-client.c
+++ b/lib/bluetooth-client.c
@@ -1210,7 +1210,7 @@ GtkTreeModel *bluetooth_client_get_model (BluetoothClient *client)
g_return_val_if_fail (BLUETOOTH_IS_CLIENT (client), NULL);
priv = BLUETOOTH_CLIENT_GET_PRIVATE(client);
- model = g_object_ref(priv->store);
+ model = GTK_TREE_MODEL (g_object_ref(priv->store));
return model;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]