summaryrefslogtreecommitdiff
path: root/examples/dbus/busserver.cc
diff options
context:
space:
mode:
Diffstat (limited to 'examples/dbus/busserver.cc')
-rw-r--r--examples/dbus/busserver.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/dbus/busserver.cc b/examples/dbus/busserver.cc
index 3beeca2d..534a70b8 100644
--- a/examples/dbus/busserver.cc
+++ b/examples/dbus/busserver.cc
@@ -100,7 +100,7 @@ static void on_method_call(const Glib::RefPtr<Gio::DBus::Connection>& connection
if(!curr_alarm.assign_from_iso8601(time_str))
{
// If setting alarm was not successful, return an error.
- Gio::DBus::Error error(Gio::DBus::Error::INVALID_ARGS,
+ Gio::DBusError error(Gio::DBusError::INVALID_ARGS,
"Alarm string is not in ISO8601 format.");
invocation->return_gerror(error);
}
@@ -144,7 +144,7 @@ static void on_method_call(const Glib::RefPtr<Gio::DBus::Connection>& connection
else
{
// Non-existent method on the interface.
- Gio::DBus::Error error(Gio::DBus::Error::UNKNOWN_METHOD,
+ Gio::DBusError error(Gio::DBusError::UNKNOWN_METHOD,
"Method does not exist.");
invocation->return_gerror(error);
}
@@ -174,7 +174,7 @@ void on_get_property(Glib::VariantBase& property,
}
else
{
- throw Gio::DBus::Error(Gio::DBus::Error::FAILED, "Unknown property name.");
+ throw Gio::DBusError(Gio::DBusError::FAILED, "Unknown property name.");
}
}