Re: [Gimp-developer] my plugin not works now!!

2007-03-29 Thread Michael Natterer
On Thu, 2007-03-29 at 01:17 -0700, coolhand wrote:
 
 You would have to show us the code of your plug-in if you want us to
 help you.
 
 Sven
 
 Ok.
 
 http://www.nabble.com/file/7507/gimp_gdal_plugin.c gimp_gdal_plugin.c 
 
 This is a plugin to load image files from the gdal library (Geospatial Data
 Abstraction Library). As this library loads some of common file types such
 as jpeg, tiff, etc, i thinked to make an alternative dialog to load from;
 therefore this is a general plugin, and not a load plugin.
 
 Also, when i opened images, the plugin still continue working, but when i
 close one of these images, the menu item gones gray and i can't use any
 more.
 
 This other one is a load file plugin:
 
 http://www.nabble.com/file/7508/gimp_lct_plugin.c gimp_lct_plugin.c 
 
 it works fine at first time. To work it needs to be reinstalled, and then it
 only works once again. ¿why? for me is a mistery.

Hi,

the problem is that you specify GREY as image type for your open
procedures. That means you can only use these procedures if your
currently active image is greyscale. That's probably not what you
want, just pass an empty string there ().

And unrelated:

For the first plug-in, there is no reason any more to have
image and drawable parameters just because a procedure registers
in Image, just get rid of these useless parameters too and
your plug-in will continue to work just as before.

ciao,
--mitch

___
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer


Re: [Gimp-developer] my plugin not works now!!

2007-03-29 Thread coolhand

Ok, all works now!.
-- 
View this message in context: 
http://www.nabble.com/my-plugin-not-works-now%21%21-tf3472129.html#a9731510
Sent from the Gimp Developer mailing list archive at Nabble.com.

___
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer


[Gimp-developer] my plugin not works now!!

2007-03-28 Thread coolhand

I'm developing a new plugin for gimp that works in the 2.2 series, but not in
2.3.10. It shows the menu entry in gray, but there aren't any messages in
the console about.

In the other hand, i have other plugin that works fine. In this case, is a
load image plugin, but shows in console:
GIMP: save handler plugin-lct-load does not take the standard save
handler args, when i use the standard load args.

thanks.
-- 
View this message in context: 
http://www.nabble.com/my-plugin-not-works-now%21%21-tf3472129.html#a9689522
Sent from the Gimp Developer mailing list archive at Nabble.com.

___
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer


Re: [Gimp-developer] my plugin not works now!!

2007-03-28 Thread Sven Neumann
Hi,

On Tue, 2007-03-27 at 03:08 -0700, coolhand wrote:
 I'm developing a new plugin for gimp that works in the 2.2 series, but not in
 2.3.10. It shows the menu entry in gray, but there aren't any messages in
 the console about.
 
 In the other hand, i have other plugin that works fine. In this case, is a
 load image plugin, but shows in console:
 GIMP: save handler plugin-lct-load does not take the standard save
 handler args, when i use the standard load args.

You would have to show us the code of your plug-in if you want us to
help you.


Sven


___
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer