Re: Found a bug
- From: Owen Taylor <otaylor redhat com>
- To: malfet gw mipt sw ru
- Cc: gtk-devel-list gnome org
- Subject: Re: Found a bug
- Date: Wed, 4 Dec 2002 15:55:52 -0500 (EST)
malfet gw mipt sw ru writes:
> Hi!
> This program crashes HEAD of GTK-2.0
> #include <gtk/gtk.h>
> int main(int argc, char *argv[]) {
> gtk_set_locale();
> gtk_init (&argc, &argv);
> gtk_widget_new (GTK_TYPE_WIDGET, 0, 0);
> }
>
> I know, that instantiating of gtk_widget is not very good idea, but I think this isn't a reson for library to crash?
No, this isn't a bug. Creating instances of non-instantiable
types like GtkWidget was always disallowed, it's just that
we've started enforcing it now.
Once we've printed out a warning and not created the widget,
whether GTK+ segfaults or not is an irrelevant detail.
Regards,
Owen
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]