From c9c741c88da3cc5e74f0399c3c5c1f0e70163a7a Mon Sep 17 00:00:00 2001 From: Mathias Gumz Date: Sat, 18 Sep 2010 17:27:28 +0200 Subject: cosmetic --- src/fluxbox.cc | 22 ++++-- src/main.cc | 161 +++++++++++++++++++++++++++-------------- util/fluxbox-update_configs.cc | 2 +- 3 files changed, 121 insertions(+), 64 deletions(-) diff --git a/src/fluxbox.cc b/src/fluxbox.cc index 61b740a..78a482e 100644 --- a/src/fluxbox.cc +++ b/src/fluxbox.cc @@ -164,8 +164,14 @@ int handleXErrors(Display *d, XErrorEvent *e) { char errtxt[128]; XGetErrorText(d, e->error_code, errtxt, 128); - cerr<<"Fluxbox: X Error: "<error_code<<") opcodes "<< - (int)e->request_code<<"/"<<(int)e->minor_code<<" resource 0x"<resourceid<error_code << ") opcodes " + << (int)e->request_code + << "/" + << (int)e->minor_code + << " resource 0x" << hex <<(int)e->resourceid + << dec << endl; // if (e->error_code != 9 && e->error_code != 183) // kill(0, 2); } @@ -1156,7 +1162,7 @@ void Fluxbox::shutdown() { /// saves resources void Fluxbox::save_rc() { _FB_USES_NLS; - XrmDatabase new_blackboxrc = 0; + XrmDatabase new_rc = 0; string dbfile(getRcFilename()); @@ -1187,15 +1193,15 @@ void Fluxbox::save_rc() { workspaces_string += ','; } - XrmPutLineResource(&new_blackboxrc, workspaces_string.c_str()); + XrmPutLineResource(&new_rc, workspaces_string.c_str()); } - XrmDatabase old_blackboxrc = XrmGetFileDatabase(dbfile.c_str()); + XrmDatabase old_rc = XrmGetFileDatabase(dbfile.c_str()); - XrmMergeDatabases(new_blackboxrc, &old_blackboxrc); //merge database together - XrmPutFileDatabase(old_blackboxrc, dbfile.c_str()); - XrmDestroyDatabase(old_blackboxrc); + XrmMergeDatabases(new_rc, &old_rc); //merge database together + XrmPutFileDatabase(old_rc, dbfile.c_str()); + XrmDestroyDatabase(old_rc); fbdbg<<__FILE__<<"("<<__LINE__<<"): ------------ SAVING DONE"< 0) - ostr << _FB_CONSOLETEXT(Common, SvnRevision, "GIT Revision", "Revision number in GIT repositary") << ": " << gitrevision() << endl; + ostr << _FB_CONSOLETEXT(Common, SvnRevision, "GIT Revision", "Revision number in GIT repositary") + << ": " + << gitrevision() << endl; #if defined(__DATE__) && defined(__TIME__) - ostr<<_FB_CONSOLETEXT(Common, Compiled, "Compiled", "Time fluxbox was compiled")<<": "<<__DATE__<<" "<<__TIME__< "<< - _FB_CONSOLETEXT(Common, Disabled, "disabled", "option is turned off")<<"): "< " + << _FB_CONSOLETEXT(Common, Disabled, "disabled", "option is turned off") << "): " << endl + << /**** NOTE: This list is in alphabetical order! ****/ #ifndef HAVE_FRIBIDI - NOT<< + NOT << #endif - "BIDI"<