summaryrefslogtreecommitdiff
path: root/src/mcd-dbusprop.c
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2012-05-07 19:21:45 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2012-05-08 12:33:18 +0100
commitc3d77d670607907451811fe658198ccaffddd7d0 (patch)
tree079360a11134e32a0539ca485c62dc66eadb2ddd /src/mcd-dbusprop.c
parent91f8540057fc4778ce0cc64ae8a86eaa02287168 (diff)
downloadtelepathy-mission-control-c3d77d670607907451811fe658198ccaffddd7d0.tar.gz
Use TP_ERROR instead of long-deprecated TP_ERRORS
Diffstat (limited to 'src/mcd-dbusprop.c')
-rw-r--r--src/mcd-dbusprop.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mcd-dbusprop.c b/src/mcd-dbusprop.c
index 0e233608..630244c5 100644
--- a/src/mcd-dbusprop.c
+++ b/src/mcd-dbusprop.c
@@ -139,7 +139,7 @@ get_mcddbusprop (TpSvcDBusProperties *self,
prop_array = get_interface_properties (self, interface_name);
if (!prop_array)
{
- g_set_error (error, TP_ERRORS, TP_ERROR_INVALID_ARGUMENT,
+ g_set_error (error, TP_ERROR, TP_ERROR_INVALID_ARGUMENT,
"invalid interface: %s", interface_name);
return NULL;
}
@@ -151,7 +151,7 @@ get_mcddbusprop (TpSvcDBusProperties *self,
if (!property->name)
{
- g_set_error (error, TP_ERRORS, TP_ERROR_INVALID_ARGUMENT,
+ g_set_error (error, TP_ERROR, TP_ERROR_INVALID_ARGUMENT,
"invalid property: %s", property_name);
return NULL;
}
@@ -175,7 +175,7 @@ mcd_dbusprop_set_property (TpSvcDBusProperties *self,
if (!property->setprop)
{
- g_set_error (error, TP_ERRORS, TP_ERROR_INVALID_ARGUMENT,
+ g_set_error (error, TP_ERROR, TP_ERROR_INVALID_ARGUMENT,
"property %s cannot be written", property_name);
return FALSE;
}
@@ -241,7 +241,7 @@ mcd_dbusprop_get_property (TpSvcDBusProperties *self,
if (!property->getprop)
{
- g_set_error (error, TP_ERRORS, TP_ERROR_INVALID_ARGUMENT,
+ g_set_error (error, TP_ERROR, TP_ERROR_INVALID_ARGUMENT,
"property %s cannot be read", property_name);
return FALSE;
}
@@ -423,7 +423,7 @@ dbusprop_get_all (TpSvcDBusProperties *self,
prop_array = get_interface_properties (self, interface_name);
if (!prop_array)
{
- g_set_error (&error, TP_ERRORS, TP_ERROR_INVALID_ARGUMENT,
+ g_set_error (&error, TP_ERROR, TP_ERROR_INVALID_ARGUMENT,
"invalid interface: %s", interface_name);
dbus_g_method_return_error (context, error);
g_error_free (error);