Allow wxGTK's wxToolbar to catch the standard window events
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17007 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -299,7 +299,10 @@ bool wxToolBar::Create( wxWindow *parent,
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
m_widget = GTK_WIDGET(m_toolbar);
|
m_widget = gtk_event_box_new();
|
||||||
|
gtk_container_add( GTK_CONTAINER(m_widget), GTK_WIDGET(m_toolbar) );
|
||||||
|
ConnectWidget( m_widget );
|
||||||
|
gtk_widget_show(GTK_WIDGET(m_toolbar));
|
||||||
}
|
}
|
||||||
|
|
||||||
gtk_toolbar_set_tooltips( GTK_TOOLBAR(m_toolbar), TRUE );
|
gtk_toolbar_set_tooltips( GTK_TOOLBAR(m_toolbar), TRUE );
|
||||||
|
@@ -299,7 +299,10 @@ bool wxToolBar::Create( wxWindow *parent,
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
m_widget = GTK_WIDGET(m_toolbar);
|
m_widget = gtk_event_box_new();
|
||||||
|
gtk_container_add( GTK_CONTAINER(m_widget), GTK_WIDGET(m_toolbar) );
|
||||||
|
ConnectWidget( m_widget );
|
||||||
|
gtk_widget_show(GTK_WIDGET(m_toolbar));
|
||||||
}
|
}
|
||||||
|
|
||||||
gtk_toolbar_set_tooltips( GTK_TOOLBAR(m_toolbar), TRUE );
|
gtk_toolbar_set_tooltips( GTK_TOOLBAR(m_toolbar), TRUE );
|
||||||
|
Reference in New Issue
Block a user