|
| 1 | +Source: https://src.fedoraproject.org/rpms/totem/raw/rawhide/f/girepository-2.0.patch |
| 2 | + |
| 3 | +Note this patch leaks the default GIRepository and would not be suitable for |
| 4 | +upstream. But it's a one-time leak of global data, so who cares. |
| 5 | + |
| 6 | +Totem upstream uses libpeas2 instead. |
| 7 | + |
| 8 | +Patch by: Leigh Scott |
| 9 | +This note by: Michael Catanzaro |
| 10 | + |
| 11 | +diff -uNrp a/src/plugins/totem-plugins-engine.c b/src/plugins/totem-plugins-engine.c |
| 12 | +--- a/src/plugins/totem-plugins-engine.c 2025-05-21 14:08:29.000000000 +0100 |
| 13 | ++++ b/src/plugins/totem-plugins-engine.c 2025-09-09 15:26:14.748670355 +0100 |
| 14 | +@@ -35,7 +35,7 @@ |
| 15 | + |
| 16 | + #include <glib/gi18n.h> |
| 17 | + #include <glib.h> |
| 18 | +-#include <girepository.h> |
| 19 | ++#include <girepository/girepository.h> |
| 20 | + #include <libpeas/peas-activatable.h> |
| 21 | + #include <libpeas/peas-extension-set.h> |
| 22 | + |
| 23 | +@@ -101,9 +101,9 @@ totem_plugins_engine_get_default (TotemO |
| 24 | + |
| 25 | + g_return_val_if_fail (totem != NULL, NULL); |
| 26 | + |
| 27 | +- g_irepository_require (g_irepository_get_default (), "Peas", "1.0", 0, NULL); |
| 28 | +- g_irepository_require (g_irepository_get_default (), "PeasGtk", "1.0", 0, NULL); |
| 29 | +- g_irepository_require (g_irepository_get_default (), "Totem", TOTEM_API_VERSION, 0, NULL); |
| 30 | ++ gi_repository_require (gi_repository_dup_default (), "Peas", "1.0", 0, NULL); |
| 31 | ++ gi_repository_require (gi_repository_dup_default (), "PeasGtk", "1.0", 0, NULL); |
| 32 | ++ gi_repository_require (gi_repository_dup_default (), "Totem", TOTEM_API_VERSION, 0, NULL); |
| 33 | + |
| 34 | + paths = totem_get_plugin_paths (); |
| 35 | + |
0 commit comments