Other code places should allow menu paths to be None too.

2006-05-30  Manish Singh  <yosh@gimp.org>

        * plug-ins/pygimp/gimpfu.py: Other code places should allow
        menu paths to be None too.
This commit is contained in:
Manish Singh 2006-05-30 08:47:44 +00:00 committed by Manish Singh
parent 48de9ef030
commit 587763d394
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2006-05-30 Manish Singh <yosh@gimp.org>
* plug-ins/pygimp/gimpfu.py: Other code places should allow
menu paths to be None too.
2006-05-30 Manish Singh <yosh@gimp.org> 2006-05-30 Manish Singh <yosh@gimp.org>
* plug-ins/pygimp/gimpfu.py: Allow menu paths to be None. * plug-ins/pygimp/gimpfu.py: Allow menu paths to be None.

View File

@ -447,7 +447,7 @@ def _interact(func_name, start_params):
if on_run: if on_run:
on_run() on_run()
need_progress = menupath[:8] != '<Image>/' need_progress = menupath and menupath[:8] != '<Image>/'
tooltips = gtk.Tooltips() tooltips = gtk.Tooltips()
@ -601,7 +601,7 @@ def _run(func_name, params):
menupath = _registered_plugins_[func_name][5] menupath = _registered_plugins_[func_name][5]
func = _registered_plugins_[func_name][10] func = _registered_plugins_[func_name][10]
if plugin_type == PLUGIN and menupath[:10] != '<Toolbox>/': if plugin_type == PLUGIN and menupath and menupath[:10] != '<Toolbox>/':
if menupath[:7] == '<Save>/': if menupath[:7] == '<Save>/':
end = 5 end = 5
else: else: