diff options
author | Jonny Lamb <jonny.lamb@collabora.co.uk> | 2012-05-16 18:40:59 +0100 |
---|---|---|
committer | Jonny Lamb <jonny.lamb@collabora.co.uk> | 2012-05-16 18:40:59 +0100 |
commit | f8bec1f34af87c4bc044b022abc69f1176ba1f33 (patch) | |
tree | 7fbb30bc96020f5c196ab2f3ea08dccdbce413aa | |
parent | cd6059e686d95fb1d8d9f080abedce6ab95a9c82 (diff) |
room-config: use G_N_ELEMENTS
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
-rw-r--r-- | src/room-config.c | 3 |
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); } |