X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c90e98dcb66aa20cf64fa0f5633026c2f74dab1a..10ba26777d58f8e7898182e5a98087ccac7ebedd:/src/gtk/bmpcbox.cpp diff --git a/src/gtk/bmpcbox.cpp b/src/gtk/bmpcbox.cpp index 7743cd1465..0a5f75fbe3 100644 --- a/src/gtk/bmpcbox.cpp +++ b/src/gtk/bmpcbox.cpp @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: src/gtk/bmpcboxg.cpp +// Name: src/gtk/bmpcbox.cpp // Purpose: wxBitmapComboBox // Author: Jaakko Salli // Created: 2008-05-19 @@ -277,6 +277,15 @@ int wxBitmapComboBox::Insert(const wxString& item, const wxBitmap& bitmap, return n; } +int wxBitmapComboBox::Insert(const wxString& item, const wxBitmap& bitmap, + unsigned int pos, void *clientData) +{ + const int n = wxComboBox::Insert(item, pos, clientData); + if ( n != wxNOT_FOUND ) + SetItemBitmap(n, bitmap); + return n; +} + void wxBitmapComboBox::GTKInsertComboBoxTextItem( unsigned int n, const wxString& text ) { GtkComboBox* combobox = GTK_COMBO_BOX( m_widget );