Re: console window

Daniel-Marian Baboiu <[email protected]> Sat, 25 Jan 2003 22:06:35 -0500
Newsgroups gmane.comp.video.gimp.windows.devel
Message-ID <[email protected]>
"alex_shaduri " wrote:
> 
> What should I do to hide a console window that keeps popping up everytime gtk/gdk/glib error eccurs? I tried "-mwindows" gcc switch as well as FreeConsole(), both seem to prevent displaying it at application start, but as soon as gtk/glib/etc issue some error, it pops up again. 

The messages are glib functions; there are four functions for this:
g_error(char*), g_warning(char*), g_message(char*) and g_print(char*).
The behavior of these functions is to print the char* on the stdout. All
of these can be overriden by user functions, which could pop a window
with a message, log the error/message into a file or perform something
else (e.g., nothing)

The override functions must accept one argument, a char* (or a gchar*).
The override is done by the functions
g_set_[error|warning|message|print]_handler, whose argument is the
override function. 

DMB


To Post a message, send it to:   [email protected]
To Unsubscribe, send a blank message to: [email protected] 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/