Skip to content

Commit f258575

Browse files
committed
Revert "plugins: Fix compatibility with gobject-introspection"
This reverts commit 009702f.
1 parent b974218 commit f258575

File tree

3 files changed

+0
-33
lines changed

3 files changed

+0
-33
lines changed

configure.ac

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -195,11 +195,6 @@ GOBJECT_INTROSPECTION_CHECK([0.9.3])
195195
if test "$found_introspection" = "yes"; then
196196
have_introspection=yes
197197
AC_DEFINE([HAVE_INTROSPECTION], [1], [Define to enable GObject Introspection])
198-
199-
# Check for girepository-2.0 API (moved to glib in version 1.80+)
200-
PKG_CHECK_EXISTS([girepository-2.0],
201-
[AC_DEFINE([HAVE_GIREPOSITORY_2], [1], [Using girepository-2.0 API])],
202-
[])
203198
else
204199
have_introspection=no
205200
fi

pluma/pluma-plugins-engine.c

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,7 @@
3636
#include <string.h>
3737

3838
#include <glib/gi18n.h>
39-
#ifdef HAVE_GIREPOSITORY_2
40-
#include <girepository/girepository.h>
41-
#else
4239
#include <girepository.h>
43-
#endif
4440

4541
#include "pluma-plugins-engine.h"
4642
#include "pluma-debug.h"
@@ -72,39 +68,23 @@ pluma_plugins_engine_init (PlumaPluginsEngine *engine)
7268
engine->priv->plugin_settings = g_settings_new (PLUMA_SCHEMA_ID);
7369

7470
/* 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
7971
if (!g_irepository_require (g_irepository_get_default (),
8072
"Peas", "1.0", 0, &error))
81-
#endif
8273
{
8374
g_warning ("Could not load Peas repository: %s", error->message);
8475
g_clear_error (&error);
8576
}
8677

87-
#ifdef HAVE_GIREPOSITORY_2
88-
if (!gi_repository_require (gi_repository_dup_default (),
89-
"PeasGtk", "1.0", 0, &error))
90-
#else
9178
if (!g_irepository_require (g_irepository_get_default (),
9279
"PeasGtk", "1.0", 0, &error))
93-
#endif
9480
{
9581
g_warning ("Could not load PeasGtk repository: %s", error->message);
9682
g_clear_error (&error);
9783
}
9884

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
10485
if (!g_irepository_require_private (g_irepository_get_default (),
10586
LIBDIR "/girepository-1.0",
10687
"Pluma", "1.0", 0, &error))
107-
#endif
10888
{
10989
g_warning ("Could not load Pluma repository: %s", error->message);
11090
g_clear_error (&error);

pluma/pluma.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,8 @@
4444
#include <gdk/gdkx.h>
4545

4646
#ifdef HAVE_INTROSPECTION
47-
#ifdef HAVE_GIREPOSITORY_2
48-
#include <girepository/girepository.h>
49-
#else
5047
#include <girepository.h>
5148
#endif
52-
#endif
5349

5450
#include "pluma-app.h"
5551
#include "pluma-application.h"
@@ -530,11 +526,7 @@ main (int argc, char *argv[])
530526
g_option_context_add_group (context, egg_sm_client_get_option_group ());
531527

532528
#ifdef HAVE_INTROSPECTION
533-
#ifdef HAVE_GIREPOSITORY_2
534-
g_option_context_add_group (context, gi_repository_get_option_group ());
535-
#else
536529
g_option_context_add_group (context, g_irepository_get_option_group ());
537-
#endif
538530
#endif
539531

540532
if (!g_option_context_parse (context, &argc, &argv, &error))

0 commit comments

Comments
 (0)