Commit d714307f authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

populate the tree with collation keys and use strcmp() instead of

2004-06-04  Sven Neumann  <sven@gimp.org>

	* app/menus/plug-in-menus.c (plug_in_menus_setup): populate the
	tree with collation keys and use strcmp() instead of
	g_utf8_collate() as the tree's sort function.
parent 0b982011
2004-06-04 Sven Neumann <sven@gimp.org>
* app/menus/plug-in-menus.c (plug_in_menus_setup): populate the
tree with collation keys and use strcmp() instead of
g_utf8_collate() as the tree's sort function.
2004-06-04 Sven Neumann <sven@gimp.org>
* app/paint/gimppaintoptions.c (DEFAULT_PRESSURE_PRESSURE):
......
......@@ -122,7 +122,7 @@ plug_in_menus_setup (GimpUIManager *manager,
g_return_if_fail (GIMP_IS_UI_MANAGER (manager));
g_return_if_fail (ui_path != NULL);
menu_entries = g_tree_new_full ((GCompareDataFunc) g_utf8_collate, NULL,
menu_entries = g_tree_new_full ((GCompareDataFunc) strcmp, NULL,
g_free, g_free);
for (list = manager->gimp->plug_in_proc_defs;
......@@ -165,10 +165,19 @@ plug_in_menus_setup (GimpUIManager *manager,
path->data));
if (proc_def->menu_label)
key = g_strdup_printf ("%s/%s",
stripped, proc_def->menu_label);
{
gchar *label = g_strdup_printf ("%s/%s",
stripped,
proc_def->menu_label);
key = g_utf8_collate_key (label, -1);
g_free (label);
}
else
key = g_strdup (stripped);
{
key = g_utf8_collate_key (stripped, -1);
}
g_free (stripped);
......
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