From 975cff79916d141578afcec54883c0a85dc2eaa0 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Fri, 11 Jan 2002 09:54:46 +0000 Subject: fixed enums --- src/Windowmenu.cc | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/src/Windowmenu.cc b/src/Windowmenu.cc index e154ea6..c776981 100644 --- a/src/Windowmenu.cc +++ b/src/Windowmenu.cc @@ -79,7 +79,7 @@ Windowmenu::Windowmenu(FluxboxWindow *win) : Basemenu(win->getScreen()) { 0, 0, #endif // NLS "Shade"), - BScreen::WindowShade); + BScreen::WINDOWSHADE); insert(i18n->getMessage( #ifdef NLS WindowmenuSet, WindowmenuIconify, @@ -87,7 +87,7 @@ Windowmenu::Windowmenu(FluxboxWindow *win) : Basemenu(win->getScreen()) { 0, 0, #endif // NLS "Iconify"), - BScreen::WindowIconify); + BScreen::WINDOWICONIFY); insert(i18n->getMessage( #ifdef NLS WindowmenuSet, WindowmenuMaximize, @@ -95,7 +95,7 @@ Windowmenu::Windowmenu(FluxboxWindow *win) : Basemenu(win->getScreen()) { 0, 0, #endif // NLS "Maximize"), - BScreen::WindowMaximize); + BScreen::WINDOWMAXIMIZE); insert(i18n->getMessage( #ifdef NLS WindowmenuSet, WindowmenuRaise, @@ -103,7 +103,7 @@ Windowmenu::Windowmenu(FluxboxWindow *win) : Basemenu(win->getScreen()) { 0, 0, #endif // NLS "Raise"), - BScreen::WindowRaise); + BScreen::WINDOWRAISE); insert(i18n->getMessage( #ifdef NLS WindowmenuSet, WindowmenuLower, @@ -111,7 +111,7 @@ Windowmenu::Windowmenu(FluxboxWindow *win) : Basemenu(win->getScreen()) { 0, 0, #endif // NLS "Lower"), - BScreen::WindowLower); + BScreen::WINDOWLOWER); insert(i18n->getMessage( #ifdef NLS WindowmenuSet, WindowmenuStick, @@ -119,7 +119,7 @@ Windowmenu::Windowmenu(FluxboxWindow *win) : Basemenu(win->getScreen()) { 0, 0, #endif // NLS "Stick"), - BScreen::WindowStick); + BScreen::WINDOWSTICK); insert(i18n->getMessage( #ifdef NLS WindowmenuSet, WindowmenuKillClient, @@ -127,7 +127,7 @@ Windowmenu::Windowmenu(FluxboxWindow *win) : Basemenu(win->getScreen()) { 0, 0, #endif // NLS "Kill Client"), - BScreen::WindowKill); + BScreen::WINDOWKILL); insert(i18n->getMessage( #ifdef NLS WindowmenuSet, WindowmenuClose, @@ -135,7 +135,7 @@ Windowmenu::Windowmenu(FluxboxWindow *win) : Basemenu(win->getScreen()) { 0, 0, #endif // NLS "Close"), - BScreen::WindowClose); + BScreen::WINDOWCLOSE); insert(i18n->getMessage( #ifdef NLS WindowmenuSet, WindowmenuTab, @@ -143,7 +143,7 @@ Windowmenu::Windowmenu(FluxboxWindow *win) : Basemenu(win->getScreen()) { 0, 0, #endif // NLS "Tab"), - BScreen::WindowTab); + BScreen::WINDOWTAB); update(); @@ -175,7 +175,7 @@ void Windowmenu::itemSelected(int button, int index) { BasemenuItem *item = find(index); switch (item->function()) { - case BScreen::WindowShade: + case BScreen::WINDOWSHADE: hide(); window->shade(); @@ -183,42 +183,42 @@ void Windowmenu::itemSelected(int button, int index) { window->getTab()->shade(); break; - case BScreen::WindowIconify: + case BScreen::WINDOWICONIFY: hide(); window->iconify(); break; - case BScreen::WindowMaximize: + case BScreen::WINDOWMAXIMIZE: hide(); window->maximize((unsigned int) button); break; - case BScreen::WindowClose: + case BScreen::WINDOWCLOSE: hide(); window->close(); break; - case BScreen::WindowRaise: + case BScreen::WINDOWRAISE: hide(); screen->getWorkspace(window->getWorkspaceNumber())->raiseWindow(window); break; - case BScreen::WindowLower: + case BScreen::WINDOWLOWER: hide(); screen->getWorkspace(window->getWorkspaceNumber())->lowerWindow(window); break; - case BScreen::WindowStick: + case BScreen::WINDOWSTICK: hide(); window->stick(); break; - case BScreen::WindowKill: + case BScreen::WINDOWKILL: hide(); XKillClient(screen->getBaseDisplay()->getXDisplay(), window->getClientWindow()); break; - case BScreen::WindowTab: + case BScreen::WINDOWTAB: hide(); window->setTab(!window->hasTab()); break; -- cgit v0.11.2