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:

committed by
Sven Neumann

parent
86690417d8
commit
662f7cfce4
@ -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
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user