# HG changeset patch # User rubidium # Date 2009-11-04 15:49:27 # Node ID 13d0eec5635c3dba6a04c734ee503a3b8759aa27 # Parent 07491d20df025745ff9c3706cec1b5aff3cab1d3 (svn r17969) -Codechange: use the toolbar switch button lowered state as a way to tell which of the configurations it's showing diff --git a/src/toolbar_gui.cpp b/src/toolbar_gui.cpp --- a/src/toolbar_gui.cpp +++ b/src/toolbar_gui.cpp @@ -779,7 +779,7 @@ static void ToolbarSwitchClick(Window *w } SplitToolbar(w); - w->HandleButtonClick(TBN_SWITCHBAR); + w->SetWidgetLoweredState(TBN_SWITCHBAR, _toolbar_mode == TB_LOWER); w->SetDirty(); SndPlayFx(SND_15_BEEP); }