Allow menu paths to be None.

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

        * plug-ins/pygimp/gimpfu.py: Allow menu paths to be None.
This commit is contained in:
Manish Singh 2006-05-30 08:39:31 +00:00 committed by Manish Singh
parent 30073a15cb
commit 48de9ef030
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2006-05-30 Manish Singh <yosh@gimp.org>
* plug-ins/pygimp/gimpfu.py: Allow menu paths to be None.
2006-05-30 Manish Singh <yosh@gimp.org>
* app/file/gimprecentlist.c: #define _GNU_SOURCE instead of

View file

@ -214,7 +214,9 @@ def _query():
params.insert(0, (PDB_INT32, "run_mode",
"Interactive, Non-Interactive"))
if plugin_type == PLUGIN:
if menupath[:7] == '<Load>/':
if menupath is None:
pass
elif menupath[:7] == '<Load>/':
params[1:1] = file_params
elif menupath[:10] != '<Toolbox>/':
params.insert(1, (PDB_IMAGE, "image",