From 2e3bd41f4e0e5d10c65888b277f944d75938fab8 Mon Sep 17 00:00:00 2001
From: rathnor <rathnor>
Date: Fri, 18 Jul 2003 15:44:36 +0000
Subject: add compiled-in defaults to output of fluxbox -info (thanks Matt
 Hope)

---
 ChangeLog   |  2 ++
 src/main.cc | 12 ++++++++++--
 2 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 1b72753..2b8c050 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,8 @@
 (Format: Year/Month/Day)
 Changes for 0.9.5:
 *03/07/19:
+   * Add compiled-in defaults to fluxbox -info (thanks Matt Hope)
+     main.cc
    * Redo ResourceManager so that it loads resources on registration, and
      only opens the database in blocks of requests    (Simon)
      - fixes initial loading of init resources (e.g. toolbar.layer)
diff --git a/src/main.cc b/src/main.cc
index e9fb414..7a82857 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -20,11 +20,12 @@
 // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
 // DEALINGS IN THE SOFTWARE.
 
-// $Id: main.cc,v 1.20 2003/07/11 15:03:02 fluxgen Exp $
+// $Id: main.cc,v 1.21 2003/07/18 15:44:36 rathnor Exp $
 
 #include "fluxbox.hh"
 #include "I18n.hh"
 #include "version.h"
+#include "defaults.hh"
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -55,8 +56,15 @@ void showInfo(ostream &ostr) {
 #endif
     ostr<<endl<<"Compiler version: "<<__VERSION__<<endl;    
 
+    ostr<<endl<<"Defaults:"<<endl;
+    ostr<<"    menu: "<<DEFAULTMENU<<endl;
+    ostr<<"   style: "<<DEFAULTSTYLE<<endl;
+ 
+    ostr<<"    keys: "<<DEFAULTKEYSFILE<<endl;
+    ostr<<"    init: "<<DEFAULT_INITFILE<<endl;
+
     const char NOT[] = "-";
-    ostr<<"Compiled options ("<<NOT<<" => disabled): "<<endl<<
+    ostr<<endl<<"Compiled options ("<<NOT<<" => disabled): "<<endl<<
 #ifndef DEBUG
         NOT<<
 #endif // DEBUG                
-- 
cgit v0.11.2