aboutsummaryrefslogtreecommitdiff
path: root/src/fluxbox.cc
diff options
context:
space:
mode:
authorpekdon <pekdon>2002-01-06 09:37:50 (GMT)
committerpekdon <pekdon>2002-01-06 09:37:50 (GMT)
commitedb664f92912d5fed2c6f12489741de5ad6aa4e2 (patch)
tree3566b54a02b1ee20390f3616b48e743dfd1ba11a /src/fluxbox.cc
parent69ebd4b8dca1acd5eb4bf18d668a706e9418bd2e (diff)
downloadfluxbox_pavel-edb664f92912d5fed2c6f12489741de5ad6aa4e2.zip
fluxbox_pavel-edb664f92912d5fed2c6f12489741de5ad6aa4e2.tar.bz2
Changed toolbar placement enums to uppercase letters. (Claes N�st�n)
Diffstat (limited to 'src/fluxbox.cc')
-rw-r--r--src/fluxbox.cc26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/fluxbox.cc b/src/fluxbox.cc
index 4394fbc..f9c3b6d 100644
--- a/src/fluxbox.cc
+++ b/src/fluxbox.cc
@@ -1584,12 +1584,12 @@ void Fluxbox::save_rc(void) {
1584 char *toolbar_placement = (char *) 0; 1584 char *toolbar_placement = (char *) 0;
1585 1585
1586 switch (screen->getToolbarPlacement()) { 1586 switch (screen->getToolbarPlacement()) {
1587 case Toolbar::TopLeft: toolbar_placement = "TopLeft"; break; 1587 case Toolbar::TOPLEFT: toolbar_placement = "TopLeft"; break;
1588 case Toolbar::BottomLeft: toolbar_placement = "BottomLeft"; break; 1588 case Toolbar::BOTTOMLEFT: toolbar_placement = "BottomLeft"; break;
1589 case Toolbar::TopCenter: toolbar_placement = "TopCenter"; break; 1589 case Toolbar::TOPCENTER: toolbar_placement = "TopCenter"; break;
1590 case Toolbar::TopRight: toolbar_placement = "TopRight"; break; 1590 case Toolbar::TOPRIGHT: toolbar_placement = "TopRight"; break;
1591 case Toolbar::BottomRight: toolbar_placement = "BottomRight"; break; 1591 case Toolbar::BOTTOMRIGHT: toolbar_placement = "BottomRight"; break;
1592 case Toolbar::BottomCenter: default: 1592 case Toolbar::BOTTOMCENTER: default:
1593 toolbar_placement = "BottomCenter"; break; 1593 toolbar_placement = "BottomCenter"; break;
1594 } 1594 }
1595 1595
@@ -2038,19 +2038,19 @@ void Fluxbox::load_rc(BScreen *screen) {
2038 if (XrmGetResource(database, name_lookup, class_lookup, &value_type, 2038 if (XrmGetResource(database, name_lookup, class_lookup, &value_type,
2039 &value)) { 2039 &value)) {
2040 if (! strncasecmp(value.addr, "TopLeft", value.size)) 2040 if (! strncasecmp(value.addr, "TopLeft", value.size))
2041 screen->saveToolbarPlacement(Toolbar::TopLeft); 2041 screen->saveToolbarPlacement(Toolbar::TOPLEFT);
2042 else if (! strncasecmp(value.addr, "BottomLeft", value.size)) 2042 else if (! strncasecmp(value.addr, "BottomLeft", value.size))
2043 screen->saveToolbarPlacement(Toolbar::BottomLeft); 2043 screen->saveToolbarPlacement(Toolbar::BOTTOMLEFT);
2044 else if (! strncasecmp(value.addr, "TopCenter", value.size)) 2044 else if (! strncasecmp(value.addr, "TopCenter", value.size))
2045 screen->saveToolbarPlacement(Toolbar::TopCenter); 2045 screen->saveToolbarPlacement(Toolbar::TOPCENTER);
2046 else if (! strncasecmp(value.addr, "TopRight", value.size)) 2046 else if (! strncasecmp(value.addr, "TopRight", value.size))
2047 screen->saveToolbarPlacement(Toolbar::TopRight); 2047 screen->saveToolbarPlacement(Toolbar::TOPRIGHT);
2048 else if (! strncasecmp(value.addr, "BottomRight", value.size)) 2048 else if (! strncasecmp(value.addr, "BottomRight", value.size))
2049 screen->saveToolbarPlacement(Toolbar::BottomRight); 2049 screen->saveToolbarPlacement(Toolbar::BOTTOMRIGHT);
2050 else 2050 else
2051 screen->saveToolbarPlacement(Toolbar::BottomCenter); 2051 screen->saveToolbarPlacement(Toolbar::BOTTOMCENTER);
2052 } else 2052 } else
2053 screen->saveToolbarPlacement(Toolbar::BottomCenter); 2053 screen->saveToolbarPlacement(Toolbar::BOTTOMCENTER);
2054 2054
2055 screen->removeWorkspaceNames(); 2055 screen->removeWorkspaceNames();
2056 2056