From: Guillaume Desmottes Date: Thu, 16 Apr 2009 15:43:14 +0000 (+0100) Subject: empathy_tp_tube_class_init: set NUM_EMP_TUBE_CHANNEL_STATES as max value for the... X-Git-Url: https://git.0d.be/?p=empathy.git;a=commitdiff_plain;h=49f44c96f982609ea288fd1ed29f5016cd508f7d empathy_tp_tube_class_init: set NUM_EMP_TUBE_CHANNEL_STATES as max value for the state property --- 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",