Return toolbars "own" GdkWindow, required among

others for mouse event reporting.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41667 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2006-10-06 21:49:10 +00:00
parent 846c181ba2
commit 4846890010
2 changed files with 7 additions and 0 deletions

View File

@@ -71,6 +71,8 @@ protected:
// set the GTK toolbar style and orientation
void GtkSetStyle();
virtual GdkWindow *GTKGetWindow(wxArrayGdkWindows& windows) const;
// implement base class pure virtuals
virtual bool DoInsertTool(size_t pos, wxToolBarToolBase *tool);
virtual bool DoDeleteTool(size_t pos, wxToolBarToolBase *tool);

View File

@@ -331,6 +331,11 @@ bool wxToolBar::Create( wxWindow *parent,
return true;
}
GdkWindow *wxToolBar::GTKGetWindow(wxArrayGdkWindows& windows) const
{
return GTK_WIDGET(m_toolbar)->window;
}
void wxToolBar::GtkSetStyle()
{
GtkOrientation orient;