empathy_tp_tube_class_init: set NUM_EMP_TUBE_CHANNEL_STATES as max value for the...
authorGuillaume Desmottes <gdesmott@gnome.org>
Thu, 16 Apr 2009 15:43:14 +0000 (16:43 +0100)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Fri, 17 Apr 2009 09:37:03 +0000 (10:37 +0100)
libempathy/empathy-tp-tube.c

index c2a2e0c773ca69aa89049877fd15d140849f4162..9505494cd2681a60d2d01f62d436df53b4a257fb 100644 (file)
@@ -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",