[polari] room: Use correct type for :type property
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari] room: Use correct type for :type property
- Date: Thu, 17 Sep 2015 14:51:33 +0000 (UTC)
commit 2e8d65af2da090b5700220fa87b720db84aa3a13
Author: Florian Müllner <fmuellner gnome org>
Date: Thu Sep 17 14:56:52 2015 +0200
room: Use correct type for :type property
TP_TYPE_HANDLE is defined as G_TYPE_UINT, so that's what we should
use ...
src/lib/polari-room.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/lib/polari-room.c b/src/lib/polari-room.c
index c9a9597..f286356 100644
--- a/src/lib/polari-room.c
+++ b/src/lib/polari-room.c
@@ -463,7 +463,7 @@ polari_room_set_account (PolariRoom *room,
static void
polari_room_set_type (PolariRoom *room,
- int type)
+ guint type)
{
PolariRoomPrivate *priv;
@@ -612,7 +612,7 @@ polari_room_get_property (GObject *object,
g_value_set_object (value, priv->account);
break;
case PROP_TYPE:
- g_value_set_int (value, priv->type);
+ g_value_set_uint (value, priv->type);
break;
case PROP_CHANNEL_NAME:
g_value_set_string (value, priv->channel_name);
@@ -650,7 +650,7 @@ polari_room_set_property (GObject *object,
polari_room_set_account (room, g_value_get_object (value));
break;
case PROP_TYPE:
- polari_room_set_type (room, g_value_get_int (value));
+ polari_room_set_type (room, g_value_get_uint (value));
break;
case PROP_CHANNEL_NAME:
polari_room_set_channel_name (room, g_value_get_string (value));
@@ -730,7 +730,7 @@ polari_room_class_init (PolariRoomClass *klass)
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY);
props[PROP_TYPE] =
- g_param_spec_int ("type",
+ g_param_spec_uint ("type",
"Type",
"Type",
TP_HANDLE_TYPE_NONE,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]