Show
Ignore:
Timestamp:
02/16/07 22:09:34 (2 years ago)
Author:
baxissimo
Message:

Added top level add_blah_callback calls in gui.d to hook the system-level input routines. May rethink this a bit still. That may be wanted in some cases (reshape, or recording all mouse motion for example) , but probably more useful would be routines that get called as a _fallback_ when no gui widget intercepts the event.

Fixed disconnect in signalobj.d

Added disconnect routines to adapter.d

Fixed dxut to work without Derelict.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/luigi/signalobj.d

    r23 r46  
    125125     * be implicitly converted at runtime is allowed. 
    126126     *  
    127      * So for example, the (int, char[]) FlexSigal can be connected to a  
     127     * So for example, the (int, char[]) FlexSignal can be connected to a  
    128128     * method taking a (double,char[]) because int is automatically  
    129129     * promoted to double. 
     
    187187    void disconnect(DT)(DT f) {  
    188188        static if( is(DT==slot_t) ) { 
    189             s.disconnect_exact(f); 
     189            s.disconnect(f); 
    190190        } 
    191191        else { 
     
    200200 
    201201            if (f_key in thunkMap) { 
    202                 s.disconnect_exact(thunkMap[f_key]); 
     202                s.disconnect(thunkMap[f_key]); 
    203203            } else { 
    204204                debug writefln("FlexSignal.fdisconnect: Slot not found"); 
     
    362362     
    363363    auto sig1 = new SignalObj!(int); 
    364     sig1.connect_exact(&s1.slot1); 
    365     //sig1.connect_exact(&s1.slot0); // error mismatch 
     364    sig1.connect(&s1.slot1); 
     365    //sig1.connect(&s1.slot0); // error mismatch 
    366366 
    367367    writefln(">>> SignalObject EMIT"); 
     
    435435//---------------------------------------------------------------------------- 
    436436// needed to run tests 
    437 //void main(){} 
    438  
     437version (unittestmain) { 
     438    void main(){} 
     439
     440