X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/eeccd5d94ce6b11f36af95db4ac528a2e2e0c4c5..02da33e27d0eee3440a1ea83c8551ec99ab93f9f:/src/gtk1/combobox.cpp diff --git a/src/gtk1/combobox.cpp b/src/gtk1/combobox.cpp index 7fd217fda3..bd84d75da3 100644 --- a/src/gtk1/combobox.cpp +++ b/src/gtk1/combobox.cpp @@ -134,6 +134,7 @@ bool wxComboBox::Create( wxWindow *parent, wxWindowID id, const wxString& value, SetBackgroundColour( parent->GetBackgroundColour() ); SetForegroundColour( parent->GetForegroundColour() ); + SetFont( parent->GetFont() ); Show( TRUE ); @@ -502,14 +503,16 @@ void wxComboBox::Remove(long from, long to) gtk_editable_delete_text( GTK_EDITABLE(entry), (gint)from, (gint)to ); } -void wxComboBox::SetSelection( long WXUNUSED(from), long WXUNUSED(to) ) +void wxComboBox::SetSelection( long from, long to ) { - wxFAIL_MSG( "wxComboBox::SetSelection not implemented" ); + GtkWidget *entry = GTK_COMBO(m_widget)->entry; + gtk_editable_select_region( GTK_EDITABLE(entry), (gint)from, (gint)to ); } -void wxComboBox::SetEditable( bool WXUNUSED(editable) ) +void wxComboBox::SetEditable( bool editable ) { - wxFAIL_MSG( "wxComboBox::SetEditable not implemented" ); + GtkWidget *entry = GTK_COMBO(m_widget)->entry; + gtk_entry_set_editable( GTK_ENTRY(entry), editable ); } void wxComboBox::OnSize( wxSizeEvent &event )