summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authormbkma <[email protected]>2026-01-28 11:27:45 +0100
committerGitHub <[email protected]>2026-01-28 11:27:45 +0100
commitcfece77a4475f2792b49b47c3d75d895d127d12a (patch)
tree4216c0aa4b7e70673b733fb2e8f4f5c65dbc35e5 /src/main.c
parent909bd7ba67b11ff18d0eb88b837fb9a98436b8e1 (diff)
parent034677b0c5bf9b37c22a6d2d52f8761c2364857d (diff)
downloadeom-dependabot/github_actions/actions/checkout-6.tar.bz2
eom-dependabot/github_actions/actions/checkout-6.tar.xz
Merge branch 'master' into dependabot/github_actions/actions/checkout-6dependabot/github_actions/actions/checkout-6
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;