[wx-dev] wxGTK: widget border changes in HEAD

Paul Cornett pc-wx at bullseye.com
Fri Apr 6 23:20:55 PDT 2007


Vadim Zeitlin wrote:
>  So I think that it must be broken by one of the recent changes in
> src/gtk/window.cpp but, again, I don't see anything explaining it.
> With my wxWindow example I see that draw_frame() is still called and
> it does draw the border using gtk_paint_shadow() but it doesn't
> appear on the screen. So something must erase/draw over it probably.
> 
>  Ah, and I can confirm that it must be this change
> 
> http://cvs.wxwidgets.org/viewcvs.cgi/wxWidgets/src/gtk/window.cpp.diff?r1=1.691&r2=1.692
> 
> which broke it as if I also create the window with wxHSCROLL style,
> it does show the border correctly. So it looks that the fact that
> m_widget is the same as m_wxwindow for non-scrollable windows is a
> problem somehow. But I still don't know where exactly is the bug, I
> hope Robert can look into this.

I think the problem is that draw_frame() is expecting to draw onto
m_wxwindow's parent, but now when m_widget==m_wxwindow, it draws on
m_wxwindow, which is then painted over.




More information about the wx-dev mailing list