[wx-dev] [GTK] handling TAB and other navigation keys
Robin Dunn
robin at alldunn.com
Tue Apr 3 09:11:12 PDT 2007
Robert Roebling wrote:
> Robin Dunn wrote:
>
>> Robert Roebling wrote:
>>
>>>> As usual when touching GTK+ internals I'd appreciate if somebody
>>>> could review my changes
>>> I'm not sure if the following problem is caused by your
>>> changes to focus handling or by my changes from 5 minutes
>>> ago (to not create any GtkScrolledWindow unless it is
>>> requested),
>> BTW, there are several places (such as wxWindowGTK::GetScrollRange)
>> that expect m_scrollBars to always have non-NULL values, and which
>> will crash if called on a window without wxHSCROLL|wxVSCROLL. For
>> example, wxSTC crashes when creating a new instance, as seen in
>> this backtrace:
>
> I thought using wxHSCROLL|wxVSCROLL was required under wxMac anyway,
> how did that work there?
I'm not sure why but it was only adding the wxHSCROLL|wxVSCROLL flags
for wxMac. I changed it yesterday so it is now using those flags for
all platforms. But we should still fix all the places where
m_scrollBars is used to do a wxCHECK to make sure the value is not NULL.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
More information about the wx-dev
mailing list