GTK_COMBO_BOX -> GTK_COMBO_BOX_TEXT
This commit is contained in:
@@ -1011,8 +1011,8 @@ void DoNewPatchDlg( EPatchPrefab prefab, int minrows, int mincols, int defrows,
|
||||
}
|
||||
|
||||
{
|
||||
GtkComboBox* combo = GTK_COMBO_BOX( gtk_combo_box_new_text() );
|
||||
#define D_ITEM( x ) if ( x >= mincols && ( !maxcols || x <= maxcols ) ) gtk_combo_box_append_text( combo, # x )
|
||||
GtkComboBoxText* combo = GTK_COMBO_BOX_TEXT( gtk_combo_box_text_new() );
|
||||
#define D_ITEM( x ) if ( x >= mincols && ( !maxcols || x <= maxcols ) ) gtk_combo_box_text_append_text( combo, # x )
|
||||
D_ITEM( 3 );
|
||||
D_ITEM( 5 );
|
||||
D_ITEM( 7 );
|
||||
@@ -1034,11 +1034,11 @@ void DoNewPatchDlg( EPatchPrefab prefab, int minrows, int mincols, int defrows,
|
||||
(GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ),
|
||||
(GtkAttachOptions) ( 0 ), 0, 0 );
|
||||
|
||||
width = combo;
|
||||
width = GTK_COMBO_BOX( combo );
|
||||
}
|
||||
{
|
||||
GtkComboBox* combo = GTK_COMBO_BOX( gtk_combo_box_new_text() );
|
||||
#define D_ITEM( x ) if ( x >= minrows && ( !maxrows || x <= maxrows ) ) gtk_combo_box_append_text( combo, # x )
|
||||
GtkComboBoxText* combo = GTK_COMBO_BOX_TEXT( gtk_combo_box_text_new() );
|
||||
#define D_ITEM( x ) if ( x >= minrows && ( !maxrows || x <= maxrows ) ) gtk_combo_box_text_append_text( combo, # x )
|
||||
D_ITEM( 3 );
|
||||
D_ITEM( 5 );
|
||||
D_ITEM( 7 );
|
||||
@@ -1060,7 +1060,7 @@ void DoNewPatchDlg( EPatchPrefab prefab, int minrows, int mincols, int defrows,
|
||||
(GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ),
|
||||
(GtkAttachOptions) ( 0 ), 0, 0 );
|
||||
|
||||
height = combo;
|
||||
height = GTK_COMBO_BOX( combo );
|
||||
}
|
||||
|
||||
if( prefab != ePlane ){
|
||||
|
||||
Reference in New Issue
Block a user