aboutsummaryrefslogtreecommitdiff
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
parent5bf534342bd9b95193525414b10dcae8dd0b71b2 (diff)
downloadlibdbusmenu-a52f4ea9d88394aca3992f4c9ca8093d7f07993f.tar.gz
libdbusmenu-a52f4ea9d88394aca3992f4c9ca8093d7f07993f.tar.bz2
libdbusmenu-a52f4ea9d88394aca3992f4c9ca8093d7f07993f.zip
Fixing build
-rw-r--r--tests/test-glib-proxy-client.c2
-rw-r--r--tests/test-glib-proxy-server.c8
2 files changed, 7 insertions, 3 deletions
diff --git a/tests/test-glib-proxy-client.c b/tests/test-glib-proxy-client.c
index 7e3541a..b1caaad 100644
--- a/tests/test-glib-proxy-client.c
+++ b/tests/test-glib-proxy-client.c
@@ -24,7 +24,7 @@ with this program. If not, see <http://www.gnu.org/licenses/>.
#include <libdbusmenu-glib/client.h>
#include <libdbusmenu-glib/menuitem.h>
-#include "test-glib-properties.h"
+#include "test-glib-proxy.h"
static guint layouton = 0;
static GMainLoop * mainloop = NULL;
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;