summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-07-25 17:50:54 +0200
committerinfirit <[email protected]>2014-07-28 00:23:28 +0200
commitf1515b509037bb1dc641ae7784ff13ba61a8d50e (patch)
tree846fdf8424a6465e3e76652c7b0ee6137eca3c24 /src/main.c
parent3d2442e9cf7dd3ec58db302001ca98efbfa953d0 (diff)
downloadeom-f1515b509037bb1dc641ae7784ff13ba61a8d50e.tar.bz2
eom-f1515b509037bb1dc641ae7784ff13ba61a8d50e.tar.xz
Add the necessary machinery to generate the introspection data from eom
Annotations are still missing, but this provides enough for basic introspection usage Based on eog commit b316c9e0b30a8c6d67feb8f21a20268e18c8cc3d From Claudio Saavedra <[email protected]>
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index ff59af5..99d801a 100644
--- a/src/main.c
+++ b/src/main.c
@@ -30,6 +30,9 @@
#include <dbus/dbus-glib-bindings.h>
#include <gdk/gdkx.h>
#endif
+#ifdef HAVE_INSTROSPECTION
+#include <girepository.h>
+#endif
#include "eom-session.h"
#include "eom-debug.h"
@@ -196,6 +199,9 @@ main (int argc, char **argv)
/* Option groups are free'd together with the context
* Using gtk_get_option_group here initializes gtk during parsing */
g_option_context_add_group (ctx, gtk_get_option_group (TRUE));
+#ifdef HAVE_INTROSPECTION
+ g_option_context_add_group (ctx, g_irepository_get_option_group ());
+#endif
if (!g_option_context_parse (ctx, &argc, &argv, &error)) {
gchar *help_msg;