Apparently Method 2 is obsolete. So script/plugin writers should be using: "menu=". See Source below. I was trying to find when that changed so I can have a better understanding and catch future changes. I've been looking through the source, change log, and searching the developers list archive, but haven't found any reference yet.
Source:
Beginning GIMP: From Novice to Professional ... by Akkana Peck
The slides were very helpful.
Obsolete menu registration
http://gimpbook.com/scripting/slides30/ ... menu2.htmlWhere in the menus?
http://gimpbook.com/scripting/slides30/ ... -menu.htmlUpdate:When I split the menu path from the menu item by using "menu=", the first two parameters (image and drawable) were not passed to the main function and I got the error "takes exactly 4 arguments (2 given)". Everything else in the register function stayed the same.
line 7: "<Image>/MyDemos/Examples/Ex01: Test Input Parameters...",
line 7: "Ex01: Test Input Parameters...",
line 12: menu="<Image>/MyDemos/Examples"
It seems if you use "menu=", then you must explicitly define image and drawable --- if needed. It isn't automatic.
(PF_IMAGE, "image", "Input image", None),
(PF_DRAWABLE, "drawable", "Input drawable", None),