]> git.saurik.com Git - wxWidgets.git/commitdiff
Added missing wxBitmapComboBox::Insert() implementation
authorJaakko Salli <jaakko.salli@dnainternet.net>
Wed, 9 Feb 2011 19:11:13 +0000 (19:11 +0000)
committerJaakko Salli <jaakko.salli@dnainternet.net>
Wed, 9 Feb 2011 19:11:13 +0000 (19:11 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66869 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/bmpcbox.cpp

index 7743cd14657cf71273846fe1b28890350a360427..3ec26bd7c8298fc61092af9b0ea4fa13b7b346a4 100644 (file)
@@ -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 );