From fe69635c095341d59dd4f2868b13d0bfdf79f394 Mon Sep 17 00:00:00 2001 From: cagelight Date: Fri, 30 Mar 2018 20:35:54 -0500 Subject: [PATCH] fix struct/detail toggle toolbar icon --- radiant/mainframe.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/radiant/mainframe.cpp b/radiant/mainframe.cpp index 42a38779..46966051 100644 --- a/radiant/mainframe.cpp +++ b/radiant/mainframe.cpp @@ -5687,7 +5687,7 @@ void MainFrame::OnToggleDetail(){ Sys_Printf( "Structural Brush mode activated\n" ); 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 @@ -5696,7 +5696,7 @@ void MainFrame::OnToggleDetail(){ Sys_Printf( "Detail Brush mode activated\n" ); 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" ) ); }