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
- From: "svalbard colaco" <svalbardcolaco gmail com>
- To: gtk-devel-list gnome org, gtk-app-devel-list gnome org
- Subject: 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
- Date: Mon, 16 Jun 2008 17:41:16 +0530
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]