[sound-juicer] Add D-Bus dependency to fix crashers in mb-test
- From: Bastien Nocera <hadess src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [sound-juicer] Add D-Bus dependency to fix crashers in mb-test
- Date: Wed, 25 Nov 2009 13:47:08 +0000 (UTC)
commit 603771d919a9f9c5c119961678e697cd6bf23630
Author: Bastien Nocera <hadess hadess net>
Date: Wed Nov 25 13:46:29 2009 +0000
Add D-Bus dependency to fix crashers in mb-test
With help from Alex Larsson <alexl redhat com>
configure.in | 4 ++++
tests/Makefile.am | 2 ++
tests/mb-test.c | 3 +++
3 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/configure.in b/configure.in
index 79b424b..6d1541c 100644
--- a/configure.in
+++ b/configure.in
@@ -119,6 +119,10 @@ PKG_CHECK_MODULES(GIO, gio-2.0)
AC_SUBST(GIO_CFLAGS)
AC_SUBST(GIO_LIBS)
+PKG_CHECK_MODULES(DBUS, dbus-1)
+AC_SUBST(DBUS_CFLAGS)
+AC_SUBST(DBUS_LIBS)
+
# Find how and where to put the GConf schemas
AC_PATH_PROG(GCONFTOOL, gconftool-2, no)
if test "$GCONFTOOL" = "no"; then
diff --git a/tests/Makefile.am b/tests/Makefile.am
index a091011..b18630e 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -17,12 +17,14 @@ mb_test_CFLAGS = \
$(MEDIA_PROFILES_CFLAGS) \
$(BURN_CFLAGS) \
$(UI_CFLAGS) \
+ $(DBUS_CFLAGS) \
$(AM_CPPFLAGS)
mb_test_LDADD = \
$(BURN_LIBS) \
$(UI_LIBS) \
$(MUSICBRAINZ_LIBS) \
+ $(DBUS_LIBS) \
$(top_builddir)/libjuicer/libjuicer.la
mb_test_LDFLAGS = \
diff --git a/tests/mb-test.c b/tests/mb-test.c
index a1a82b3..8d6ab69 100644
--- a/tests/mb-test.c
+++ b/tests/mb-test.c
@@ -2,6 +2,7 @@
#include <glib.h>
#include <glib/gi18n.h>
#include <gconf/gconf-client.h>
+#include <dbus/dbus.h>
#include <stdlib.h>
#include "sj-structures.h"
#include "sj-metadata.h"
@@ -99,6 +100,8 @@ int main (int argc, char** argv)
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
textdomain (GETTEXT_PACKAGE);
+ dbus_threads_init_default ();
+
g_type_init ();
g_thread_init (NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]