Also report events from wxCollapsiblePane's label

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58632 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling 2009-02-03 09:53:33 +00:00
parent 2e2e1bb254
commit 69d32cafb0
2 changed files with 10 additions and 0 deletions

View File

@ -71,6 +71,7 @@ public: // used by GTK callbacks
private:
void OnSize(wxSizeEvent&);
virtual void AddChildGTK(wxWindowGTK* child);
GdkWindow *GTKGetWindow(wxArrayGdkWindows& windows) const;
DECLARE_DYNAMIC_CLASS(wxCollapsiblePane)
DECLARE_EVENT_TABLE()

View File

@ -200,6 +200,15 @@ wxSize wxCollapsiblePane::DoGetBestSize() const
return sz;
}
GdkWindow *wxCollapsiblePane::GTKGetWindow(wxArrayGdkWindows& windows) const
{
GtkWidget *label = gtk_expander_get_label_widget( GTK_EXPANDER(m_widget) );
windows.Add( label->window );
windows.Add( m_widget->window );
return NULL;
}
void wxCollapsiblePane::Collapse(bool collapse)
{
// optimization