diff options
| author | Andrew Gallant (Ocelot) <[email protected]> | 2012-05-07 21:58:33 -0400 |
|---|---|---|
| committer | Andrew Gallant (Ocelot) <[email protected]> | 2012-05-07 21:58:33 -0400 |
| commit | eeb7fd0d1ed91c8f8e62572b1b5e9ef0648bffd0 (patch) | |
| tree | 000fcee1a7741ba6c5f799732b083049ff054070 /auto_render.go | |
| parent | d16723697e0450c3d410a5637eec40242c45b4f8 (diff) | |
more clean up. use log instead of fmt.Print to stderr. bug fix for event blocking (a hack fix for now).
Diffstat (limited to 'auto_render.go')
| -rw-r--r-- | auto_render.go | 30 |
1 files changed, 17 insertions, 13 deletions
diff --git a/auto_render.go b/auto_render.go index c9fc097..fa0c5f2 100644 --- a/auto_render.go +++ b/auto_render.go @@ -1,7 +1,7 @@ package xgb /* - This file was generated by render.xml on May 6 2012 5:48:47pm EDT. + This file was generated by render.xml on May 7 2012 9:17:57pm EDT. This file is automatically generated. Edit at your peril! */ @@ -16,7 +16,7 @@ func (c *Conn) RenderInit() error { case err != nil: return err case !reply.Present: - return newError("No extension named RENDER could be found on on the server.") + return errorf("No extension named RENDER could be found on on the server.") } c.extLock.Lock() @@ -24,6 +24,9 @@ func (c *Conn) RenderInit() error { for evNum, fun := range newExtEventFuncs["RENDER"] { newEventFuncs[int(reply.FirstEvent)+evNum] = fun } + for errNum, fun := range newExtErrorFuncs["RENDER"] { + newErrorFuncs[int(reply.FirstError)+errNum] = fun + } c.extLock.Unlock() return nil @@ -31,14 +34,9 @@ func (c *Conn) RenderInit() error { func init() { newExtEventFuncs["RENDER"] = make(map[int]newEventFun) + newExtErrorFuncs["RENDER"] = make(map[int]newErrorFun) } -// Skipping definition for base type 'Int32' - -// Skipping definition for base type 'Void' - -// Skipping definition for base type 'Byte' - // Skipping definition for base type 'Int8' // Skipping definition for base type 'Card16' @@ -59,6 +57,12 @@ func init() { // Skipping definition for base type 'Int16' +// Skipping definition for base type 'Int32' + +// Skipping definition for base type 'Void' + +// Skipping definition for base type 'Byte' + const ( RenderPictTypeIndexed = 0 RenderPictTypeDirect = 1 @@ -1392,7 +1396,7 @@ func (err RenderPictFormatError) Error() string { } func init() { - newErrorFuncs[0] = NewRenderPictFormatError + newExtErrorFuncs["RENDER"][0] = NewRenderPictFormatError } // Error definition RenderPicture (1) @@ -1437,7 +1441,7 @@ func (err RenderPictureError) Error() string { } func init() { - newErrorFuncs[1] = NewRenderPictureError + newExtErrorFuncs["RENDER"][1] = NewRenderPictureError } // Error definition RenderPictOp (2) @@ -1482,7 +1486,7 @@ func (err RenderPictOpError) Error() string { } func init() { - newErrorFuncs[2] = NewRenderPictOpError + newExtErrorFuncs["RENDER"][2] = NewRenderPictOpError } // Error definition RenderGlyphSet (3) @@ -1527,7 +1531,7 @@ func (err RenderGlyphSetError) Error() string { } func init() { - newErrorFuncs[3] = NewRenderGlyphSetError + newExtErrorFuncs["RENDER"][3] = NewRenderGlyphSetError } // Error definition RenderGlyph (4) @@ -1572,7 +1576,7 @@ func (err RenderGlyphError) Error() string { } func init() { - newErrorFuncs[4] = NewRenderGlyphError + newExtErrorFuncs["RENDER"][4] = NewRenderGlyphError } // Request RenderQueryVersion |
