From 550d3afbfa877ee2b45f0ce8cdc17df309b97e19 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 31 May 2006 00:35:56 +0000 Subject: [PATCH] made use of new callback.h syntax --- src/rxvt.h | 4 ++-- src/rxvttoolkit.h | 18 +++++++++--------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/rxvt.h b/src/rxvt.h index fe13899f..58d9326f 100644 --- a/src/rxvt.h +++ b/src/rxvt.h @@ -775,8 +775,8 @@ enum { # define XPMClearArea(a, b, c, d, e, f, g) #endif -typedef callback1 log_callback; -typedef callback1 getfd_callback; +typedef callback log_callback; +typedef callback getfd_callback; #define SET_LOCALE(locale) rxvt_set_locale (locale) extern bool rxvt_set_locale (const char *locale) NOTHROW; diff --git a/src/rxvttoolkit.h b/src/rxvttoolkit.h index a15f6d2c..d6893f51 100644 --- a/src/rxvttoolkit.h +++ b/src/rxvttoolkit.h @@ -1,4 +1,4 @@ -/*--------------------------------*-C-*---------------------------------* +/*----------------------------------------------------------------------* * File: rxvttoolkit.h - provide toolkit-functionality for rxvt. *----------------------------------------------------------------------* * @@ -236,10 +236,10 @@ struct rxvt_display : refcounted { }; #ifdef USE_XIM -struct im_watcher : watcher, callback0 { - template - im_watcher (O1 *object, void (O2::*method) ()) - : callback0 (object,method) +struct im_watcher : watcher, callback { + template + im_watcher (O object, M method) + : callback (object, method) { } void start (rxvt_display *display) @@ -253,12 +253,12 @@ struct im_watcher : watcher, callback0 { }; #endif -struct xevent_watcher : watcher, callback1 { +struct xevent_watcher : watcher, callback { Window window; - template - xevent_watcher (O1 *object, void (O2::*method) (XEvent &)) - : callback1 (object,method) + template + xevent_watcher (O object, M method) + : callback (object, method) { } void start (rxvt_display *display, Window window) -- 2.34.1