Changeset 203

Show
Ignore:
Timestamp:
01/12/07 01:27:32 (2 years ago)
Author:
Ant
Message:

new Duit untested installer

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/makeRelease.sh

    r197 r203  
    1212 
    1313 
    14 cp `which compd` release/duit/compd 
    15 cp compd.exe release/duit/compd.exe 
     14#cp `which compd` release/duit/compd 
     15#cp compd.exe release/duit/compd.exe 
    1616 
    1717cp -R src/* release/duit/src 
     
    2121cp -R images/* release/duit/images 
    2222 
    23 cp compdDuit.sh compdDuitTests.sh release/duit 
    24 cp compdDuit.bat compdDuitTests.bat release/duit 
     23cp setup release/duit 
     24cp setup.exe release/duit 
    2525 
    26 cp compdDuitgl.sh compdShapesGL.sh compdSimpleGL.sh release/duit 
    27 cp compdDuitgl.bat compdShapesGL.bat compdSimpleGL.bat release/duit 
    2826 
    29 cp makeAll.sh release/duit 
    30 cp makeAll.bat release/duit 
     27#cp compdDuit.sh compdDuitTests.sh release/duit 
     28#cp compdDuit.bat compdDuitTests.bat release/duit 
     29 
     30#cp compdDuitgl.sh compdShapesGL.sh compdSimpleGL.sh release/duit 
     31#cp compdDuitgl.bat compdShapesGL.bat compdSimpleGL.bat release/duit 
     32 
     33#cp makeAll.sh release/duit 
     34#cp makeAll.bat release/duit 
    3135 
    3236cd release 
     
    3741rm -fr */*/*/.svn 
    3842rm -fr */*/*/*/.svn 
    39 rm -fr */*/*/*/*/*.svn 
    40 rm -fr */*/*/*/*/*/*.svn 
     43rm -fr */*/*/*/*/.svn 
     44rm -fr */*/*/*/*/*/.svn 
    4145 
    4246tar -cf ../duit.tar duit 
     
    4953mv duit.tar.gz duit.zip ../downloads 
    5054 
    51 rm -fr release 
     55#rm -fr release 
    5256 
  • trunk/src/gtk/Duit.d

    r192 r203  
    5454 *  - lib.gtk 
    5555 *  - gtk.gtktypes 
     56 *  - gthread.Thread; 
     57 *  - gdk.Threads; 
    5658 * structWrap: 
    5759 *  - GdkEvent* -> Event 
     
    7577private import lib.gtk; 
    7678private import gtk.gtktypes; 
    77 private import gthread.Thread; 
    78 private import gdk.Threads; 
    79  
    80  
     79private import gthread.Thread;; 
     80private import gdk.Threads;; 
    8181 
    8282/** 
     
    148148     * read full documantation at http://gtk.org/faq/#AEN482 
    149149     * from the FAQ: 
    150      * "There is a single global lock that you must acquire with  
    151      * gdk_threads_enter() before making any GDK calls,  
     150     * "There is a single global lock that you must acquire with 
     151     * gdk_threads_enter() before making any GDK calls, 
    152152     * and release with gdk_threads_leave() afterwards throughout your code." 
    153153     * This is to be used on any call to GDK not executed from the main thread. 
     
    160160    } 
    161161     
    162  
    163162     
    164163    /** 
  • trunk/src/gtk/Widget.d

    r183 r203  
    247247    /** 
    248248     * Modifies the font for this widget. 
    249      * This just calls modifyFont(new PgFontDescription(family,size)); 
     249     * This just calls modifyFont(new PgFontDescription(PgFontDescription.fromString(family ~ " " ~ size))); 
    250250     */ 
    251251    public void modifyFont(char[] family, int size) 
    252252    { 
    253253        if ( size < 0 ) size = -size;   // hack to workaround leds bug - TO BE REMOVED 
    254         modifyFont(new PgFontDescription(family,size)); 
     254        modifyFont(new PgFontDescription( 
     255        PgFontDescription.fromString( 
     256        family ~ " " ~ std.string.toString(size)))); 
    255257    } 
    256258     
  • trunk/src/lib/Loader.d

    r194 r203  
    163163        version(Windows) 
    164164        { 
    165             handle = LoadLibraryA( (this.libraryName ~ "\0").ptr ); 
     165            handle = LoadLibraryA( this.libraryName ~ "\0" ); 
    166166            if ( alternateLibraryName !is null ) 
    167167            { 
    168                 alternateHandle = LoadLibraryA( (this.alternateLibraryName ~ "\0").ptr ); 
     168                alternateHandle = LoadLibraryA( this.alternateLibraryName ~ "\0" ); 
    169169            } 
    170170        }  
     
    172172        { 
    173173            handle = dlopen( (this.libraryName ~ "\0").ptr, RTLD_NOW); 
     174            if (handle is null)  
     175            { 
     176                // non-dev libraries tend to be called xxxx.so.0  
     177                handle = dlopen( (this.libraryName ~ ".0\0").ptr, RTLD_NOW);  
     178            }  
    174179            if ( alternateLibraryName !is null ) 
    175180            { 
  • trunk/src/lib/gdkpixbuf.d

    r194 r203  
    3535static this() 
    3636{ 
    37     gdkpixbuf_Linker = new Linker(libPath ~ importLibs[LIBRARY.GDKPIXBUF], libPath ~ importLibs[LIBRARY.GDK] ); 
     37    gdkpixbuf_Linker = new Linker(libPath ~ importLibs[LIBRARY.GDKPIXBUF] ); 
    3838    gdkpixbuf_Linker.link(gdkpixbufLinks); 
    3939    debug writefln("* Finished static this(): gdkpixbuf"); 
  • trunk/src/lib/gthread.d

    r194 r203  
    3535static this() 
    3636{ 
    37     gthread_Linker = new Linker(libPath ~ importLibs[LIBRARY.GTHREAD], libPath ~ importLibs[LIBRARY.GLIB] ); 
     37    gthread_Linker = new Linker(libPath ~ importLibs[LIBRARY.GTHREAD] ); 
    3838    gthread_Linker.link(gthreadLinks); 
    3939    debug writefln("* Finished static this(): gthread"); 
  • trunk/srcgl/glgtk/GLCapability.d

    r198 r203  
    131131        return glDrawFrame(this); 
    132132    } 
    133  
     133     
    134134    /** 
    135135     * The application should use this method to redraw the scene at any time 
     
    137137    bit glDrawFrame(Widget widget) 
    138138    { 
    139         debug(drawFrame)printf("GLCapabilityT.glDrawFrame 1\n" ); 
    140         GLContext context = GLWidget.getGLContext(widget); 
    141         debug(drawFrame)printf("GLCapabilityT.glDrawFrame 2\n" ); 
    142         GLDrawable drawable = GLWidget.getGLDrawable(widget); 
    143         debug(drawFrame)printf("GLCapabilityT.glDrawFrame 3\n" ); 
    144          
    145         /*** OpenGL BEGIN ***/ 
    146         if ( !drawable.glBegin(context) ) 
    147         { 
    148             debug(drawFrame)printf("GLCapabilityT.glDrawFrame 4\n" ); 
    149             return false; 
    150         } 
    151         debug(drawFrame)printf("GLCapabilityT.glDrawFrame 5\n" ); 
     139        //printf("GLCapabilityT.realizeFrame \n" ); 
     140        GLContext context = GLWidget.getGLContext(widget); 
     141        GLDrawable drawable = GLWidget.getGLDrawable(widget); 
     142         
     143        /*** OpenGL BEGIN ***/ 
     144        if ( !drawable.glBegin(context) ) 
     145        { 
     146            return false; 
     147        } 
    152148         
    153149        /*** do user actions ***/ 
    154150        bit consumeEvent = typeof(this).drawGL(null); 
    155151         
    156         debug(drawFrame)printf("GLCapabilityT.glDrawFrame 6\n" ); 
    157         //writefln("glDrawFrame"); 
    158         /*** flush ***/ 
    159         if ( drawable.isDoubleBuffered() ) 
    160         { 
    161             debug(drawFrame)printf("GLCapabilityT.glDrawFrame 7\n" ); 
    162             drawable.swapBuffers(); 
    163         } 
    164         else 
    165         { 
    166             debug(drawFrame)printf("GLCapabilityT.glDrawFrame 8\n" ); 
    167             glFlush (); 
    168         } 
    169  
    170         debug(drawFrame)printf("GLCapabilityT.glDrawFrame 9\n" ); 
    171         drawable.glEnd(); 
    172         debug(drawFrame)printf("GLCapabilityT.glDrawFrame 10\n" ); 
    173          
    174  
    175          
    176         /*** OpenGL END ***/ 
    177         return true; 
    178          
    179     } 
    180      
    181     bool alreadyRealized; 
    182      
    183     bool getAlreadyRealized() 
    184     { 
    185         return alreadyRealized; 
     152        /*** flush ***/ 
     153        if ( drawable.isDoubleBuffered() ) 
     154        { 
     155            drawable.swapBuffers(); 
     156        } 
     157        else 
     158        { 
     159            glFlush (); 
     160        } 
     161         
     162        drawable.glEnd(); 
     163        /*** OpenGL END ***/ 
     164        return true; 
     165         
    186166    } 
    187167     
    188168    void realizeFrame(Widget widget) 
    189169    { 
    190         if ( alreadyRealized )  
    191         { 
    192         //  return; 
    193         } 
    194         alreadyRealized = true; 
    195         printf("GLCapabilityT.realizeFrame \n" ); 
     170         
     171        //printf("GLCapabilityT.realizeFrame \n" ); 
    196172        GLContext context = GLWidget.getGLContext(widget); 
    197173        GLDrawable drawable = GLWidget.getGLDrawable(widget); 
     
    235211         
    236212        /*** do user actions ***/ 
    237         bit consumeEvent = typeof(this).drawGL(event); 
     213        int consumeEvent = typeof(this).drawGL(event); 
    238214         
    239215        /*** flush ***/ 
  • trunk/wrap/APILookupGLt.txt

    r191 r203  
    317317        //writefln("configureFrame 2"); 
    318318        /*** do user actions ***/ 
    319         bit consumeEvent = typeof(this).resizeGL(event); 
     319        int consumeEvent = typeof(this).resizeGL(event); 
    320320        //printf("here\n"); 
    321321        //writefln("configureFrame 3"); 
  • trunk/wrap/HTODopenGL.txt

    r191 r203  
    4646outfile: srcgl/lib/glu.d 
    4747 
    48 #runthis: wine ~/dm/bin/htod.exe wrap/cHeaders/GL/glx.hpp wrap/cHeaders/GL/glx.d -Iwrap/cHeaders 
    49 #prefile: wrap/cHeaders/GL/glx.hpp 
    50 pack: glgdk 
    51 lib: GLX 
    52 dynload: yes 
    53 file: wrap/cHeaders/GL/glx.d 
    54 outfile: srcgl/lib/glx.d 
     48##runthis: wine ~/dm/bin/htod.exe wrap/cHeaders/GL/glx.hpp wrap/cHeaders/GL/glx.d -Iwrap/cHeaders 
     49##prefile: wrap/cHeaders/GL/glx.hpp 
     50#pack: glgdk 
     51#lib: GLX 
     52#dynload: yes 
     53#file: wrap/cHeaders/GL/glx.d 
     54#outfile: srcgl/lib/glx.d 
    5555