Remove overriden GTKInsertComboBoxTextItem from bitmap combobox
The base function now has this exact functionality, but is faster.
This commit is contained in:
parent
983608c0f2
commit
1ef312a0be
2 changed files with 0 additions and 15 deletions
|
|
@ -130,7 +130,6 @@ protected:
|
|||
virtual GdkWindow *GTKGetWindow(wxArrayGdkWindows& windows) const override;
|
||||
|
||||
virtual void GTKCreateComboBoxWidget() override;
|
||||
virtual void GTKInsertComboBoxTextItem( unsigned int n, const wxString& text ) override;
|
||||
|
||||
virtual wxSize DoGetBestSize() const override;
|
||||
|
||||
|
|
|
|||
|
|
@ -285,20 +285,6 @@ int wxBitmapComboBox::Insert(const wxString& item, const wxBitmapBundle& bitmap,
|
|||
return n;
|
||||
}
|
||||
|
||||
void wxBitmapComboBox::GTKInsertComboBoxTextItem( unsigned int n, const wxString& text )
|
||||
{
|
||||
GtkComboBox* combobox = GTK_COMBO_BOX( m_widget );
|
||||
GtkTreeModel *model = gtk_combo_box_get_model( combobox );
|
||||
GtkListStore *store = GTK_LIST_STORE( model );
|
||||
GtkTreeIter iter;
|
||||
|
||||
gtk_list_store_insert( store, &iter, n );
|
||||
|
||||
wxGtkValue value( G_TYPE_STRING );
|
||||
g_value_set_string( value, text.utf8_str() );
|
||||
gtk_list_store_set_value( store, &iter, m_stringCellIndex, value );
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// wxTextEntry interface override
|
||||
// ----------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue