git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74618
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
class WXDLLIMPEXP_CORE wxStaticBoxBase : public wxNavigationEnabled<wxControl>
{
public:
- wxStaticBoxBase() { m_container.DisableSelfFocus(); }
+ wxStaticBoxBase();
// overridden base class virtuals
virtual bool HasTransparentBackground() { return true; }
extern WXDLLEXPORT_DATA(const char) wxStaticBoxNameStr[] = "groupBox";
+wxStaticBoxBase::wxStaticBoxBase()
+{
+#ifndef __WXGTK__
+ m_container.DisableSelfFocus();
+#endif
+}
+
// ----------------------------------------------------------------------------
// XTI
// ----------------------------------------------------------------------------
}
#endif
+ m_container.DisableSelfFocus();
+
return true;
}
void wxWindowGTK::SetCanFocus(bool canFocus)
{
- if ( m_widget )
- gtk_widget_set_can_focus(m_widget, canFocus);
+ wxCHECK_RET(m_widget, "invalid window");
+
+ gtk_widget_set_can_focus(m_widget, canFocus);
if ( m_wxwindow && (m_widget != m_wxwindow) )
{