summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorlukefromdc <[email protected]>2026-01-19 22:23:16 -0500
committerLuke from DC <[email protected]>2026-01-20 19:45:10 +0000
commit9e9b24cdeff07e6d8908ad3e4f74555c24521d2e (patch)
tree5d1209c4e4135b6c366cc77f675dd8b029cb9fcf /src/main.c
parent5db7d1d3d2cfe5c1869a88708c07b8a981f98786 (diff)
downloadeom-9e9b24cdeff07e6d8908ad3e4f74555c24521d2e.tar.bz2
eom-9e9b24cdeff07e6d8908ad3e4f74555c24521d2e.tar.xz
plugins: Support building against newer libpeas1 versions
This commit allows and requires building against libpeas1 versions that contain the fix for gobject-introspection 1.80 or later
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 94487d8..f11618d 100644
--- a/src/main.c
+++ b/src/main.c
@@ -27,8 +27,12 @@
#include "config.h"
#endif
#ifdef HAVE_INTROSPECTION
+#ifdef HAVE_GIREPOSITORY_2
+#include <girepository/girepository.h>
+#else
#include <girepository.h>
#endif
+#endif
#include "eom-session.h"
#include "eom-debug.h"
@@ -116,8 +120,12 @@ main (int argc, char **argv)
* Using gtk_get_option_group here initializes gtk during parsing */
g_option_context_add_group (ctx, gtk_get_option_group (TRUE));
#ifdef HAVE_INTROSPECTION
+#ifdef HAVE_GIREPOSITORY_2
+ g_option_context_add_group (ctx, gi_repository_get_option_group ());
+#else
g_option_context_add_group (ctx, g_irepository_get_option_group ());
#endif
+#endif
if (!g_option_context_parse (ctx, &argc, &argv, &error)) {
gchar *help_msg;