GTK_COMBO_BOX -> GTK_COMBO_BOX_TEXT

This commit is contained in:
Garux
2020-05-21 19:18:51 +03:00
parent f14722d36f
commit ded059f817
5 changed files with 46 additions and 53 deletions

View File

@@ -773,17 +773,17 @@ ListAttribute( const char* key, const ListAttributeType& type ) :
m_combo( 0 ),
m_nonModal( ApplyCaller( *this ) ),
m_type( type ){
GtkComboBox* combo = GTK_COMBO_BOX( gtk_combo_box_new_text() );
GtkWidget* combo = gtk_combo_box_text_new();
for ( ListAttributeType::const_iterator i = type.begin(); i != type.end(); ++i )
{
gtk_combo_box_append_text( GTK_COMBO_BOX( combo ), ( *i ).first.c_str() );
gtk_combo_box_text_append_text( GTK_COMBO_BOX_TEXT( combo ), ( *i ).first.c_str() );
}
gtk_widget_show( GTK_WIDGET( combo ) );
m_nonModal.connect( combo );
gtk_widget_show( combo );
m_nonModal.connect( GTK_COMBO_BOX( combo ) );
m_combo = combo;
m_combo = GTK_COMBO_BOX( combo );
}
void release(){
delete this;