They are file-jpeg-load if used within script-fu (and python? dunno) and file_jpeg_load if used from C or perl (which don't like using '-' in function names). Why using hyphen-seaparated-words-is-better is beyond me, but it seems to be what folks decided upon. Happy GIMPing, Seth --- Mark <mark@xxxxxxxxxx> wrote: > Just a quick question. > > I did get this working, but I want to be certain of > one issue. The PDB > function is file-jpeg-load, but I have to spell it > file_jpeg_load in my const > char * which I pass to gimp_run_procedure. Is this > the standard, are all > functions o fthe form xxx-xxx-xxx really > xxx_xxx_xxx, or are all hyphens > really supposed to be underscores? > > Thanks, > > Mark > > > On Thursday 29 March 2001 05:12, you wrote: > > Mark (mark@xxxxxxxxxx) wrote: > > > What is the PDB function call to automatically > open a jpeg from within an > > > extension? > > > > "file-jpeg-load" (surprise!) :-) > > > > This returns an image ID and you need to do an > "gimp-display-new" (and > > probably a "gimp-displays-flush" is a good idea). > > > > There is also a "gimp-file-load" which is not > limited to jpeg. > > > > For the exact parameters have a look at > <Toolbox>->Xtns->DB Browser. > > > > It might be an interesting idea to implement this > as an own filetype, > > similiar to the gzip/wget-filetype. So you can > save your image as > > (e.g.) fooimage.jpg.db and it gets stored to the > database and > > Gimp's "Save" Function automagically does the > same. Have a look > > at the gzip-code to learn how to register your > plugin for this > > functionality. > > > > Bye, > > Simon > > -- > Mark > _______________________________________________ > Gimp-developer mailing list > Gimp-developer@xxxxxxxxxxxxxxxxxxxxxx > http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer __________________________________________________ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/?.refer=text