diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/dbus/peer.cc | 4 | ||||
-rw-r--r-- | examples/dbus/userbus.cc | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/examples/dbus/peer.cc b/examples/dbus/peer.cc index c35bab8e..99cdb66b 100644 --- a/examples/dbus/peer.cc +++ b/examples/dbus/peer.cc @@ -120,7 +120,7 @@ static void on_method_call(const Glib::RefPtr<Gio::DBus::Connection>&, // Get (expected) single string in tupple. Glib::Variant<Glib::ustring> param; - parameters.get(param); + parameters.get_child(param); Glib::ustring response = "You said: '" + param.get() + "'."; @@ -266,7 +266,7 @@ void run_as_client(Glib::ustring address) "HelloWorld", parameters); Glib::Variant<Glib::ustring> child; - result.get(child); + result.get_child(child); std::cout << "The server said: " << child.get() << "." << std::endl; diff --git a/examples/dbus/userbus.cc b/examples/dbus/userbus.cc index 845db3b8..89f942fa 100644 --- a/examples/dbus/userbus.cc +++ b/examples/dbus/userbus.cc @@ -53,7 +53,7 @@ void dbus_proxy_available(Glib::RefPtr<Gio::AsyncResult>& result) // Now extract the single item in the variant container which is the // array of strings (the names). Glib::Variant< std::vector<Glib::ustring> > names_variant; - result.get(names_variant); + result.get_child(names_variant); // Get the vector of strings. std::vector<Glib::ustring> names = names_variant.get(); |