Merge pull request #624 from cagelight/structuraldetailbuttonfix

fix struct/detail toggle toolbar icon
This commit is contained in:
Timothee "TTimo" Besset 2018-04-29 15:50:55 -05:00 committed by GitHub
commit 44edaa14a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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" ) );
} }