Re: Re: console window
"Phroggie" <[email protected]> Mon, 27 Jan 2003 03:22:27 -0600
| Newsgroups | gmane.comp.video.gimp.windows.devel |
|---|---|
| Message-ID | <000b01c2c5e5$9c56ebc0$8601a8c0@charlotte> |
As of yet, I haven't found a better way to do it, besides Cygwin's Run.exe
(but most Windows users won't have that laying around). Ensure that you're
not linking with '-mconsole'. For reference, this is how Gaim handled this
problem:
static void dummy_log_handler (const gchar *domain, GLogLevelFlags
flags, const gchar *msg, gpointer user_data) {
return;
}
g_log_set_handler (NULL, G_LOG_LEVEL_MASK | G_LOG_FLAG_FATAL |
G_LOG_FLAG_RECURSION, dummy_log_handler, NULL);
g_log_set_handler ("Gdk", G_LOG_LEVEL_MASK | G_LOG_FLAG_FATAL |
G_LOG_FLAG_RECURSION, dummy_log_handler, NULL);
g_log_set_handler ("Gtk", G_LOG_LEVEL_MASK | G_LOG_FLAG_FATAL |
G_LOG_FLAG_RECURSION, dummy_log_handler, NULL);
g_log_set_handler ("GLib", G_LOG_LEVEL_MASK | G_LOG_FLAG_FATAL |
G_LOG_FLAG_RECURSION, dummy_log_handler, NULL);
g_log_set_handler ("GModule", G_LOG_LEVEL_MASK | G_LOG_FLAG_FATAL |
G_LOG_FLAG_RECURSION, dummy_log_handler, NULL);
g_log_set_handler ("GLib-GObject", G_LOG_LEVEL_MASK | G_LOG_FLAG_FATAL |
G_LOG_FLAG_RECURSION, dummy_log_handler, NULL);
g_log_set_handler ("GThread", G_LOG_LEVEL_MASK | G_LOG_FLAG_FATAL |
G_LOG_FLAG_RECURSION, dummy_log_handler, NULL);
--Lee
----- Original Message -----
From: <[email protected]>
To: <[email protected]>
Sent: Monday, January 27, 2003 02:58
Subject: RE: [gimpwin-dev] Re: console window
> This won't actually do it.
>
> I have been using log domains and catching Gtk and Glib
> errors/warnings/etc... for some time now and it still insists on opening a
> console window.
>
> Is there another way?
>
> Regards,
> Martyn
>
> > -----Original Message-----
> > From: alex_shaduri <[email protected]> [mailto:[email protected]]
> > Sent: 26 January 2003 15:32
> > To: [email protected]
> > Subject: [gimpwin-dev] Re: console window
> >
> >
> > --- In [email protected], Tor Lillqvist <tml@i...> wrote:
> > > "alex_shaduri <ashaduri@y...>" <ashaduri@y...> writes:
> > > > What should I do to hide a console window that keeps popping up
> > > > everytime gtk/gdk/glib error eccurs?
> > >
> > > Install a warning and/or error handler?
> > >
> > Is there any way to install a log handler for all
> > gtk/gdk/etc... domains or should I call g_log_set_handler() 8+ times?
> >
> >
> > 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/
> >
> >
> >
>
> 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/
>
>
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/