]> git.pld-linux.org Git - packages/gedit.git/blame - gedit2-active_plugins.patch
- 2.20.0
[packages/gedit.git] / gedit2-active_plugins.patch
CommitLineData
60aa36b7 1diff -urN gedit-2.18.0.orig/gedit/gedit-plugins-engine.c gedit-2.18.0/gedit/gedit-plugins-engine.c
2--- gedit-2.18.0.orig/gedit/gedit-plugins-engine.c 2007-03-20 20:55:17.000000000 +0100
3+++ gedit-2.18.0/gedit/gedit-plugins-engine.c 2007-03-22 21:37:37.000000000 +0100
4@@ -296,6 +296,7 @@
5 GError *error = NULL;
6 GDir *d;
7 const gchar *dirent;
8+ GSList *ap;
9
10 g_return_if_fail (gedit_plugins_engine_gconf_client != NULL);
11
12@@ -340,9 +341,16 @@
13
14 /* Actually, the plugin will be activated when reactivate_all
15 * will be called for the first time. */
16- info->active = (g_slist_find_custom (active_plugins,
17- info->location,
18- (GCompareFunc)strcmp) != NULL);
19+ ap = active_plugins;
20+ while (ap != NULL)
21+ {
22+ if (strcmp (info->location, (gchar *)ap->data) == 0)
23+ {
24+ info->active = TRUE;
25+ }
26+
27+ ap = g_slist_next (ap);
28+ }
29
30 gedit_plugins_list = g_list_prepend (gedit_plugins_list, info);
31
This page took 0.030681 seconds and 4 git commands to generate.