Colormap and drawing_area widget

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi everybody,
I have a little pb with gtk_drawing_area. I read tutorial and API
documentation but i don't find the answer : why i obtain this error message
when using the code below ?

*************Code*********************
GtkWidget *ZoneDessin;
GdkColormap *colormap;

ZoneDessin = gtk_drawing_area_new();
colormap = gdk_window_get_colormap(ZoneDessin->window);

*************Error***********************
Gdk-CRITICAL **: file gdkdraw.c: line 244 (gdk_drawable_get_colormap):
assertion `GDK_IS_COLORMAP (colormap)' failed

Thanks, Luc.



_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux