Re: Found a bug



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]