*** empty log message ***
authorroot <root>
Tue, 27 Dec 2005 16:41:40 +0000 (16:41 +0000)
committerroot <root>
Tue, 27 Dec 2005 16:41:40 +0000 (16:41 +0000)
Changes
src/callback.h
src/menubar.C

diff --git a/Changes b/Changes
index 9ae1a3beb600ad5d6920e7de85908e82afa3ad66..314377b471a9f8421c7845f202042a2d6aa19301 100644 (file)
--- a/Changes
+++ b/Changes
@@ -12,6 +12,10 @@ WISH: meta-tagging of data by regex/master process (my dream project)
 WISH: OnTheSpot editing, or maybe switch to miiiiiiif
 WISH: just for fun, do shade and tint with XRender.
 
+6.2
+       - replaced callback.h by a fixed version from gvpe that correctly
+          returns the callback result. Reported by darix.
+
 6.1  Tue Dec 27 13:23:40 CET 2005
        - update iso8859-7 table (euro and drachma round-trip et al.).
        - fix a crash when the selection scrolls out of the scrollback
index 168bfbbbb89a2c9a17cede357ac501f936397498..c1cde4d7007f967f805c7f0e41ee4308a3b5ba77 100644 (file)
@@ -41,7 +41,7 @@ class callback0 {
   struct proxy : proxy_base {
     virtual R call (void *obj, R (object::*meth)())
       {
-        ((reinterpret_cast<O1 *>(obj)) ->* (reinterpret_cast<R (O2::*)()>(meth)))
+        return (R)((reinterpret_cast<O1 *>(obj)) ->* (reinterpret_cast<R (O2::*)()>(meth)))
           ();
       }
   };
@@ -84,7 +84,7 @@ class callback1 {
   struct proxy : proxy_base {
     virtual R call (void *obj, R (object::*meth)(A1), A1 a1)
       {
-        ((reinterpret_cast<O1 *>(obj)) ->* (reinterpret_cast<R (O2::*)(A1)>(meth)))
+        return (R)((reinterpret_cast<O1 *>(obj)) ->* (reinterpret_cast<R (O2::*)(A1)>(meth)))
           (a1);
       }
   };
@@ -127,7 +127,7 @@ class callback2 {
   struct proxy : proxy_base {
     virtual R call (void *obj, R (object::*meth)(A1, A2), A1 a1, A2 a2)
       {
-        ((reinterpret_cast<O1 *>(obj)) ->* (reinterpret_cast<R (O2::*)(A1, A2)>(meth)))
+        return (R)((reinterpret_cast<O1 *>(obj)) ->* (reinterpret_cast<R (O2::*)(A1, A2)>(meth)))
           (a1, a2);
       }
   };
@@ -170,7 +170,7 @@ class callback3 {
   struct proxy : proxy_base {
     virtual R call (void *obj, R (object::*meth)(A1, A2, A3), A1 a1, A2 a2, A3 a3)
       {
-        ((reinterpret_cast<O1 *>(obj)) ->* (reinterpret_cast<R (O2::*)(A1, A2, A3)>(meth)))
+        return (R)((reinterpret_cast<O1 *>(obj)) ->* (reinterpret_cast<R (O2::*)(A1, A2, A3)>(meth)))
           (a1, a2, a3);
       }
   };
@@ -213,7 +213,7 @@ class callback4 {
   struct proxy : proxy_base {
     virtual R call (void *obj, R (object::*meth)(A1, A2, A3, A4), A1 a1, A2 a2, A3 a3, A4 a4)
       {
-        ((reinterpret_cast<O1 *>(obj)) ->* (reinterpret_cast<R (O2::*)(A1, A2, A3, A4)>(meth)))
+        return (R)((reinterpret_cast<O1 *>(obj)) ->* (reinterpret_cast<R (O2::*)(A1, A2, A3, A4)>(meth)))
           (a1, a2, a3, a4);
       }
   };
@@ -256,7 +256,7 @@ class callback5 {
   struct proxy : proxy_base {
     virtual R call (void *obj, R (object::*meth)(A1, A2, A3, A4, A5), A1 a1, A2 a2, A3 a3, A4 a4, A5 a5)
       {
-        ((reinterpret_cast<O1 *>(obj)) ->* (reinterpret_cast<R (O2::*)(A1, A2, A3, A4, A5)>(meth)))
+        return (R)((reinterpret_cast<O1 *>(obj)) ->* (reinterpret_cast<R (O2::*)(A1, A2, A3, A4, A5)>(meth)))
           (a1, a2, a3, a4, a5);
       }
   };
@@ -299,7 +299,7 @@ class callback6 {
   struct proxy : proxy_base {
     virtual R call (void *obj, R (object::*meth)(A1, A2, A3, A4, A5, A6), A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6)
       {
-        ((reinterpret_cast<O1 *>(obj)) ->* (reinterpret_cast<R (O2::*)(A1, A2, A3, A4, A5, A6)>(meth)))
+        return (R)((reinterpret_cast<O1 *>(obj)) ->* (reinterpret_cast<R (O2::*)(A1, A2, A3, A4, A5, A6)>(meth)))
           (a1, a2, a3, a4, a5, a6);
       }
   };
@@ -342,7 +342,7 @@ class callback7 {
   struct proxy : proxy_base {
     virtual R call (void *obj, R (object::*meth)(A1, A2, A3, A4, A5, A6, A7), A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7)
       {
-        ((reinterpret_cast<O1 *>(obj)) ->* (reinterpret_cast<R (O2::*)(A1, A2, A3, A4, A5, A6, A7)>(meth)))
+        return (R)((reinterpret_cast<O1 *>(obj)) ->* (reinterpret_cast<R (O2::*)(A1, A2, A3, A4, A5, A6, A7)>(meth)))
           (a1, a2, a3, a4, a5, a6, a7);
       }
   };
index babf7c7f08f4fcbe968c564950429310a981d443..2b46bff516fc3a95b31f0fe2a90bdc7a29aed81a 100644 (file)
@@ -2080,16 +2080,15 @@ rxvt_term::menubar_expose ()
   if (x < ncol)
     {
       const char     *str;
-      int             ncol;
       unsigned int    len;
       char            title[256];
 
-      ncol = (int)ncol;
       if (x < (ncol - (NARROWS + 1)))
         {
           ncol -= (NARROWS + 1);
           Arrows_x = Width2Pixel (ncol);
         }
+
       draw_Arrows (0, +1);
 
       str = (CurrentBar