]> git.saurik.com Git - wxWidgets.git/commitdiff
Added GetMainWidget() to fix bug that was causing crashes under wxMOTIF.
authorMichael Bedward <mbedward@ozemail.com.au>
Thu, 16 Sep 1999 10:32:03 +0000 (10:32 +0000)
committerMichael Bedward <mbedward@ozemail.com.au>
Thu, 16 Sep 1999 10:32:03 +0000 (10:32 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3683 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/generic/statline.h
src/generic/statline.cpp

index d8832381ac213c9bf638adf26eb0a1d7bba82056..5d3dafa675de09bdde429f35c329298067a9967f 100644 (file)
@@ -46,6 +46,11 @@ public:
                  long style = wxLI_HORIZONTAL,
                  const wxString &name = wxStaticTextNameStr );
 
+    // it's necessary to override this wxWindow function because we
+    // will want to return the main widget for m_statbox
+    //
+    WXWidget GetMainWidget() const;
+        
 protected:
     // we implement the static line using a static box
     wxStaticBox *m_statbox;
index f6872ff56a8fdec9607160401a94da4dc0e96e3e..31bbdec49ed4c37687e7a37d19df5d66f315c546 100644 (file)
@@ -59,3 +59,9 @@ bool wxStaticLine::Create( wxWindow *parent,
 
     return TRUE;
 }
+
+
+WXWidget wxStaticLine::GetMainWidget() const
+{
+    return m_statbox->GetMainWidget();
+}