[libpeas] Use the simple API for requiring an uninstalled typelib
- From: Garrett Regier <gregier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libpeas] Use the simple API for requiring an uninstalled typelib
- Date: Tue, 20 Jan 2015 09:23:47 +0000 (UTC)
commit a592f27cd4d17d6b800c04d3a1305e637cf99059
Author: Garrett Regier <garrettregier gmail com>
Date: Sun Jan 18 05:13:58 2015 -0800
Use the simple API for requiring an uninstalled typelib
Instead of adding the builddir to GI's search path
just use the require_private() API.
tests/libpeas-gtk/testing/testing.c | 6 +++---
tests/testing-util/testing-util.c | 7 +++----
2 files changed, 6 insertions(+), 7 deletions(-)
---
diff --git a/tests/libpeas-gtk/testing/testing.c b/tests/libpeas-gtk/testing/testing.c
index 5cd0e2d..9dbd74f 100644
--- a/tests/libpeas-gtk/testing/testing.c
+++ b/tests/libpeas-gtk/testing/testing.c
@@ -51,9 +51,9 @@ testing_init (gint *argc,
*/
testing_util_init ();
- g_irepository_prepend_search_path (BUILDDIR "/libpeas-gtk");
-
- g_irepository_require (g_irepository_get_default (), "PeasGtk", "1.0", 0, &error);
+ g_irepository_require_private (g_irepository_get_default (),
+ BUILDDIR "/libpeas-gtk",
+ "PeasGtk", "1.0", 0, &error);
g_assert_no_error (error);
initialized = TRUE;
diff --git a/tests/testing-util/testing-util.c b/tests/testing-util/testing-util.c
index b616673..5ebbe8b 100644
--- a/tests/testing-util/testing-util.c
+++ b/tests/testing-util/testing-util.c
@@ -188,10 +188,9 @@ testing_util_init (void)
g_log_set_default_handler (log_handler, NULL);
-
- g_irepository_prepend_search_path (BUILDDIR "/libpeas");
-
- g_irepository_require (g_irepository_get_default (), "Peas", "1.0", 0, &error);
+ g_irepository_require_private (g_irepository_get_default (),
+ BUILDDIR "/libpeas",
+ "Peas", "1.0", 0, &error);
g_assert_no_error (error);
initialized = TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]