From: Robert Roebling <robert@roebling.de> Date: Fri, 6 Oct 2006 21:49:10 +0000 (+0000) Subject: Return toolbars "own" GdkWindow, required among X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/48468900108e7228d5438179c73acaf4fe4b04d6 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 --- diff --git a/include/wx/gtk/tbargtk.h b/include/wx/gtk/tbargtk.h index cc064460cd..28fc7ee00b 100644 --- a/include/wx/gtk/tbargtk.h +++ b/include/wx/gtk/tbargtk.h @@ -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); diff --git a/src/gtk/tbargtk.cpp b/src/gtk/tbargtk.cpp index cd573461e5..a673c58cfe 100644 --- a/src/gtk/tbargtk.cpp +++ b/src/gtk/tbargtk.cpp @@ -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;