Commit 662f7cfc authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

compare the menu paths, not the struct pointers.

2004-11-19  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/script-fu-scripts.c (script_fu_menu_compare):
	compare the menu paths, not the struct pointers.
parent 86690417
2004-11-19 Sven Neumann <sven@gimp.org>
* plug-ins/script-fu/script-fu-scripts.c (script_fu_menu_compare):
compare the menu paths, not the struct pointers.
2004-11-19 Sven Neumann <sven@gimp.org>
 
* plug-ins/common/glob.c: added a naive glob() implementation
......
......@@ -1010,5 +1010,11 @@ static gint
script_fu_menu_compare (gconstpointer a,
gconstpointer b)
{
return g_utf8_collate (a, b);
const SFMenu *menu_a = a;
const SFMenu *menu_b = b;
if (menu_a->menu_path && menu_b->menu_path)
return g_utf8_collate (menu_a->menu_path, menu_b->menu_path);
return 0;
}
Supports Markdown
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