aboutsummaryrefslogtreecommitdiff
path: root/src/IconButton.cc
diff options
context:
space:
mode:
authormarkt <markt>2007-04-04 18:06:54 (GMT)
committermarkt <markt>2007-04-04 18:06:54 (GMT)
commit9d7c562478b553c8f0f71acdfa93bda2f0a5ce5d (patch)
tree2d190d364de6b4a1546fb13b508d6d829a5b29fa /src/IconButton.cc
parentf7ddf99bfd0578bb1d45c71f10904b7781700332 (diff)
downloadfluxbox-9d7c562478b553c8f0f71acdfa93bda2f0a5ce5d.zip
fluxbox-9d7c562478b553c8f0f71acdfa93bda2f0a5ce5d.tar.bz2
moved some code from here to there
Diffstat (limited to 'src/IconButton.cc')
-rw-r--r--src/IconButton.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/IconButton.cc b/src/IconButton.cc
index e3aae47..b884fbb 100644
--- a/src/IconButton.cc
+++ b/src/IconButton.cc
@@ -24,6 +24,7 @@
24 24
25#include "IconButton.hh" 25#include "IconButton.hh"
26#include "IconbarTool.hh" 26#include "IconbarTool.hh"
27#include "IconbarTheme.hh"
27 28
28#include "Screen.hh" 29#include "Screen.hh"
29#include "Focusable.hh" 30#include "Focusable.hh"
@@ -46,13 +47,14 @@
46#endif // SHAPE 47#endif // SHAPE
47 48
48 49
49IconButton::IconButton(const FbTk::FbWindow &parent, FbTk::Font &font, 50IconButton::IconButton(const FbTk::FbWindow &parent, IconbarTheme &theme,
50 Focusable &win): 51 Focusable &win):
51 FbTk::TextButton(parent, font, win.title()), 52 FbTk::TextButton(parent, theme.focusedText().font(), win.title()),
52 m_win(win), 53 m_win(win),
53 m_icon_window(*this, 1, 1, 1, 1, 54 m_icon_window(*this, 1, 1, 1, 1,
54 ExposureMask | ButtonPressMask | ButtonReleaseMask), 55 ExposureMask | ButtonPressMask | ButtonReleaseMask),
55 m_use_pixmap(true) { 56 m_use_pixmap(true),
57 m_theme(theme) {
56 58
57 m_win.titleSig().attach(this); 59 m_win.titleSig().attach(this);
58 60