Commit f43c7044 authored by Sebastien Granjoux's avatar Sebastien Granjoux

Fix #564673 - I cannot activate sourceview plugin over scintilla Was due

	* libanjuta/anjuta-profile.c:
	Fix #564673 - I cannot activate sourceview plugin over scintilla
	Was due to an error in the previous patch

svn path=/trunk/; revision=4472
parent 0ab48dcf
2008-12-20 Sébastien Granjoux <seb.sfo@free.fr>
* libanjuta/anjuta-profile.c:
Fix #564673 - I cannot activate sourceview plugin over scintilla
Was due to an error in the previous patch
2008-12-20 Pedro Fragoso <ember@ubuntu.com>
reviewed by: Sébastien Granjoux <seb.sfo@free.fr>
......@@ -801,24 +801,25 @@ anjuta_profile_to_xml (AnjutaProfile *profile)
priv = profile->priv;
str = g_string_new ("<?xml version=\"1.0\"?>\n<anjuta>\n");
node = priv->plugins;
while (node)
for (node = priv->plugins; node != NULL; node = g_list_next (node))
{
AnjutaPluginDescription *desc;
desc = (AnjutaPluginDescription *)node->data;
if (!g_hash_table_lookup (priv->plugins_to_exclude_from_sync,
node->data))
{
gboolean user_activatable;
gboolean user_activatable = TRUE;
gchar *name = NULL, *plugin_id = NULL;
if (g_hash_table_lookup (priv->plugins_to_exclude_from_sync, node->data))
{
/* Do not save plugin in the exclude list */
continue;
}
desc = (AnjutaPluginDescription *)node->data;
if (anjuta_plugin_description_get_boolean (desc, "Anjuta Plugin",
"UserActivatable", &user_activatable)
&& !user_activatable)
{
/* Do not save plugins that are auto activated */
node = g_list_next (node);
continue;
}
/* Do not use the _locale_ version because it's not in UI */
......@@ -845,18 +846,8 @@ anjuta_profile_to_xml (AnjutaProfile *profile)
}
g_free (name);
}
else
{
gchar* name;
/* Do not use the _locale_ version because it's debugging */
anjuta_plugin_description_get_string (desc, "Anjuta Plugin",
"Name", &name);
DEBUG_PRINT ("excluding plugin: %s", name);
g_free (name);
}
node = g_list_next (node);
}
g_string_append (str, "</anjuta>\n");
return g_string_free (str, FALSE);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment