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;