diff --git a/src/apps/deskbar/BarMenuTitle.cpp b/src/apps/deskbar/BarMenuTitle.cpp
index df8b0d2..84c2d91 100644
a
|
b
|
Except as contained in this notice, the name of Be Incorporated shall not be
|
26 | 26 | used in advertising or otherwise to promote the sale, use or other dealings in |
27 | 27 | this Software without prior written authorization from Be Incorporated. |
28 | 28 | |
29 | | Tracker(TM), Be(R), BeOS(R), and BeIA(TM) are trademarks or registered trademarks |
30 | | of Be Incorporated in the United States and other countries. Other brand product |
31 | | names are registered trademarks or trademarks of their respective holders. |
| 29 | Tracker(TM), Be(R), BeOS(R), and BeIA(TM) are trademarks or registered |
| 30 | trademarks of Be Incorporated in the United States and other countries. Other |
| 31 | brand product names are registered trademarks or trademarks of their respective |
| 32 | holders. |
32 | 33 | All rights reserved. |
33 | 34 | */ |
34 | 35 | |
… |
… |
TBarMenuTitle::DrawContent()
|
116 | 117 | |
117 | 118 | if (be_control_look != NULL) { |
118 | 119 | menu->SetDrawingMode(B_OP_ALPHA); |
119 | | |
| 120 | |
120 | 121 | if (fIcon != NULL) { |
121 | 122 | BRect dstRect(fIcon->Bounds()); |
122 | 123 | dstRect.OffsetTo(frame.LeftTop()); |
123 | 124 | dstRect.OffsetBy(rintf(((frame.Width() - dstRect.Width()) / 2) |
124 | 125 | - 1.0f), rintf(((frame.Height() - dstRect.Height()) / 2) |
125 | 126 | - 0.0f)); |
126 | | |
| 127 | |
127 | 128 | menu->DrawBitmapAsync(fIcon, dstRect); |
128 | 129 | } |
129 | 130 | return; |
… |
… |
TBarMenuTitle::Invoke(BMessage* message)
|
200 | 201 | BLooper* looper = barview->Looper(); |
201 | 202 | if (looper->Lock()) { |
202 | 203 | // tell barview to add the refs to the be menu |
203 | | barview->HandleBeMenu(NULL); |
| 204 | barview->HandleBeMenu(NULL); |
204 | 205 | looper->Unlock(); |
205 | 206 | } |
206 | 207 | } |
207 | | |
| 208 | |
208 | 209 | return BMenuItem::Invoke(message); |
209 | 210 | } |
210 | 211 | |