From 029e4e5dc7fccad2a7020d0f532e94ed50fb4dfa Mon Sep 17 00:00:00 2001 From: rathnor Date: Sun, 23 Mar 2003 01:33:31 +0000 Subject: Some fixes for when strftime isn't available --- src/Toolbar.cc | 4 ++-- src/fluxbox.cc | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Toolbar.cc b/src/Toolbar.cc index 1aa8764..70e7020 100644 --- a/src/Toolbar.cc +++ b/src/Toolbar.cc @@ -22,7 +22,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Toolbar.cc,v 1.65 2003/03/03 21:51:07 rathnor Exp $ +// $Id: Toolbar.cc,v 1.66 2003/03/23 01:33:31 rathnor Exp $ #include "Toolbar.hh" @@ -663,7 +663,7 @@ void Toolbar::checkClock(bool redraw, bool date) { char t[9]; if (date) { // format the date... with special consideration for y2k ;) - if (screen().getDateFormat() == Blackbox::B_EuropeanDate) { + if (screen().getDateFormat() == Fluxbox::B_EUROPEANDATE) { sprintf(t, i18n->getMessage( ToolbarSet, ToolbarNoStrftimeDateFormatEu, diff --git a/src/fluxbox.cc b/src/fluxbox.cc index 8c9ee65..f8762b1 100644 --- a/src/fluxbox.cc +++ b/src/fluxbox.cc @@ -22,7 +22,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: fluxbox.cc,v 1.104 2003/03/22 05:13:08 rathnor Exp $ +// $Id: fluxbox.cc,v 1.105 2003/03/23 01:33:31 rathnor Exp $ #include "fluxbox.hh" @@ -1760,7 +1760,7 @@ void Fluxbox::save_rc() { XrmPutLineResource(&new_blackboxrc, rc_string); #else // !HAVE_STRFTIME sprintf(rc_string, "session.screen%d.dateFormat: %s", screen_number, - ((screen->getDateFormat() == B_EuropeanDate) ? + ((screen->getDateFormat() == B_EUROPEANDATE) ? "European" : "American")); XrmPutLineResource(&new_blackboxrc, rc_string); @@ -2064,11 +2064,11 @@ void Fluxbox::load_rc(BScreen *screen) { if (XrmGetResource(*database, name_lookup, class_lookup, &value_type, &value)) { if (strncasecmp(value.addr, "european", value.size)) - screen->saveDateFormat(B_AmericanDate); + screen->saveDateFormat(B_AMERICANDATE); else - screen->saveDateFormat(B_EuropeanDate); + screen->saveDateFormat(B_EUROPEANDATE); } else - screen->saveDateFormat(B_AmericanDate); + screen->saveDateFormat(B_AMERICANDATE); sprintf(name_lookup, "session.screen%d.clockFormat", screen_number); sprintf(class_lookup, "Session.Screen%d.ClockFormat", screen_number); -- cgit v0.11.2