fix struct/detail toggle toolbar icon

This commit is contained in:
cagelight 2018-03-30 20:35:54 -05:00
parent 61bb386826
commit fe69635c09

View file

@ -5687,7 +5687,7 @@ void MainFrame::OnToggleDetail(){
Sys_Printf( "Structural Brush mode activated\n" ); Sys_Printf( "Structural Brush mode activated\n" );
gtk_toggle_tool_button_set_active( GTK_TOGGLE_TOOL_BUTTON( w ), FALSE ); gtk_toggle_tool_button_set_active( GTK_TOGGLE_TOOL_BUTTON( w ), FALSE );
gtk_button_set_image( GTK_BUTTON( w ),new_image_icon( "toggle_struct.png" ) ); gtk_tool_button_set_icon_widget( GTK_TOOL_BUTTON( w ), new_image_icon( "toggle_struct.png" ) );
} }
else else
@ -5696,7 +5696,7 @@ void MainFrame::OnToggleDetail(){
Sys_Printf( "Detail Brush mode activated\n" ); Sys_Printf( "Detail Brush mode activated\n" );
gtk_toggle_tool_button_set_active( GTK_TOGGLE_TOOL_BUTTON( w ), TRUE ); gtk_toggle_tool_button_set_active( GTK_TOGGLE_TOOL_BUTTON( w ), TRUE );
gtk_button_set_image( GTK_BUTTON( w ), new_image_icon( "toggle_detail.png" ) ); gtk_tool_button_set_icon_widget( GTK_TOOL_BUTTON( w ), new_image_icon( "toggle_detail.png" ) );
} }