[empathy] empathy_tp_tube_class_init: set NUM_EMP_TUBE_CHANNEL_STATES as max value for the state property
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: svn-commits-list gnome org
- Subject: [empathy] empathy_tp_tube_class_init: set NUM_EMP_TUBE_CHANNEL_STATES as max value for the state property
- Date: Fri, 17 Apr 2009 06:06:30 -0400 (EDT)
commit 49f44c96f982609ea288fd1ed29f5016cd508f7d
Author: Guillaume Desmottes <gdesmott gnome org>
Date: Thu Apr 16 16:43:14 2009 +0100
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 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/libempathy/empathy-tp-tube.c b/libempathy/empathy-tp-tube.c
index c2a2e0c..9505494 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",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]