From 49f44c96f982609ea288fd1ed29f5016cd508f7d Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Thu, 16 Apr 2009 16:43:14 +0100 Subject: [PATCH] empathy_tp_tube_class_init: set NUM_EMP_TUBE_CHANNEL_STATES as max value for the state property --- libempathy/empathy-tp-tube.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libempathy/empathy-tp-tube.c b/libempathy/empathy-tp-tube.c index c2a2e0c7..9505494c 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", -- 2.39.2