Commit 6ee2dbf0 authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer
Browse files

removed menu branch registering here (this function is called on each

2005-03-26  Michael Natterer  <mitch@gimp.org>

	* plug-ins/script-fu/script-fu-scripts.c (script_fu_find_scripts):
	removed menu branch registering here (this function is called on
	each refresh).

	* plug-ins/script-fu/script-fu.c (script_fu_extension_init):
	renamed from script_fu_auxillary_init(), this function is only
	called once when the extension starts up. Register the menu
	branches here.
parent 522c4df3
2005-03-26 Michael Natterer <mitch@gimp.org>
* plug-ins/script-fu/script-fu-scripts.c (script_fu_find_scripts):
removed menu branch registering here (this function is called on
each refresh).
* plug-ins/script-fu/script-fu.c (script_fu_extension_init):
renamed from script_fu_auxillary_init(), this function is only
called once when the extension starts up. Register the menu
branches here.
2005-03-26 Sven Neumann <sven@gimp.org>
* modules/cdisplay_colorblind.c (lut_lookup): actually do a binary
......
......@@ -129,52 +129,6 @@ script_fu_find_scripts (void)
script_fu_load_script,
NULL);
gimp_plugin_menu_branch_register ("<Toolbox>/Xtns",
N_("_Script-Fu"));
gimp_plugin_menu_branch_register ("<Toolbox>/Xtns/Script-Fu",
N_("_Buttons"));
gimp_plugin_menu_branch_register ("<Toolbox>/Xtns/Script-Fu",
N_("_Logos"));
gimp_plugin_menu_branch_register ("<Toolbox>/Xtns/Script-Fu",
N_("Make Br_ush"));
gimp_plugin_menu_branch_register ("<Toolbox>/Xtns/Script-Fu",
N_("_Misc"));
gimp_plugin_menu_branch_register ("<Toolbox>/Xtns/Script-Fu",
N_("_Patterns"));
gimp_plugin_menu_branch_register ("<Toolbox>/Xtns/Script-Fu",
N_("_Test"));
gimp_plugin_menu_branch_register ("<Toolbox>/Xtns/Script-Fu",
N_("_Utils"));
gimp_plugin_menu_branch_register ("<Toolbox>/Xtns/Script-Fu",
N_("_Web Page Themes"));
gimp_plugin_menu_branch_register ("<Toolbox>/Xtns/Script-Fu/Web Page Themes",
N_("_Alien Glow"));
gimp_plugin_menu_branch_register ("<Toolbox>/Xtns/Script-Fu/Web Page Themes",
N_("_Beveled Pattern"));
gimp_plugin_menu_branch_register ("<Toolbox>/Xtns/Script-Fu/Web Page Themes",
N_("_Classic.Gimp.Org"));
gimp_plugin_menu_branch_register ("<Image>",
N_("S_cript-Fu"));
gimp_plugin_menu_branch_register ("<Image>/Script-Fu",
N_("_Alchemy"));
gimp_plugin_menu_branch_register ("<Image>/Script-Fu",
N_("Alpha to _Logo"));
gimp_plugin_menu_branch_register ("<Image>/Script-Fu",
N_("A_nimators"));
gimp_plugin_menu_branch_register ("<Image>/Script-Fu",
N_("_Decor"));
gimp_plugin_menu_branch_register ("<Image>/Script-Fu",
N_("_Render"));
gimp_plugin_menu_branch_register ("<Image>/Script-Fu",
N_("_Selection"));
gimp_plugin_menu_branch_register ("<Image>/Script-Fu",
N_("S_hadow"));
gimp_plugin_menu_branch_register ("<Image>/Script-Fu",
N_("Stencil _Ops"));
gimp_plugin_menu_branch_register ("<Image>/Script-Fu",
N_("_Utils"));
/* Now that all scripts are read in and sorted, tell gimp about them */
g_tree_foreach (script_tree,
(GTraverseFunc) script_fu_install_script,
......
......@@ -42,7 +42,7 @@ static void script_fu_run (const gchar *name,
const GimpParam *params,
gint *nreturn_vals,
GimpParam **return_vals);
static void script_fu_auxillary_init (void);
static void script_fu_extension_init (void);
static void script_fu_refresh_proc (const gchar *name,
gint nparams,
const GimpParam *params,
......@@ -183,7 +183,7 @@ script_fu_run (const gchar *name,
if (strcmp (name, "extension_script_fu") == 0)
{
/* Setup auxillary temporary procedures for the base extension */
script_fu_auxillary_init ();
script_fu_extension_init ();
/* Init the interpreter */
siod_init (TRUE);
......@@ -260,13 +260,59 @@ script_fu_run (const gchar *name,
static void
script_fu_auxillary_init (void)
script_fu_extension_init (void)
{
static GimpParamDef args[] =
{
{ GIMP_PDB_INT32, "run_mode", "[Interactive], non-interactive" }
};
gimp_plugin_menu_branch_register ("<Toolbox>/Xtns",
N_("_Script-Fu"));
gimp_plugin_menu_branch_register ("<Toolbox>/Xtns/Script-Fu",
N_("_Buttons"));
gimp_plugin_menu_branch_register ("<Toolbox>/Xtns/Script-Fu",
N_("_Logos"));
gimp_plugin_menu_branch_register ("<Toolbox>/Xtns/Script-Fu",
N_("Make Br_ush"));
gimp_plugin_menu_branch_register ("<Toolbox>/Xtns/Script-Fu",
N_("_Misc"));
gimp_plugin_menu_branch_register ("<Toolbox>/Xtns/Script-Fu",
N_("_Patterns"));
gimp_plugin_menu_branch_register ("<Toolbox>/Xtns/Script-Fu",
N_("_Test"));
gimp_plugin_menu_branch_register ("<Toolbox>/Xtns/Script-Fu",
N_("_Utils"));
gimp_plugin_menu_branch_register ("<Toolbox>/Xtns/Script-Fu",
N_("_Web Page Themes"));
gimp_plugin_menu_branch_register ("<Toolbox>/Xtns/Script-Fu/Web Page Themes",
N_("_Alien Glow"));
gimp_plugin_menu_branch_register ("<Toolbox>/Xtns/Script-Fu/Web Page Themes",
N_("_Beveled Pattern"));
gimp_plugin_menu_branch_register ("<Toolbox>/Xtns/Script-Fu/Web Page Themes",
N_("_Classic.Gimp.Org"));
gimp_plugin_menu_branch_register ("<Image>",
N_("S_cript-Fu"));
gimp_plugin_menu_branch_register ("<Image>/Script-Fu",
N_("_Alchemy"));
gimp_plugin_menu_branch_register ("<Image>/Script-Fu",
N_("Alpha to _Logo"));
gimp_plugin_menu_branch_register ("<Image>/Script-Fu",
N_("A_nimators"));
gimp_plugin_menu_branch_register ("<Image>/Script-Fu",
N_("_Decor"));
gimp_plugin_menu_branch_register ("<Image>/Script-Fu",
N_("_Render"));
gimp_plugin_menu_branch_register ("<Image>/Script-Fu",
N_("_Selection"));
gimp_plugin_menu_branch_register ("<Image>/Script-Fu",
N_("S_hadow"));
gimp_plugin_menu_branch_register ("<Image>/Script-Fu",
N_("Stencil _Ops"));
gimp_plugin_menu_branch_register ("<Image>/Script-Fu",
N_("_Utils"));
gimp_install_temp_proc ("script_fu_refresh",
"Re-read all available scripts",
"Re-read all available scripts",
......
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