GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Wed Nov 26, 2014 8:19 pm

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: disable gtk warnings
PostPosted: Mon Apr 29, 2013 12:44 pm 
Offline
Familiar Face

Joined: Thu Nov 01, 2012 5:48 am
Posts: 30
Hi ,

Is there any way to disable gtk warnings at run time .


Regards
hkishn


Top
 Profile  
 
 Post subject: Re: disable gtk warnings
PostPosted: Mon Apr 29, 2013 5:31 pm 
Offline
Never Seen the Sunlight

Joined: Mon Apr 28, 2008 5:52 am
Posts: 780
Location: UK
Hi,

I would first try to work out why the warnings are happening before trying to disable the output of them. They are usually a sign that you have an error in your code which should be debugged. This is the best way of removing the warning messages.

You you want to just get rid of it you could use the function
Code:
GPrintFunc          g_set_printerr_handler              (GPrintFunc func);
to set a new print error handler. This is really not a good idea to just blank it off.

_________________
E.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group