From d844c4c1cab9c9fcdf1dec9cafb0e44e173b6a72 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Sun, 12 Jan 2003 20:31:54 +0000 Subject: fixed button gc --- src/FbWinFrame.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/FbWinFrame.cc b/src/FbWinFrame.cc index 200c0bd..5c284ec 100644 --- a/src/FbWinFrame.cc +++ b/src/FbWinFrame.cc @@ -19,7 +19,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: FbWinFrame.cc,v 1.4 2003/01/09 22:01:30 fluxgen Exp $ +// $Id: FbWinFrame.cc,v 1.5 2003/01/12 20:31:54 fluxgen Exp $ #include "FbWinFrame.hh" #include "ImageControl.hh" @@ -681,11 +681,13 @@ void FbWinFrame::setupButton(FbTk::Button &btn) { //TODO button pressed color if (m_focused) { + btn.setGC(m_theme.labelTextFocusGC()); if (m_button_pm) btn.setBackgroundPixmap(m_button_pm); else btn.setBackgroundColor(m_button_color); } else { + btn.setGC(m_theme.labelTextUnfocusGC()); if (m_button_unfocused_pm) btn.setBackgroundPixmap(m_button_unfocused_pm); else -- cgit v0.11.2