diff options
| author | mbkma <[email protected]> | 2026-01-28 11:27:45 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-01-28 11:27:45 +0100 |
| commit | cfece77a4475f2792b49b47c3d75d895d127d12a (patch) | |
| tree | 4216c0aa4b7e70673b733fb2e8f4f5c65dbc35e5 /src/eom-plugin-engine.c | |
| parent | 909bd7ba67b11ff18d0eb88b837fb9a98436b8e1 (diff) | |
| parent | 034677b0c5bf9b37c22a6d2d52f8761c2364857d (diff) | |
| download | eom-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/eom-plugin-engine.c')
| -rw-r--r-- | src/eom-plugin-engine.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/eom-plugin-engine.c b/src/eom-plugin-engine.c index dc434f2..5b93de3 100644 --- a/src/eom-plugin-engine.c +++ b/src/eom-plugin-engine.c @@ -34,7 +34,11 @@ #include <glib/gi18n.h> #include <glib.h> #include <gio/gio.h> +#ifdef HAVE_GIREPOSITORY_2 +#include <girepository/girepository.h> +#else #include <girepository.h> +#endif #define USER_EOM_PLUGINS_LOCATION "plugins/" @@ -87,25 +91,41 @@ eom_plugin_engine_new (void) private_path = g_build_filename (LIBDIR, "girepository-1.0", NULL); /* This should be moved to libpeas */ +#ifdef HAVE_GIREPOSITORY_2 + if (gi_repository_require (gi_repository_dup_default (), + "Peas", "1.0", 0, &error) == NULL) +#else if (g_irepository_require (g_irepository_get_default (), "Peas", "1.0", 0, &error) == NULL) +#endif { g_warning ("Error loading Peas typelib: %s\n", error->message); g_clear_error (&error); } +#ifdef HAVE_GIREPOSITORY_2 + if (gi_repository_require (gi_repository_dup_default (), + "PeasGtk", "1.0", 0, &error) == NULL) +#else if (g_irepository_require (g_irepository_get_default (), "PeasGtk", "1.0", 0, &error) == NULL) +#endif { g_warning ("Error loading PeasGtk typelib: %s\n", error->message); g_clear_error (&error); } +#ifdef HAVE_GIREPOSITORY_2 + if (gi_repository_require_private (gi_repository_dup_default (), + private_path, "Eom", "1.0", 0, + &error) == NULL) +#else if (g_irepository_require_private (g_irepository_get_default (), private_path, "Eom", "1.0", 0, &error) == NULL) +#endif { g_warning ("Error loading Eom typelib: %s\n", error->message); |
