From 9259ec5732851dd66f7c598d629e3808ac7ab3d8 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sun, 3 Nov 2002 14:29:34 +0000 Subject: new timer infrastructure. takes a function pointer for the timeout, with a void* parameter (useful for holding a class instance!) --- src/screen.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/screen.cc') diff --git a/src/screen.cc b/src/screen.cc index 7ac74c3c..f8b998e6 100644 --- a/src/screen.cc +++ b/src/screen.cc @@ -132,7 +132,8 @@ BScreen::BScreen(Blackbox *bb, unsigned int scrn) : ScreenInfo(scrn) { updateAvailableArea(); image_control = - new otk::BImageControl(this, True, blackbox->getColorsPerChannel(), + new otk::BImageControl(Openbox::instance->timerManager(), + this, True, blackbox->getColorsPerChannel(), blackbox->getCacheLife(), blackbox->getCacheMax()); image_control->installRootColormap(); root_colormap_installed = True; @@ -779,7 +780,7 @@ void BScreen::reconfigure(void) { bw->reconfigure(); } - image_control->timeout(); + otk::BImageControl::timeout(image_control); } -- cgit v1.2.3