X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/55410bb4f67febe1ca20654f078ea4fb9a6223ae..4e15d1caa03346c126015019c1fdf093033ef40b:/src/gtk1/combobox.cpp diff --git a/src/gtk1/combobox.cpp b/src/gtk1/combobox.cpp index ebbbc0c0a4..48221babd6 100644 --- a/src/gtk1/combobox.cpp +++ b/src/gtk1/combobox.cpp @@ -170,8 +170,6 @@ gtk_combo_select_child_callback( GtkList *WXUNUSED(list), GtkWidget *WXUNUSED(wi // wxComboBox //----------------------------------------------------------------------------- -IMPLEMENT_DYNAMIC_CLASS(wxComboBox,wxControl) - BEGIN_EVENT_TABLE(wxComboBox, wxControl) EVT_SIZE(wxComboBox::OnSize) EVT_CHAR(wxComboBox::OnChar) @@ -746,7 +744,7 @@ void wxComboBox::Replace( long from, long to, const wxString& value ) GtkWidget *entry = GTK_COMBO(m_widget)->entry; gtk_editable_delete_text( GTK_EDITABLE(entry), (gint)from, (gint)to ); - if (value.IsNull()) return; + if ( value.empty() ) return; gint pos = (gint)to; #if wxUSE_UNICODE