aboutsummaryrefslogtreecommitdiff
path: root/tests/test-glib-proxy-server.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-02-09 15:26:06 -0600
committerTed Gould <ted@gould.cx>2010-02-09 15:26:06 -0600
commita52f4ea9d88394aca3992f4c9ca8093d7f07993f (patch)
tree86284fb2ddd2029793fcc72321b0c0a2053ecdf6 /tests/test-glib-proxy-server.c
parent5bf534342bd9b95193525414b10dcae8dd0b71b2 (diff)
downloadlibdbusmenu-a52f4ea9d88394aca3992f4c9ca8093d7f07993f.tar.gz
libdbusmenu-a52f4ea9d88394aca3992f4c9ca8093d7f07993f.tar.bz2
libdbusmenu-a52f4ea9d88394aca3992f4c9ca8093d7f07993f.zip
Fixing build
Diffstat (limited to 'tests/test-glib-proxy-server.c')
-rw-r--r--tests/test-glib-proxy-server.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/test-glib-proxy-server.c b/tests/test-glib-proxy-server.c
index 2869bfe..4458acf 100644
--- a/tests/test-glib-proxy-server.c
+++ b/tests/test-glib-proxy-server.c
@@ -24,11 +24,12 @@ with this program. If not, see <http://www.gnu.org/licenses/>.
#include <dbus/dbus.h>
#include <dbus/dbus-glib.h>
#include <dbus/dbus-glib-lowlevel.h>
+#include <dbus/dbus-glib-bindings.h>
#include <libdbusmenu-glib/menuitem.h>
#include <libdbusmenu-glib/server.h>
-#include "test-glib-properties.h"
+#include "test-glib-proxy.h"
static void
set_props (DbusmenuMenuitem * mi, gchar ** props)
@@ -91,7 +92,10 @@ main (int argc, char ** argv)
{
g_type_init();
- g_debug("DBus ID: %s", dbus_connection_get_server_id(dbus_g_connection_get_connection(dbus_g_bus_get(DBUS_BUS_SESSION, NULL))));
+ GError * error = NULL;
+ DBusGConnection * connection = dbus_g_bus_get(DBUS_BUS_SESSION, NULL);
+
+ g_debug("DBus ID: %s", dbus_connection_get_server_id(dbus_g_connection_get_connection(connection)));
DBusGProxy * bus_proxy = dbus_g_proxy_new_for_name(connection, DBUS_SERVICE_DBUS, DBUS_PATH_DBUS, DBUS_INTERFACE_DBUS);
guint nameret = 0;