aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
authorGuillaume Desmottes <gdesmott@gnome.org>2009-04-16 23:43:14 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-04-17 17:37:03 +0800
commit49f44c96f982609ea288fd1ed29f5016cd508f7d (patch)
tree5cdbb8c5ada24b4e51cbe6d100af97163065be11 /libempathy
parent75d72600210ef76510cf73f173891cf8fa3b3451 (diff)
downloadgsoc2013-empathy-49f44c96f982609ea288fd1ed29f5016cd508f7d.tar
gsoc2013-empathy-49f44c96f982609ea288fd1ed29f5016cd508f7d.tar.gz
gsoc2013-empathy-49f44c96f982609ea288fd1ed29f5016cd508f7d.tar.bz2
gsoc2013-empathy-49f44c96f982609ea288fd1ed29f5016cd508f7d.tar.lz
gsoc2013-empathy-49f44c96f982609ea288fd1ed29f5016cd508f7d.tar.xz
gsoc2013-empathy-49f44c96f982609ea288fd1ed29f5016cd508f7d.tar.zst
gsoc2013-empathy-49f44c96f982609ea288fd1ed29f5016cd508f7d.zip
empathy_tp_tube_class_init: set NUM_EMP_TUBE_CHANNEL_STATES as max value for the state property
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-tp-tube.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libempathy/empathy-tp-tube.c b/libempathy/empathy-tp-tube.c
index c2a2e0c77..9505494cd 100644
--- a/libempathy/empathy-tp-tube.c
+++ b/libempathy/empathy-tp-tube.c
@@ -232,7 +232,8 @@ empathy_tp_tube_class_init (EmpathyTpTubeClass *klass)
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (object_class, PROP_STATE,
- g_param_spec_uint ("state", "state", "state", 0, G_MAXUINT, 0,
+ g_param_spec_uint ("state", "state", "state",
+ 0, NUM_EMP_TUBE_CHANNEL_STATES, 0,
G_PARAM_READABLE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_STRINGS));
signals[DESTROY] = g_signal_new ("destroy",