diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2012-05-02 19:06:24 +0100 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2012-05-02 20:19:36 +0100 |
commit | 9aec808ae99f5b06c816943fc1648358af0d8294 (patch) | |
tree | ac7f5cd918ca45932fd321648e9f589d35e966c2 /telepathy-glib/group-mixin.c | |
parent | 2cc2520bcfa36c834dab111ebf41637bbfc8371f (diff) | |
download | telepathy-glib-9aec808ae99f5b06c816943fc1648358af0d8294.tar.gz |
Stop using TP_ERRORS
We deprecated this in 0.11.
Diffstat (limited to 'telepathy-glib/group-mixin.c')
-rw-r--r-- | telepathy-glib/group-mixin.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/telepathy-glib/group-mixin.c b/telepathy-glib/group-mixin.c index 182aaf4f0..a07f309ef 100644 --- a/telepathy-glib/group-mixin.c +++ b/telepathy-glib/group-mixin.c @@ -584,7 +584,7 @@ tp_group_mixin_add_members (GObject *obj, DEBUG ("handle %u cannot be added to members without " "GROUP_FLAG_CAN_ADD", handle); - g_set_error (error, TP_ERRORS, TP_ERROR_PERMISSION_DENIED, + g_set_error (error, TP_ERROR, TP_ERROR_PERMISSION_DENIED, "handle %u cannot be added to members without " "GROUP_FLAG_CAN_ADD", handle); @@ -606,7 +606,7 @@ tp_group_mixin_add_members (GObject *obj, if (mixin_cls->add_member == NULL) { - g_set_error (error, TP_ERRORS, TP_ERROR_NOT_IMPLEMENTED, + g_set_error (error, TP_ERROR, TP_ERROR_NOT_IMPLEMENTED, "Adding members to this Group channel is not possible"); return FALSE; } @@ -718,7 +718,7 @@ tp_group_mixin_remove_members_with_reason (GObject *obj, DEBUG ("handle %u cannot be removed from members without " "GROUP_FLAG_CAN_REMOVE", handle); - g_set_error (error, TP_ERRORS, TP_ERROR_PERMISSION_DENIED, + g_set_error (error, TP_ERROR, TP_ERROR_PERMISSION_DENIED, "handle %u cannot be removed from members without " "GROUP_FLAG_CAN_REMOVE", handle); @@ -732,7 +732,7 @@ tp_group_mixin_remove_members_with_reason (GObject *obj, DEBUG ("handle %u cannot be removed from remote pending " "without GROUP_FLAG_CAN_RESCIND", handle); - g_set_error (error, TP_ERRORS, TP_ERROR_PERMISSION_DENIED, + g_set_error (error, TP_ERROR, TP_ERROR_PERMISSION_DENIED, "handle %u cannot be removed from remote pending without " "GROUP_FLAG_CAN_RESCIND", handle); @@ -774,7 +774,7 @@ tp_group_mixin_remove_members_with_reason (GObject *obj, } else { - g_set_error (error, TP_ERRORS, TP_ERROR_NOT_IMPLEMENTED, + g_set_error (error, TP_ERROR, TP_ERROR_NOT_IMPLEMENTED, "Removing contacts from this Group channel is not possible"); return FALSE; } @@ -1125,7 +1125,7 @@ tp_group_mixin_get_handle_owners (GObject *obj, if ((mixin->group_flags & TP_CHANNEL_GROUP_FLAG_CHANNEL_SPECIFIC_HANDLES) == 0) { - g_set_error (error, TP_ERRORS, TP_ERROR_NOT_AVAILABLE, + g_set_error (error, TP_ERROR, TP_ERROR_NOT_AVAILABLE, "channel doesn't have channel specific handles"); return FALSE; @@ -1145,7 +1145,7 @@ tp_group_mixin_get_handle_owners (GObject *obj, if (!tp_handle_set_is_member (mixin->members, local_handle)) { - g_set_error (error, TP_ERRORS, TP_ERROR_INVALID_ARGUMENT, + g_set_error (error, TP_ERROR, TP_ERROR_INVALID_ARGUMENT, "handle %u is not a member", local_handle); g_array_unref (*ret); @@ -2390,7 +2390,7 @@ tp_external_group_mixin_get_dbus_property (GObject *object, \ if (var == NULL) \ { \ - GError na = { TP_ERRORS, TP_ERROR_NOT_AVAILABLE, "I'm sure I " \ + GError na = { TP_ERROR, TP_ERROR_NOT_AVAILABLE, "I'm sure I " \ "had a group object around here somewhere?" };\ \ dbus_g_method_return_error (context, &na); \ |