diff options
author | Nicolas Dufresne <nicolas.dufresne@collabora.com> | 2012-03-28 19:47:06 -0400 |
---|---|---|
committer | Nicolas Dufresne <nicolas.dufresne@collabora.com> | 2012-03-28 19:47:06 -0400 |
commit | 32dcaccd28378b95713b1fc61c877ec547ec55a9 (patch) | |
tree | e0d75e70eb90d37774194ad93110014218d08132 | |
parent | c7baa2cf94e168546be2a8daebbb923f807af5eb (diff) | |
download | telepathy-logger-32dcaccd28378b95713b1fc61c877ec547ec55a9.tar.gz |
Limit end-reason to enum values rather then max int
-rw-r--r-- | telepathy-logger/call-event.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/telepathy-logger/call-event.c b/telepathy-logger/call-event.c index eeca764..47516f3 100644 --- a/telepathy-logger/call-event.c +++ b/telepathy-logger/call-event.c @@ -178,7 +178,7 @@ static void tpl_call_event_class_init (TplCallEventClass *klass) param_spec = g_param_spec_int ("end-reason", "End Reason", "Reason for wich this call was ended", - 0, G_MAXINT, TP_CALL_STATE_CHANGE_REASON_UNKNOWN, + 0, NUM_TP_CALL_STATE_CHANGE_REASONS, TP_CALL_STATE_CHANGE_REASON_UNKNOWN, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS); g_object_class_install_property (object_class, PROP_END_REASON, param_spec); |