Gdk-CRITICAL **: gdk_drawable_set_colormap: assertion `cmap == NULL || HOW TO HANDLE: gdk_drawable_set_colormap: assertion `cmap == NULL || gdk_drawable_get_depth (drawable) == cmap->visual->depth' failed



Hi all ,

I have an application running on DirectFB and I have a function gnome_canvas_new_aa( ) to generate a canvas
As an example  , a code snippet would be as below

GtkWidget *canvas_widget;

gdk_rgb_init( );
gtk_widget_push_visual(gdk_rgb_get_visual( ));
gtk_widget_push_colormap(gdk_rgb_get_cmap( ));

canvas_widget = gnome_canvas_new_aa( );

gtk_widget_pop_visual( );
gtk_widget_pop_colormap( );
But i get the warning

Gdk-CRITICAL **: gdk_drawable_set_colormap: assertion `cmap == NULL || gdk_drawable_get_depth (drawable) == cmap->visual->depth' failed

And my canvas appears blue / dark blue /balck in color

What could be the reason for this?

And how u handle this warning? plz help

Thanks & Regards
sv.








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