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.
This commit is contained in:
Sven Neumann
2004-11-19 22:13:58 +00:00
committed by Sven Neumann
parent 86690417d8
commit 662f7cfce4
2 changed files with 12 additions and 1 deletions

View File

@ -1,3 +1,8 @@
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> 2004-11-19 Sven Neumann <sven@gimp.org>
* plug-ins/common/glob.c: added a naive glob() implementation * plug-ins/common/glob.c: added a naive glob() implementation

View File

@ -1010,5 +1010,11 @@ static gint
script_fu_menu_compare (gconstpointer a, script_fu_menu_compare (gconstpointer a,
gconstpointer b) 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;
} }