]>
Commit | Line | Data |
---|---|---|
60aa36b7 | 1 | diff -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 |