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/window.hh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/window.hh') diff --git a/src/window.hh b/src/window.hh index c8ccc341..29818b43 100644 --- a/src/window.hh +++ b/src/window.hh @@ -12,8 +12,8 @@ extern "C" { #include +#include "otk/timer.hh" #include "blackbox.hh" -#include "timer.hh" #include "util.hh" #define MwmHintsFunctions (1l << 0) @@ -70,7 +70,7 @@ public: }; -class BlackboxWindow : public TimeoutHandler { +class BlackboxWindow { public: enum Function { Func_Resize = (1l << 0), Func_Move = (1l << 1), @@ -105,7 +105,7 @@ private: Blackbox *blackbox; BScreen *screen; XAtom *xatom; - OBTimer *timer; + otk::OBTimer *timer; BlackboxAttributes blackbox_attrib; Time lastButtonPressTime; // used for double clicks, when were we clicked @@ -405,7 +405,7 @@ public: void shapeEvent(XShapeEvent * /*unused*/); #endif // SHAPE - virtual void timeout(void); + static void timeout(BlackboxWindow *t); }; } -- cgit v1.2.3