|
36 | 36 | #include <string.h> |
37 | 37 |
|
38 | 38 | #include <glib/gi18n.h> |
39 | | -#ifdef HAVE_GIREPOSITORY_2 |
40 | | -#include <girepository/girepository.h> |
41 | | -#else |
42 | 39 | #include <girepository.h> |
43 | | -#endif |
44 | 40 |
|
45 | 41 | #include "pluma-plugins-engine.h" |
46 | 42 | #include "pluma-debug.h" |
@@ -72,39 +68,23 @@ pluma_plugins_engine_init (PlumaPluginsEngine *engine) |
72 | 68 | engine->priv->plugin_settings = g_settings_new (PLUMA_SCHEMA_ID); |
73 | 69 |
|
74 | 70 | /* This should be moved to libpeas */ |
75 | | -#ifdef HAVE_GIREPOSITORY_2 |
76 | | - if (!gi_repository_require (gi_repository_dup_default (), |
77 | | - "Peas", "1.0", 0, &error)) |
78 | | -#else |
79 | 71 | if (!g_irepository_require (g_irepository_get_default (), |
80 | 72 | "Peas", "1.0", 0, &error)) |
81 | | -#endif |
82 | 73 | { |
83 | 74 | g_warning ("Could not load Peas repository: %s", error->message); |
84 | 75 | g_clear_error (&error); |
85 | 76 | } |
86 | 77 |
|
87 | | -#ifdef HAVE_GIREPOSITORY_2 |
88 | | - if (!gi_repository_require (gi_repository_dup_default (), |
89 | | - "PeasGtk", "1.0", 0, &error)) |
90 | | -#else |
91 | 78 | if (!g_irepository_require (g_irepository_get_default (), |
92 | 79 | "PeasGtk", "1.0", 0, &error)) |
93 | | -#endif |
94 | 80 | { |
95 | 81 | g_warning ("Could not load PeasGtk repository: %s", error->message); |
96 | 82 | g_clear_error (&error); |
97 | 83 | } |
98 | 84 |
|
99 | | -#ifdef HAVE_GIREPOSITORY_2 |
100 | | - if (!gi_repository_require_private (gi_repository_dup_default (), |
101 | | - LIBDIR "/girepository-1.0", |
102 | | - "Pluma", "1.0", 0, &error)) |
103 | | -#else |
104 | 85 | if (!g_irepository_require_private (g_irepository_get_default (), |
105 | 86 | LIBDIR "/girepository-1.0", |
106 | 87 | "Pluma", "1.0", 0, &error)) |
107 | | -#endif |
108 | 88 | { |
109 | 89 | g_warning ("Could not load Pluma repository: %s", error->message); |
110 | 90 | g_clear_error (&error); |
|
0 commit comments