removed code that used to deal with full menu paths. All our scripts use

2007-05-16  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/script-fu-interface.c (script_fu_interface):
	removed code that used to deal with full menu paths. All our
	scripts use script-fu-menu-register now.

svn path=/trunk/; revision=22512
This commit is contained in:
Sven Neumann 2007-05-16 16:34:48 +00:00 committed by Sven Neumann
parent 147cb67322
commit 8684b3267c
2 changed files with 7 additions and 11 deletions

View File

@ -1,3 +1,9 @@
2007-05-16 Sven Neumann <sven@gimp.org>
* plug-ins/script-fu/script-fu-interface.c (script_fu_interface):
removed code that used to deal with full menu paths. All our
scripts use script-fu-menu-register now.
2007-05-16 Sven Neumann <sven@gimp.org>
* plug-ins/script-fu/scripts/selection-round.scm

View File

@ -212,18 +212,8 @@ script_fu_interface (SFScript *script,
sf_interface = g_new0 (SFInterface, 1);
sf_interface->widgets = g_new0 (GtkWidget *, script->num_args);
/* strip the first part of the menupath if it contains _("/Script-Fu/") */
tmp = strstr (gettext (script->menu_path), _("/Script-Fu/"));
if (tmp)
sf_interface->title = g_strdup (tmp + strlen (_("/Script-Fu/")));
else
sf_interface->title = g_strdup (gettext (script->menu_path));
/* strip mnemonics from the menupath */
tmp = gimp_strip_uline (sf_interface->title);
g_free (sf_interface->title);
sf_interface->title = tmp;
sf_interface->title = gimp_strip_uline (gettext (script->menu_path));
/* cut off ellipsis */
tmp = (strstr (sf_interface->title, "..."));