aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/Button.cc
diff options
context:
space:
mode:
authorMatteo Galiazzo <matteo@maltesenarrazioni.it>2008-05-05 12:05:52 (GMT)
committerMark Tiefenbruck <mark@fluxbox.org>2008-05-05 12:05:52 (GMT)
commit4a3be045b28edac4953be9f195640654f8b5a1a1 (patch)
tree4b2e6466b54a5fb4bb6406ff9cf38c420be032df /src/FbTk/Button.cc
parentba604ac821b7c1c89d10b0e8c9f85fde948856ef (diff)
downloadfluxbox-4a3be045b28edac4953be9f195640654f8b5a1a1.zip
fluxbox-4a3be045b28edac4953be9f195640654f8b5a1a1.tar.bz2
add tooltips for iconbar buttons when title is too long to fit
Diffstat (limited to 'src/FbTk/Button.cc')
-rw-r--r--src/FbTk/Button.cc14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/FbTk/Button.cc b/src/FbTk/Button.cc
index 0284fea..9edbe5c 100644
--- a/src/FbTk/Button.cc
+++ b/src/FbTk/Button.cc
@@ -30,7 +30,8 @@ namespace FbTk {
30Button::Button(int screen_num, int x, int y, 30Button::Button(int screen_num, int x, int y,
31 unsigned int width, unsigned int height): 31 unsigned int width, unsigned int height):
32 FbWindow(screen_num, x, y, width, height, 32 FbWindow(screen_num, x, y, width, height,
33 ExposureMask | ButtonPressMask | ButtonReleaseMask), 33 ExposureMask | ButtonPressMask | EnterWindowMask |
34 LeaveWindowMask | ButtonReleaseMask),
34 m_background_pm(0), 35 m_background_pm(0),
35 m_pressed_pm(0), 36 m_pressed_pm(0),
36 m_pressed_color(), 37 m_pressed_color(),
@@ -45,7 +46,8 @@ Button::Button(int screen_num, int x, int y,
45Button::Button(const FbWindow &parent, int x, int y, 46Button::Button(const FbWindow &parent, int x, int y,
46 unsigned int width, unsigned int height): 47 unsigned int width, unsigned int height):
47 FbWindow(parent, x, y, width, height, 48 FbWindow(parent, x, y, width, height,
48 ExposureMask | ButtonPressMask | ButtonReleaseMask), 49 ExposureMask | ButtonPressMask | ButtonReleaseMask |
50 EnterWindowMask | LeaveWindowMask),
49 m_background_pm(0), 51 m_background_pm(0),
50 m_pressed_pm(0), 52 m_pressed_pm(0),
51 m_pressed_color(), 53 m_pressed_color(),
@@ -90,6 +92,14 @@ void Button::setBackgroundPixmap(Pixmap pm) {
90 FbTk::FbWindow::setBackgroundPixmap(pm); 92 FbTk::FbWindow::setBackgroundPixmap(pm);
91} 93}
92 94
95
96void Button::enterNotifyEvent(XCrossingEvent &ce){
97
98}
99void Button::leaveNotifyEvent(XCrossingEvent &ce){
100
101}
102
93void Button::buttonPressEvent(XButtonEvent &event) { 103void Button::buttonPressEvent(XButtonEvent &event) {
94 bool update = false; 104 bool update = false;
95 if (m_pressed_pm != 0) { 105 if (m_pressed_pm != 0) {