[ wxwindows-Bugs-1597527 ] glcanvas gtk_widget_set_colormap assertion

SourceForge.net noreply at sourceforge.net
Wed Feb 13 12:17:00 PST 2008


Bugs item #1597527, was opened at 2006-11-16 00:08
Message generated for change (Comment added) made by pcor
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1597527&group_id=9863

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: wxGTK specific
Group: Platform specific
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Emilien Kia (cursorstar)
Assigned to: Nobody/Anonymous (nobody)
Summary: glcanvas gtk_widget_set_colormap assertion

Initial Comment:
Hello.

When use wxGlCanvas with wxGTK build, I have a gtk assertion :
Gtk-CRITICAL **: gtk_widget_set_colormap: assertion `!GTK_WIDGET_REALIZED (widget)' failed

The alone use of gtk_widget_set_colormap function (for wxGTK2 build) is src/gtk/glcanvas.cpp:339.
In gtk documentation [1], it is specified that this function must be called before the widget is realized however in the wxGLCanvas::Create function, it calls wxWindow::Create (l325) which (src/gtk/window.cpp:2394) shows it.

When I suppress gtk_widget_set_colormap call, assertion is not shoewd anymore and nothing is affected.

Regards
Emilien KIA


[1] : http://developer.gnome.org/doc/API/2.0/gtk/GtkWidget.html#gtk-widget-set-colormap

----------------------------------------------------------------------

>Comment By: Paul Cornett (pcor)
Date: 2008-02-13 12:17

Message:
Logged In: YES 
user_id=1084745
Originator: NO

Now fixed in trunk and 2.8 branch.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1597527&group_id=9863




More information about the wx-dev mailing list