Patch to make wxComboBox work in Toolbars.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12402 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -178,8 +178,14 @@ bool wxComboBox::Create( wxWindow *parent, wxWindowID id, const wxString& value,
|
|||||||
if (new_size.y > size_best.y)
|
if (new_size.y > size_best.y)
|
||||||
new_size.y = size_best.y;
|
new_size.y = size_best.y;
|
||||||
if ((new_size.x != size.x) || (new_size.y != size.y))
|
if ((new_size.x != size.x) || (new_size.y != size.y))
|
||||||
|
{
|
||||||
SetSize( new_size.x, new_size.y );
|
SetSize( new_size.x, new_size.y );
|
||||||
|
|
||||||
|
// This is required for tool bar support
|
||||||
|
gtk_widget_set_usize( m_widget, new_size.x, new_size.y );
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
SetBackgroundColour( wxSystemSettings::GetSystemColour( wxSYS_COLOUR_WINDOW ) );
|
SetBackgroundColour( wxSystemSettings::GetSystemColour( wxSYS_COLOUR_WINDOW ) );
|
||||||
SetForegroundColour( parent->GetForegroundColour() );
|
SetForegroundColour( parent->GetForegroundColour() );
|
||||||
|
|
||||||
|
@@ -178,8 +178,14 @@ bool wxComboBox::Create( wxWindow *parent, wxWindowID id, const wxString& value,
|
|||||||
if (new_size.y > size_best.y)
|
if (new_size.y > size_best.y)
|
||||||
new_size.y = size_best.y;
|
new_size.y = size_best.y;
|
||||||
if ((new_size.x != size.x) || (new_size.y != size.y))
|
if ((new_size.x != size.x) || (new_size.y != size.y))
|
||||||
|
{
|
||||||
SetSize( new_size.x, new_size.y );
|
SetSize( new_size.x, new_size.y );
|
||||||
|
|
||||||
|
// This is required for tool bar support
|
||||||
|
gtk_widget_set_usize( m_widget, new_size.x, new_size.y );
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
SetBackgroundColour( wxSystemSettings::GetSystemColour( wxSYS_COLOUR_WINDOW ) );
|
SetBackgroundColour( wxSystemSettings::GetSystemColour( wxSYS_COLOUR_WINDOW ) );
|
||||||
SetForegroundColour( parent->GetForegroundColour() );
|
SetForegroundColour( parent->GetForegroundColour() );
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user