]> git.pld-linux.org Git - packages/gedit.git/commitdiff
- fix activating plugins on init
authorpaladine <paladine@pld-linux.org>
Thu, 22 Mar 2007 20:54:22 +0000 (20:54 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    gedit2-active_plugins.patch -> 1.1

gedit2-active_plugins.patch [new file with mode: 0644]

diff --git a/gedit2-active_plugins.patch b/gedit2-active_plugins.patch
new file mode 100644 (file)
index 0000000..0da8f72
--- /dev/null
@@ -0,0 +1,31 @@
+diff -urN gedit-2.18.0.orig/gedit/gedit-plugins-engine.c gedit-2.18.0/gedit/gedit-plugins-engine.c
+--- gedit-2.18.0.orig/gedit/gedit-plugins-engine.c     2007-03-20 20:55:17.000000000 +0100
++++ gedit-2.18.0/gedit/gedit-plugins-engine.c  2007-03-22 21:37:37.000000000 +0100
+@@ -296,6 +296,7 @@
+       GError *error = NULL;
+       GDir *d;
+       const gchar *dirent;
++      GSList *ap;
+       g_return_if_fail (gedit_plugins_engine_gconf_client != NULL);
+@@ -340,9 +341,16 @@
+                       /* Actually, the plugin will be activated when reactivate_all
+                        * will be called for the first time. */
+-                      info->active = (g_slist_find_custom (active_plugins,
+-                                                           info->location,
+-                                                           (GCompareFunc)strcmp) != NULL);
++                      ap = active_plugins;
++                      while (ap != NULL)
++                      {
++                              if (strcmp (info->location, (gchar *)ap->data) == 0)
++                              {
++                                      info->active = TRUE;
++                              }
++
++                              ap = g_slist_next (ap);
++                      }
+                       gedit_plugins_list = g_list_prepend (gedit_plugins_list, info);
This page took 0.02926 seconds and 4 git commands to generate.