Am 18.05.2011 08:01, schrieb David Nečas:
P.S.: This cannot hapen:
if (!win)
GLib would abort the program if a new object could not be allocated.
It can. If you e.g. comment out the line
attr.window_type = GDK_WINDOW_TOPLEVEL;
then the program will abort with
$ ./cairo_test
(cairo_test:21183): Gdk-WARNING **:
/build/buildd-gtk+3.0_3.0.8-1-i386-1AHGdN/gtk+3.0-3.0.8/./gdk/gdkwindow.c:1342cannot
make windows of type 8
Cannot make toplevel window!
Please note that the "Cannot make toplevel window!\n" string is only
printer if (!win).
- Fabian
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list