Remove apparently unnecessary call from wxGTK wxToolBar

ConnectWidget() will be called from PostCreation() just below, so it
doesn't seem necessary to call it explicitly from wxToolBar::Create().
This commit is contained in:
Vadim Zeitlin 2021-05-23 12:34:24 +02:00
parent 3e70842775
commit 25c0e27b6c

View File

@ -463,7 +463,6 @@ bool wxToolBar::Create( wxWindow *parent,
else
{
m_widget = gtk_event_box_new();
ConnectWidget( m_widget );
}
gtk_container_add(GTK_CONTAINER(m_widget), GTK_WIDGET(m_toolbar));
wxGCC_WARNING_RESTORE()