summaryrefslogtreecommitdiff
path: root/peas-demo
diff options
context:
space:
mode:
authorSteve Frécinaux <code@istique.net>2010-05-14 15:37:32 +0200
committerSteve Frécinaux <code@istique.net>2010-05-14 21:07:14 +0200
commit290d781624f4f20b8ddb6d1de983733f11fab481 (patch)
tree89b46a3413e6b921644b80bf323b7a980f0970ab /peas-demo
parentb4982be3a7559f69be6ed88f6d003a04f8f23ddb (diff)
downloadlibpeas-290d781624f4f20b8ddb6d1de983733f11fab481.tar.gz
Proper GIRepository setup for peas-demo.
Diffstat (limited to 'peas-demo')
-rw-r--r--peas-demo/peas-demo.c4
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);