projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
don't show size grip when maximized
[wxWidgets.git]
/
src
/
gtk1
/
combobox.cpp
diff --git
a/src/gtk1/combobox.cpp
b/src/gtk1/combobox.cpp
index c138c48a42f01adad90ac78719a5474f177f2bb0..326381bcb41edc77bce20cb0dac4475a4dc9d572 100644
(file)
--- a/
src/gtk1/combobox.cpp
+++ b/
src/gtk1/combobox.cpp
@@
-178,9
+178,15
@@
bool wxComboBox::Create( wxWindow *parent, wxWindowID id, const wxString& value,
if (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.y > size_best.y)
new_size.y = size_best.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::Get
System
Colour( wxSYS_COLOUR_WINDOW ) );
+ SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_WINDOW ) );
SetForegroundColour( parent->GetForegroundColour() );
Show( TRUE );
SetForegroundColour( parent->GetForegroundColour() );
Show( TRUE );
@@
-287,7
+293,7
@@
wxClientData* wxComboBox::GetClientObject( int n )
{
wxCHECK_MSG( m_widget != NULL, (wxClientData*)NULL, wxT("invalid combobox") );
{
wxCHECK_MSG( m_widget != NULL, (wxClientData*)NULL, wxT("invalid combobox") );
- wxNode *node = m_client
Data
List.Nth( n );
+ wxNode *node = m_client
Object
List.Nth( n );
if (!node) return (wxClientData*) NULL;
return (wxClientData*) node->Data();
if (!node) return (wxClientData*) NULL;
return (wxClientData*) node->Data();