Bug #13982 2008-06-07 20:26

jenslody

Undocked (floating) windows can cause GTK-Critical on linux

When starting Code::Blocks from console on linux (debian sid) with undocked windows (for example Symbols browser), I get the following error-message:

"(codeblocks:<PID_of_C::B>): Gtk-CRITICAL **: gtk_window_realize_icon: assertion `info->icon_pixmap == NULL' failed".

This happens in "app.cpp" in line 543, when "frame->Show()" is called.

The error occurs, because in the ctor of MainFrame the variable "m_StartupDone" is set to "true" and "DoUpdateLayout()" is called. The layout-update leads to a call of the function "Show()" for the undocked (free-floating) windows, before "Show()" is called for the main window ("MainFrame*").

I will submit a patch that avoids this behaviour, and sets "m_StartupDone" via a function call after "frame->Show()".

Category
Application::Error
Group
 
Status
Closed
Close date
2008-06-08 13:21
Assigned to
biplab
jenslody 2008-06-07 20:32

Patch ID is #2490

biplab 2008-06-08 13:21

This bug is now fixed in HEAD.

Thank you for reporting it.