work when strftime is not found
authorDana Jansens <danakj@orodu.net>
Mon, 9 Dec 2002 07:50:22 +0000 (07:50 +0000)
committerDana Jansens <danakj@orodu.net>
Mon, 9 Dec 2002 07:50:22 +0000 (07:50 +0000)
CHANGELOG
src/Screen.cc
src/Toolbar.cc

index 4b10847b910481b61c09f6be529697b8cd829372..8066337dd9e3e7e3e7f2d5d51d8684a77ab453da 100644 (file)
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,5 +1,9 @@
 Changelog for Openbox:
 
+2.2.3:
+ * Fix compile errors when the strftime funtion is not  (Ben Jansens)
+   found on the system.
+
 2.2.2:
  * Add an option to disable the window raise on        (Scott Moynes)
    mouse clicks with the modifierMask.
index 6e0c06cf4d10abb55e4abf9baa347a3fd0b2cd24..1f2c61529afcf51460a54e69cc576c36b4d7e1d2 100644 (file)
@@ -563,7 +563,7 @@ void BScreen::saveStrftimeFormat(const std::string& format) {
 void BScreen::saveDateFormat(int f) {
   resource.date_format = f;
   config->setValue(screenstr + "dateFormat",
-                   resource.date_format == B_EuropeanDate ?
+                   resource.date_format == Blackbox::B_EuropeanDate ?
                    "European" : "American");
 }
 
@@ -681,7 +681,7 @@ void BScreen::save_rc(void) {
   saveStrftimeFormat(resource.strftime_format); 
 #else // !HAVE_STRFTIME
   saveDateFormat(resource.date_format);
-  savwClock24Hour(resource.clock24hour);
+  saveClock24Hour(resource.clock24hour);
 #endif // HAVE_STRFTIME
   savePlaceIgnoreShaded(resource.ignore_shaded);
   savePlaceIgnoreMaximized(resource.ignore_maximized);
@@ -838,9 +838,9 @@ void BScreen::load_rc(void) {
   long l;
 
   if (config->getValue(screenstr + "dateFormat", s) && s == "European")
-    resource.date_format = B_EuropeanDate;
+    resource.date_format = Blackbox::B_EuropeanDate;
  else
-    resource.date_format = B_AmericanDate;
+    resource.date_format = Blackbox::B_AmericanDate;
 
   if (! config->getValue(screenstr + "clockFormat", l))
     l = 12;
index 587d3fd430269c444c93dc39010347368c4fdb75..14d347efba9d7a048e98582651690972a832096e 100644 (file)
@@ -552,7 +552,7 @@ void Toolbar::checkClock(bool redraw, bool date) {
     if (date) {
       // format the date... with special consideration for y2k ;)
       if (screen->getDateFormat() == Blackbox::B_EuropeanDate)
-        sprintf(t, 18n(ToolbarSet, ToolbarNoStrftimeDateFormatEu,
+        sprintf(t, i18n(ToolbarSet, ToolbarNoStrftimeDateFormatEu,
                        "%02d.%02d.%02d"),
                 tt->tm_mday, tt->tm_mon + 1,
                 (tt->tm_year >= 100) ? tt->tm_year - 100 : tt->tm_year);