From 4b765849b7725b2960624ffe87e05ed094415784 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Thu, 9 Jan 2003 18:42:32 +0000 Subject: changed workspace menu to FbTk Menu and removed iconmenu and rootmenu --- src/Toolbar.cc | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/Toolbar.cc b/src/Toolbar.cc index efa09a7..8e72f0f 100644 --- a/src/Toolbar.cc +++ b/src/Toolbar.cc @@ -22,15 +22,13 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Toolbar.cc,v 1.52 2003/01/07 02:07:43 fluxgen Exp $ +// $Id: Toolbar.cc,v 1.53 2003/01/09 18:42:32 fluxgen Exp $ #include "Toolbar.hh" #include "i18n.hh" #include "fluxbox.hh" #include "Clientmenu.hh" -#include "Iconmenu.hh" -#include "Rootmenu.hh" #include "Screen.hh" #include "Window.hh" #include "Workspace.hh" @@ -68,6 +66,10 @@ #endif // HAVE_SYS_TIME_H #endif // TIME_WITH_SYS_TIME +#ifdef SHAPE +#include +#endif // SHAPE + #include using namespace std; @@ -197,7 +199,7 @@ Toolbar::Toolbar(BScreen *scrn, size_t width): Toolbar::~Toolbar() { - + if (frame.base) image_ctrl.removeImage(frame.base); if (frame.label) image_ctrl.removeImage(frame.label); if (frame.wlabel) image_ctrl.removeImage(frame.wlabel); @@ -502,7 +504,6 @@ void Toolbar::reconfigure() { m_iconbar.reset(0); // destroy iconbar } - } @@ -756,7 +757,7 @@ void Toolbar::buttonPressEvent(XButtonEvent &be) { void Toolbar::buttonReleaseEvent(XButtonEvent &re) { if (re.button == 1) { if (re.window == frame.workspace_label) { - Basemenu *menu = screen()->getWorkspacemenu(); + FbTk::Menu *menu = screen()->getWorkspacemenu(); //move the workspace label and make it visible menu->move(re.x_root, re.y_root); // make sure the entire menu is visible (TODO: this is repeated by other menus, make a function!) @@ -983,8 +984,6 @@ void Toolbar::setPlacement(Toolbar::Placement where) { frame.x = head_x + head_w - frame.width - screen()->getBorderWidth2x(); frame.y = head_y; frame.x_hidden = frame.x; - frame.y_hidden = head_y + - screen()->getBevelWidth() - screen()->getBorderWidth() - frame.height; break; case BOTTOMRIGHT: -- cgit v0.11.2