Re: disable Gtk warnings
- From: Murilo Tuvani <murilo_tuvani yahoo com br>
- To: gtk-app-devel-list gnome org
- Subject: Re: disable Gtk warnings
- Date: Sat, 7 Feb 2004 14:44:45 -0300 (ART)
I don´t agree with the *will* crash because I´m producing an aplication and I sometimes apear some warnigs one case, when I pass NULL to a pointer after make gtk_widget_destroy(), if I don´t pass it will fail in tests I´ll make after and if I pass apear the gtk warnings!
Owen Taylor <otaylor redhat com> wrote:
On Sat, 2004-02-07 at 01:30, Harsha(Hotmail) wrote:
> Hi,
>
> I am developing an application in linux using Gtk+, GDK, glib and
> gnome-print.
>
> Can any body tell me Is there any Debug & Release version of Gtk
> Library?
> Or how can I disable warnings which Gtk shows.?
>
> It shows warning with source file name and line number, which I dont
> want to display in release version of my application
GTK+ warnings are warnings about incorrect code in your application,
you should consider them to be as necessary to fix as a segfault.
The GTK+ development policy is to not print a warning unless
an actual bug in application code has been detected.
While it is theoretically possible to drop the warning messages
on the floor (poke around the GLib API docs), this is a horribly bad
idea. GTK+
can actually be compiled without the checks that are
producing the warnings; in that case your application *will* crash.
Regards,
Owen
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Yahoo! GeoCities: 15MB de espaço grátis para criar seu web site!
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]