aboutsummaryrefslogtreecommitdiff
path: root/src/FbWinFrame.cc
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2003-01-12 20:31:54 (GMT)
committerfluxgen <fluxgen>2003-01-12 20:31:54 (GMT)
commitd844c4c1cab9c9fcdf1dec9cafb0e44e173b6a72 (patch)
tree890f8adf3d0da79585d192243b0a55bcb632a7bb /src/FbWinFrame.cc
parent3995c489fbbf1003101d35ec219115663a63da33 (diff)
downloadfluxbox-d844c4c1cab9c9fcdf1dec9cafb0e44e173b6a72.zip
fluxbox-d844c4c1cab9c9fcdf1dec9cafb0e44e173b6a72.tar.bz2
fixed button gc
Diffstat (limited to 'src/FbWinFrame.cc')
-rw-r--r--src/FbWinFrame.cc4
1 files changed, 3 insertions, 1 deletions
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 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: FbWinFrame.cc,v 1.4 2003/01/09 22:01:30 fluxgen Exp $ 22// $Id: FbWinFrame.cc,v 1.5 2003/01/12 20:31:54 fluxgen Exp $
23 23
24#include "FbWinFrame.hh" 24#include "FbWinFrame.hh"
25#include "ImageControl.hh" 25#include "ImageControl.hh"
@@ -681,11 +681,13 @@ void FbWinFrame::setupButton(FbTk::Button &btn) {
681 //TODO button pressed color 681 //TODO button pressed color
682 682
683 if (m_focused) { 683 if (m_focused) {
684 btn.setGC(m_theme.labelTextFocusGC());
684 if (m_button_pm) 685 if (m_button_pm)
685 btn.setBackgroundPixmap(m_button_pm); 686 btn.setBackgroundPixmap(m_button_pm);
686 else 687 else
687 btn.setBackgroundColor(m_button_color); 688 btn.setBackgroundColor(m_button_color);
688 } else { 689 } else {
690 btn.setGC(m_theme.labelTextUnfocusGC());
689 if (m_button_unfocused_pm) 691 if (m_button_unfocused_pm)
690 btn.setBackgroundPixmap(m_button_unfocused_pm); 692 btn.setBackgroundPixmap(m_button_unfocused_pm);
691 else 693 else