mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2024-11-10 07:11:54 +00:00
Clear Surface Property combobox on update
This commit is contained in:
parent
79605bbc69
commit
a1a5a423f2
1 changed files with 8 additions and 0 deletions
|
@ -723,12 +723,20 @@ void PatchDialog::GetPatchInfo(){
|
||||||
if ( m_Patch != NULL ) {
|
if ( m_Patch != NULL ) {
|
||||||
gchar buffer[11];
|
gchar buffer[11];
|
||||||
int i;
|
int i;
|
||||||
|
GtkListStore *store;
|
||||||
|
|
||||||
m_strName = m_Patch->pShader->getName();
|
m_strName = m_Patch->pShader->getName();
|
||||||
|
|
||||||
// fill in the numbers for Row / Col selection
|
// fill in the numbers for Row / Col selection
|
||||||
m_bListenChanged = false;
|
m_bListenChanged = false;
|
||||||
|
|
||||||
|
#if GTK_CHECK_VERSION( 3, 0, 0 )
|
||||||
|
gtk_combo_box_text_remove_all( GTK_COMBO_BOX_TEXT( m_pRowCombo ) );
|
||||||
|
#else
|
||||||
|
store = GTK_LIST_STORE( gtk_combo_box_get_model( GTK_COMBO_BOX( m_pRowCombo ) ) );
|
||||||
|
gtk_list_store_clear( store );
|
||||||
|
#endif
|
||||||
|
|
||||||
for ( i = 0; i < m_Patch->height; i++ )
|
for ( i = 0; i < m_Patch->height; i++ )
|
||||||
{
|
{
|
||||||
g_snprintf( buffer, sizeof( buffer ), "%i", i );
|
g_snprintf( buffer, sizeof( buffer ), "%i", i );
|
||||||
|
|
Loading…
Reference in a new issue