summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorMurray Cumming <murrayc@murrayc.com>2011-04-01 09:52:32 +0200
committerMurray Cumming <murrayc@murrayc.com>2011-04-01 09:52:32 +0200
commit33e317d20dee5e98982425c582c90210913b3887 (patch)
tree74b6225de2bc31e91bf520d361477d8ee26ce702 /examples
parent9dd1ed8026033eb0b4806459dc372b23909c1e4f (diff)
downloadglibmm-33e317d20dee5e98982425c582c90210913b3887.tar.gz
Code style improvement
Diffstat (limited to 'examples')
-rw-r--r--examples/dbus/userbus.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/dbus/userbus.cc b/examples/dbus/userbus.cc
index 89f942fa..b46fdcf8 100644
--- a/examples/dbus/userbus.cc
+++ b/examples/dbus/userbus.cc
@@ -23,16 +23,16 @@
Glib::RefPtr<Glib::MainLoop> loop;
// A main loop idle callback to quit when the main loop is idle.
-bool main_loop_idle()
+bool on_main_loop_idle()
{
loop->quit();
return false;
}
-// A callback to finish creating a DBusProxy that was asynchronously created
+// A callback to finish creating a DBus::Proxy that was asynchronously created
// for the user session's bus and then try to call the well known 'ListNames'
// method.
-void dbus_proxy_available(Glib::RefPtr<Gio::AsyncResult>& result)
+void on_dbus_proxy_available(Glib::RefPtr<Gio::AsyncResult>& result)
{
Glib::RefPtr<Gio::DBus::Proxy> proxy = Gio::DBus::Proxy::create_finish(result);
@@ -70,7 +70,7 @@ void dbus_proxy_available(Glib::RefPtr<Gio::AsyncResult>& result)
// Connect an idle callback to the main loop to quit when the main loop is
// idle now that the method call is finished.
- Glib::signal_idle().connect(sigc::ptr_fun(&main_loop_idle));
+ Glib::signal_idle().connect(sigc::ptr_fun(&on_main_loop_idle));
}
int main(int, char**)
@@ -94,7 +94,7 @@ int main(int, char**)
// Create the proxy to the bus asynchronously.
Gio::DBus::Proxy::create(connection, "org.freedesktop.DBus",
"/org/freedesktop/DBus", "org.freedesktop.DBus",
- sigc::ptr_fun(&dbus_proxy_available));
+ sigc::ptr_fun(&on_dbus_proxy_available));
loop->run();