diff --git a/src/gtk/tbargtk.cpp b/src/gtk/tbargtk.cpp index 970873c7e2..1e0f1d9f5f 100644 --- a/src/gtk/tbargtk.cpp +++ b/src/gtk/tbargtk.cpp @@ -354,6 +354,7 @@ bool wxToolBar::AddControl(wxControl *control) wxToolBarTool *tool = new wxToolBarTool(control); + tool -> m_item = NULL; gtk_toolbar_append_widget( m_toolbar, control->m_widget, (const char *) NULL, (const char *) NULL ); GtkRequisition req; diff --git a/src/gtk1/tbargtk.cpp b/src/gtk1/tbargtk.cpp index 970873c7e2..1e0f1d9f5f 100644 --- a/src/gtk1/tbargtk.cpp +++ b/src/gtk1/tbargtk.cpp @@ -354,6 +354,7 @@ bool wxToolBar::AddControl(wxControl *control) wxToolBarTool *tool = new wxToolBarTool(control); + tool -> m_item = NULL; gtk_toolbar_append_widget( m_toolbar, control->m_widget, (const char *) NULL, (const char *) NULL ); GtkRequisition req;