To compile that test code I posted:
gcc dbus-test.c -o dbus-test `pkg-config --libs --cflags gio-2.0 gtk+-3.0 dbus-glib-1 dbus-1`
Then ./dbus_test to run it.
To compile that test code I posted:
gcc dbus-test.c -o dbus-test `pkg-config --libs --cflags gio-2.0 gtk+-3.0 dbus-glib-1 dbus-1`
Then ./dbus_test to run it.