summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJonny Lamb <jonny.lamb@collabora.co.uk>2012-05-16 18:40:59 +0100
committerJonny Lamb <jonny.lamb@collabora.co.uk>2012-05-16 18:40:59 +0100
commitf8bec1f34af87c4bc044b022abc69f1176ba1f33 (patch)
tree7fbb30bc96020f5c196ab2f3ea08dccdbce413aa /src
parentcd6059e686d95fb1d8d9f080abedce6ab95a9c82 (diff)
room-config: use G_N_ELEMENTS
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
Diffstat (limited to 'src')
-rw-r--r--src/room-config.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/room-config.c b/src/room-config.c
index ceeeddc..aedff67 100644
--- a/src/room-config.c
+++ b/src/room-config.c
@@ -74,7 +74,6 @@ idle_room_config_constructed (GObject *object)
TP_BASE_ROOM_CONFIG_PASSWORD,
TP_BASE_ROOM_CONFIG_PASSWORD_PROTECTED,
TP_BASE_ROOM_CONFIG_PRIVATE,
- TP_NUM_BASE_ROOM_CONFIG_PROPERTIES
};
guint i;
void (*chain_up)(GObject *) =
@@ -83,7 +82,7 @@ idle_room_config_constructed (GObject *object)
if (chain_up != NULL)
chain_up (object);
- for (i = 0; prop_helper[i] != TP_NUM_BASE_ROOM_CONFIG_PROPERTIES; ++i)
+ for (i = 0; i < G_N_ELEMENTS (prop_helper); ++i)
{
tp_base_room_config_set_property_mutable (self, prop_helper[i], TRUE);
}