comment typo and function spacing fix

This commit is contained in:
Dana Jansens 2002-04-20 18:13:55 +00:00
parent 0a3cfdfcb9
commit 874d0ea446

View file

@ -847,6 +847,7 @@ XFontSet BScreen::createFontSet(const char *fontname) {
return fs; return fs;
} }
void BScreen::setSloppyFocus(bool b) { void BScreen::setSloppyFocus(bool b) {
resource.sloppy_focus = b; resource.sloppy_focus = b;
ostrstream s; ostrstream s;
@ -858,6 +859,7 @@ void BScreen::setSloppyFocus(bool b) {
s.rdbuf()->freeze(0); s.rdbuf()->freeze(0);
} }
void BScreen::setAutoRaise(bool a) { void BScreen::setAutoRaise(bool a) {
resource.auto_raise = a; resource.auto_raise = a;
ostrstream s; ostrstream s;
@ -869,6 +871,7 @@ void BScreen::setAutoRaise(bool a) {
s.rdbuf()->freeze(0); s.rdbuf()->freeze(0);
} }
void BScreen::setImageDither(bool d) { void BScreen::setImageDither(bool d) {
resource.image_dither = d; resource.image_dither = d;
ostrstream s; ostrstream s;
@ -877,6 +880,7 @@ void BScreen::setImageDither(bool d) {
s.rdbuf()->freeze(0); s.rdbuf()->freeze(0);
} }
void BScreen::setOpaqueMove(bool o) { void BScreen::setOpaqueMove(bool o) {
resource.opaque_move = o; resource.opaque_move = o;
ostrstream s; ostrstream s;
@ -885,6 +889,7 @@ void BScreen::setOpaqueMove(bool o) {
s.rdbuf()->freeze(0); s.rdbuf()->freeze(0);
} }
void BScreen::setFullMax(bool f) { void BScreen::setFullMax(bool f) {
resource.full_max = f; resource.full_max = f;
ostrstream s; ostrstream s;
@ -893,6 +898,7 @@ void BScreen::setFullMax(bool f) {
s.rdbuf()->freeze(0); s.rdbuf()->freeze(0);
} }
void BScreen::setFocusNew(bool f) { void BScreen::setFocusNew(bool f) {
resource.focus_new = f; resource.focus_new = f;
ostrstream s; ostrstream s;
@ -901,6 +907,7 @@ void BScreen::setFocusNew(bool f) {
s.rdbuf()->freeze(0); s.rdbuf()->freeze(0);
} }
void BScreen::setFocusLast(bool f) { void BScreen::setFocusLast(bool f) {
resource.focus_last = f; resource.focus_last = f;
ostrstream s; ostrstream s;
@ -909,6 +916,7 @@ void BScreen::setFocusLast(bool f) {
s.rdbuf()->freeze(0); s.rdbuf()->freeze(0);
} }
void BScreen::setWindowZones(int z) { void BScreen::setWindowZones(int z) {
resource.zones = z; resource.zones = z;
ostrstream s; ostrstream s;
@ -917,6 +925,7 @@ void BScreen::setWindowZones(int z) {
s.rdbuf()->freeze(0); s.rdbuf()->freeze(0);
} }
void BScreen::setWorkspaceCount(int w) { void BScreen::setWorkspaceCount(int w) {
resource.workspaces = w; resource.workspaces = w;
ostrstream s; ostrstream s;
@ -925,6 +934,7 @@ void BScreen::setWorkspaceCount(int w) {
s.rdbuf()->freeze(0); s.rdbuf()->freeze(0);
} }
void BScreen::setPlacementPolicy(int p) { void BScreen::setPlacementPolicy(int p) {
resource.placement_policy = p; resource.placement_policy = p;
ostrstream s; ostrstream s;
@ -941,6 +951,7 @@ void BScreen::setPlacementPolicy(int p) {
s.rdbuf()->freeze(0); s.rdbuf()->freeze(0);
} }
void BScreen::setEdgeSnapThreshold(int t) { void BScreen::setEdgeSnapThreshold(int t) {
resource.edge_snap_threshold = t; resource.edge_snap_threshold = t;
ostrstream s; ostrstream s;
@ -949,6 +960,7 @@ void BScreen::setEdgeSnapThreshold(int t) {
s.rdbuf()->freeze(0); s.rdbuf()->freeze(0);
} }
void BScreen::setRowPlacementDirection(int d) { void BScreen::setRowPlacementDirection(int d) {
resource.row_direction = d; resource.row_direction = d;
ostrstream s; ostrstream s;
@ -960,6 +972,7 @@ void BScreen::setRowPlacementDirection(int d) {
s.rdbuf()->freeze(0); s.rdbuf()->freeze(0);
} }
void BScreen::setColPlacementDirection(int d) { void BScreen::setColPlacementDirection(int d) {
resource.col_direction = d; resource.col_direction = d;
ostrstream s; ostrstream s;
@ -971,6 +984,7 @@ void BScreen::setColPlacementDirection(int d) {
s.rdbuf()->freeze(0); s.rdbuf()->freeze(0);
} }
void BScreen::setRootCommand(const char *cmd) { void BScreen::setRootCommand(const char *cmd) {
if (resource.root_command != NULL) if (resource.root_command != NULL)
delete [] resource.root_command; delete [] resource.root_command;
@ -980,8 +994,10 @@ if (resource.root_command != NULL)
resource.root_command = NULL; resource.root_command = NULL;
// this doesn't save to the Resources config because it can't be changed // this doesn't save to the Resources config because it can't be changed
// inside Openbox, and this way we dont add an empty command which would over- // inside Openbox, and this way we dont add an empty command which would over-
// ride the styles commend when none has been specified // ride the styles command when none has been specified
} }
#ifdef HAVE_STRFTIME #ifdef HAVE_STRFTIME
void BScreen::setStrftimeFormat(const char *f) { void BScreen::setStrftimeFormat(const char *f) {
if (resource.strftime_format != NULL) if (resource.strftime_format != NULL)