renamed member "decription" to "menu_path".

2004-09-30  Michael Natterer  <mitch@gimp.org>

	* plug-ins/script-fu/script-fu-types.h (struct SFScript): renamed
	member "decription" to "menu_path".

	* plug-ins/script-fu/script-fu-interface.c: changed accordingly.

	* plug-ins/script-fu/script-fu-scripts.c: ditto. Don't pass the
	menu_path as "blurb" to gimp_install_temp_proc(). Instead,
	pass "help" as "blurb" and nothing as "help".

	* plug-ins/script-fu/scripts/test-sphere.scm: shortened overly
	long and useless help text.
This commit is contained in:
Michael Natterer
2004-09-30 12:37:42 +00:00
committed by Michael Natterer
parent 662559ee88
commit 18af15ee94
5 changed files with 26 additions and 12 deletions

View File

@ -187,11 +187,11 @@ script_fu_interface (SFScript *script)
sf_interface->args_widgets = g_new0 (GtkWidget *, script->num_args);
/* strip the first part of the menupath if it contains _("/Script-Fu/") */
buf = strstr (gettext (script->description), _("/Script-Fu/"));
buf = strstr (gettext (script->menu_path), _("/Script-Fu/"));
if (buf)
title = g_strdup (buf + strlen (_("/Script-Fu/")));
else
title = g_strdup (gettext (script->description));
title = g_strdup (gettext (script->menu_path));
/* strip mnemonics from the menupath */
sf_interface->title = gimp_strip_uline (title);