diff options
author | infirit <[email protected]> | 2014-07-25 17:50:54 +0200 |
---|---|---|
committer | infirit <[email protected]> | 2014-07-28 00:23:28 +0200 |
commit | f1515b509037bb1dc641ae7784ff13ba61a8d50e (patch) | |
tree | 846fdf8424a6465e3e76652c7b0ee6137eca3c24 /src/main.c | |
parent | 3d2442e9cf7dd3ec58db302001ca98efbfa953d0 (diff) | |
download | eom-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.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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; |