[libpeas/proxys: 3/22] Proper GIRepository setup for peas-demo.
- From: Steve Frécinaux <sfre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libpeas/proxys: 3/22] Proper GIRepository setup for peas-demo.
- Date: Fri, 21 May 2010 19:12:42 +0000 (UTC)
commit 290d781624f4f20b8ddb6d1de983733f11fab481
Author: Steve Frécinaux <code istique net>
Date: Fri May 14 15:37:32 2010 +0200
Proper GIRepository setup for peas-demo.
peas-demo/peas-demo.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/peas-demo/peas-demo.c b/peas-demo/peas-demo.c
index 886353d..f98ff69 100644
--- a/peas-demo/peas-demo.c
+++ b/peas-demo/peas-demo.c
@@ -1,4 +1,5 @@
#include <gtk/gtk.h>
+#include <girepository.h>
#include <libpeas/peas-engine.h>
#include <libpeasui/peas-ui-plugin-manager.h>
@@ -127,6 +128,9 @@ main (int argc, char **argv)
gtk_init (&argc, &argv);
+ g_irepository_prepend_search_path (PEAS_PREFIX "/lib/girepository-1.0");
+ g_irepository_require (g_irepository_get_default (), "PeasUI", "2.0", 0, NULL);
+
engine = peas_engine_new ("PeasDemo",
PEAS_PREFIX "/lib/peas-demo/",
(const gchar **) search_paths);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]