From 25c0e27b6c848048e65be9aceddf9ac07177f47d Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 23 May 2021 12:34:24 +0200 Subject: [PATCH] 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(). --- src/gtk/toolbar.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/gtk/toolbar.cpp b/src/gtk/toolbar.cpp index 40df27abb1..155b2afbac 100644 --- a/src/gtk/toolbar.cpp +++ b/src/gtk/toolbar.cpp @@ -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()