Hi,

Ernst Lippe <[EMAIL PROTECTED]> writes:

> What is the "official way" to display error messages from a plug-in to
> the user?
> Basically what I looked for was a simple window (perhaps even with some
> threatening icon) that I could invoke with a single function call
> (I guess that I have been spoilt by too much Delphi programming).
> I could find no such thing in the standard Gtk/Gimp libraries.

Use g_message (), which is a standard glib logging mechanism that is 
configured to do the right thing from gimp plug-ins. The right thing is 
to use the console if the user specified the --console-messages option 
or if gimp is running in batch mode. If running interactively it will 
display a dialog window or use the error console.


Salut, Sven



Reply via email to