removed empty quit() method. Only load scripts when extension-script-fu is
2006-05-16 Sven Neumann <sven@gimp.org> * plug-ins/script-fu/script-fu.c: removed empty quit() method. Only load scripts when extension-script-fu is started. * plug-ins/script-fu/script-fu-scripts.c: minor cleanup.
This commit is contained in:
committed by
Sven Neumann
parent
c14c5393cc
commit
055617ac6f
@ -594,10 +594,10 @@ script_fu_add_script (LISP a)
|
||||
script->args = args;
|
||||
|
||||
{
|
||||
gchar *key = gettext (script->menu_path);
|
||||
GList *list = g_tree_lookup (script_tree, key);
|
||||
const gchar *key = gettext (script->menu_path);
|
||||
GList *list = g_tree_lookup (script_tree, key);
|
||||
|
||||
g_tree_insert (script_tree, key, g_list_append (list, script));
|
||||
g_tree_insert (script_tree, (gpointer) key, g_list_append (list, script));
|
||||
}
|
||||
|
||||
return NIL;
|
||||
@ -1056,8 +1056,10 @@ script_fu_menu_compare (gconstpointer a,
|
||||
|
||||
if (retval == 0 &&
|
||||
menu_a->script->menu_path && menu_b->script->menu_path)
|
||||
retval = g_utf8_collate (gettext (menu_a->script->menu_path),
|
||||
gettext (menu_b->script->menu_path));
|
||||
{
|
||||
retval = g_utf8_collate (gettext (menu_a->script->menu_path),
|
||||
gettext (menu_b->script->menu_path));
|
||||
}
|
||||
}
|
||||
|
||||
return retval;
|
||||
|
||||
Reference in New Issue
Block a user