From 69d32cafb085949eb996bbc7a6f7171e75573516 Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Tue, 3 Feb 2009 09:53:33 +0000 Subject: [PATCH] Also report events from wxCollapsiblePane's label git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58632 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/gtk/collpane.h | 1 + src/gtk/collpane.cpp | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/include/wx/gtk/collpane.h b/include/wx/gtk/collpane.h index 813daea8f4..78c4f26648 100644 --- a/include/wx/gtk/collpane.h +++ b/include/wx/gtk/collpane.h @@ -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() diff --git a/src/gtk/collpane.cpp b/src/gtk/collpane.cpp index ec04fb67f2..b973170e12 100644 --- a/src/gtk/collpane.cpp +++ b/src/gtk/collpane.cpp @@ -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 -- 2.47.2