diff options
Diffstat (limited to 'src/Screen.cc')
-rw-r--r-- | src/Screen.cc | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/src/Screen.cc b/src/Screen.cc index 86a3cee..79d627e 100644 --- a/src/Screen.cc +++ b/src/Screen.cc | |||
@@ -22,7 +22,7 @@ | |||
22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
23 | // DEALINGS IN THE SOFTWARE. | 23 | // DEALINGS IN THE SOFTWARE. |
24 | 24 | ||
25 | // $Id: Screen.cc,v 1.43 2002/04/04 14:28:54 fluxgen Exp $ | 25 | // $Id: Screen.cc,v 1.44 2002/04/08 22:26:25 fluxgen Exp $ |
26 | 26 | ||
27 | //use GNU extensions | 27 | //use GNU extensions |
28 | #ifndef _GNU_SOURCE | 28 | #ifndef _GNU_SOURCE |
@@ -596,7 +596,7 @@ void BScreen::reconfigure(void) { | |||
596 | iconmenu->reconfigure(); | 596 | iconmenu->reconfigure(); |
597 | 597 | ||
598 | { | 598 | { |
599 | int remember_sub = rootmenu->getCurrentSubmenu(); | 599 | int remember_sub = rootmenu->currentSubmenu(); |
600 | initMenu(); | 600 | initMenu(); |
601 | raiseWindows(0, 0); | 601 | raiseWindows(0, 0); |
602 | rootmenu->reconfigure(); | 602 | rootmenu->reconfigure(); |
@@ -984,48 +984,48 @@ void BScreen::raiseWindows(Window *workspace_stack, int num) { | |||
984 | 984 | ||
985 | Window session_stack[(num + workspacesList.size() + rootmenuList.size() + 30)]; | 985 | Window session_stack[(num + workspacesList.size() + rootmenuList.size() + 30)]; |
986 | int i = 0; | 986 | int i = 0; |
987 | XRaiseWindow(getBaseDisplay()->getXDisplay(), iconmenu->getWindowID()); | 987 | XRaiseWindow(getBaseDisplay()->getXDisplay(), iconmenu->windowID()); |
988 | session_stack[i++] = iconmenu->getWindowID(); | 988 | session_stack[i++] = iconmenu->windowID(); |
989 | 989 | ||
990 | Workspaces::iterator wit = workspacesList.begin(); | 990 | Workspaces::iterator wit = workspacesList.begin(); |
991 | Workspaces::iterator wit_end = workspacesList.end(); | 991 | Workspaces::iterator wit_end = workspacesList.end(); |
992 | for (; wit != wit_end; ++wit) { | 992 | for (; wit != wit_end; ++wit) { |
993 | session_stack[i++] = (*wit)->getMenu()->getWindowID(); | 993 | session_stack[i++] = (*wit)->getMenu()->windowID(); |
994 | } | 994 | } |
995 | 995 | ||
996 | session_stack[i++] = workspacemenu->getWindowID(); | 996 | session_stack[i++] = workspacemenu->windowID(); |
997 | 997 | ||
998 | session_stack[i++] = configmenu->getFocusmenu()->getWindowID(); | 998 | session_stack[i++] = configmenu->getFocusmenu()->windowID(); |
999 | session_stack[i++] = configmenu->getPlacementmenu()->getWindowID(); | 999 | session_stack[i++] = configmenu->getPlacementmenu()->windowID(); |
1000 | session_stack[i++] = configmenu->getTabmenu()->getWindowID(); | 1000 | session_stack[i++] = configmenu->getTabmenu()->windowID(); |
1001 | session_stack[i++] = configmenu->getWindowID(); | 1001 | session_stack[i++] = configmenu->windowID(); |
1002 | 1002 | ||
1003 | #ifdef SLIT | 1003 | #ifdef SLIT |
1004 | session_stack[i++] = slit->getMenu().getDirectionmenu()->getWindowID(); | 1004 | session_stack[i++] = slit->getMenu().getDirectionmenu()->windowID(); |
1005 | session_stack[i++] = slit->getMenu().getPlacementmenu()->getWindowID(); | 1005 | session_stack[i++] = slit->getMenu().getPlacementmenu()->windowID(); |
1006 | #ifdef XINERAMA | 1006 | #ifdef XINERAMA |
1007 | if (hasXinerama()) { | 1007 | if (hasXinerama()) { |
1008 | session_stack[i++] = slit->getMenu().getHeadmenu()->getWindowID(); | 1008 | session_stack[i++] = slit->getMenu().getHeadmenu()->windowID(); |
1009 | } | 1009 | } |
1010 | #endif // XINERAMA | 1010 | #endif // XINERAMA |
1011 | session_stack[i++] = slit->getMenu().getWindowID(); | 1011 | session_stack[i++] = slit->getMenu().windowID(); |
1012 | #endif // SLIT | 1012 | #endif // SLIT |
1013 | 1013 | ||
1014 | session_stack[i++] = | 1014 | session_stack[i++] = |
1015 | toolbar->getMenu()->getPlacementmenu()->getWindowID(); | 1015 | toolbar->getMenu()->getPlacementmenu()->windowID(); |
1016 | #ifdef XINERAMA | 1016 | #ifdef XINERAMA |
1017 | if (hasXinerama()) { | 1017 | if (hasXinerama()) { |
1018 | session_stack[i++] = toolbar->getMenu()->getHeadmenu()->getWindowID(); | 1018 | session_stack[i++] = toolbar->getMenu()->getHeadmenu()->windowID(); |
1019 | } | 1019 | } |
1020 | #endif // XINERAMA | 1020 | #endif // XINERAMA |
1021 | session_stack[i++] = toolbar->getMenu()->getWindowID(); | 1021 | session_stack[i++] = toolbar->getMenu()->windowID(); |
1022 | 1022 | ||
1023 | Rootmenus::iterator rit = rootmenuList.begin(); | 1023 | Rootmenus::iterator rit = rootmenuList.begin(); |
1024 | Rootmenus::iterator rit_end = rootmenuList.end(); | 1024 | Rootmenus::iterator rit_end = rootmenuList.end(); |
1025 | for (; rit != rit_end; ++rit) { | 1025 | for (; rit != rit_end; ++rit) { |
1026 | session_stack[i++] = (*rit)->getWindowID(); | 1026 | session_stack[i++] = (*rit)->windowID(); |
1027 | } | 1027 | } |
1028 | session_stack[i++] = rootmenu->getWindowID(); | 1028 | session_stack[i++] = rootmenu->windowID(); |
1029 | 1029 | ||
1030 | if (toolbar->isOnTop()) | 1030 | if (toolbar->isOnTop()) |
1031 | session_stack[i++] = toolbar->getWindowID(); | 1031 | session_stack[i++] = toolbar->getWindowID(); |
@@ -1176,7 +1176,7 @@ void BScreen::raiseFocus(void) { | |||
1176 | 1176 | ||
1177 | if (fluxbox->getFocusedWindow()) | 1177 | if (fluxbox->getFocusedWindow()) |
1178 | if (fluxbox->getFocusedWindow()->getScreen()->getScreenNumber() == | 1178 | if (fluxbox->getFocusedWindow()->getScreen()->getScreenNumber() == |
1179 | getScreenNumber()) { | 1179 | getScreenNumber()) { |
1180 | have_focused = true; | 1180 | have_focused = true; |
1181 | focused_window_number = fluxbox->getFocusedWindow()->getWindowNumber(); | 1181 | focused_window_number = fluxbox->getFocusedWindow()->getWindowNumber(); |
1182 | } | 1182 | } |
@@ -1192,12 +1192,12 @@ void BScreen::initMenu(void) { | |||
1192 | if (rootmenu) { | 1192 | if (rootmenu) { |
1193 | rootmenuList.erase(rootmenuList.begin(), rootmenuList.end()); | 1193 | rootmenuList.erase(rootmenuList.begin(), rootmenuList.end()); |
1194 | 1194 | ||
1195 | while (rootmenu->getCount()) | 1195 | while (rootmenu->numberOfItems()) |
1196 | rootmenu->remove(0); | 1196 | rootmenu->remove(0); |
1197 | } else | 1197 | } else |
1198 | rootmenu = new Rootmenu(this); | 1198 | rootmenu = new Rootmenu(this); |
1199 | 1199 | ||
1200 | Bool defaultMenu = true; | 1200 | bool defaultMenu = true; |
1201 | 1201 | ||
1202 | if (fluxbox->getMenuFilename()) { | 1202 | if (fluxbox->getMenuFilename()) { |
1203 | ifstream menu_file(fluxbox->getMenuFilename()); | 1203 | ifstream menu_file(fluxbox->getMenuFilename()); |
@@ -1290,7 +1290,7 @@ Bool BScreen::parseMenuFile(ifstream &file, Rootmenu *menu, int &row) { | |||
1290 | 1290 | ||
1291 | I18n *i18n = I18n::instance(); | 1291 | I18n *i18n = I18n::instance(); |
1292 | if (str_key == "end") { | 1292 | if (str_key == "end") { |
1293 | return ((menu->getCount() == 0) ? true : false); | 1293 | return ((menu->numberOfItems() == 0) ? true : false); |
1294 | } else if (str_key == "nop") { | 1294 | } else if (str_key == "nop") { |
1295 | menu->insert(str_label.c_str()); | 1295 | menu->insert(str_label.c_str()); |
1296 | } else if (str_key == "exec") { // exec | 1296 | } else if (str_key == "exec") { // exec |
@@ -1469,7 +1469,7 @@ Bool BScreen::parseMenuFile(ifstream &file, Rootmenu *menu, int &row) { | |||
1469 | } | 1469 | } |
1470 | } | 1470 | } |
1471 | 1471 | ||
1472 | return ((menu->getCount() == 0) ? true : false); | 1472 | return ((menu->numberOfItems() == 0) ? true : false); |
1473 | } | 1473 | } |
1474 | 1474 | ||
1475 | void BScreen::createStyleMenu(Rootmenu *menu, bool newmenu, const char *label, const char *directory) { | 1475 | void BScreen::createStyleMenu(Rootmenu *menu, bool newmenu, const char *label, const char *directory) { |