Re: Error messages from a plug-in

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Ernst Lippe <ernstl@xxxxxxxxx> 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





[Index of Archives]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [GIMP for Windows]     [KDE]     [GEGL]     [Gimp's Home]     [Gimp on GUI]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux