diff options
| author | Andrew Gallant (Ocelot) <[email protected]> | 2012-05-07 04:09:19 -0400 |
|---|---|---|
| committer | Andrew Gallant (Ocelot) <[email protected]> | 2012-05-07 04:09:19 -0400 |
| commit | 8bcecd8ab592e67ade9cd728503581d5a84ca583 (patch) | |
| tree | 4d550a9ca8b2b19af6d66b99233e0ecde4543df9 /xgbgen/go_event.go | |
| parent | be6362d05c9563b8085eba2b990a145101e9c99f (diff) | |
lots of docs and examples
Diffstat (limited to 'xgbgen/go_event.go')
| -rw-r--r-- | xgbgen/go_event.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/xgbgen/go_event.go b/xgbgen/go_event.go index ce54e19..f55e26f 100644 --- a/xgbgen/go_event.go +++ b/xgbgen/go_event.go @@ -165,7 +165,7 @@ func (e *EventCopy) Write(c *Context) { func EventFieldString(c *Context, fields []Field, evName string) { c.Putln("fieldVals := make([]string, 0, %d)", len(fields)) if evName != "KeymapNotify" { - c.Putln("fieldVals = append(fieldVals, " + + c.Putln("fieldVals = append(fieldVals, "+ "sprintf(\"Sequence: %s\", v.Sequence))", "%d") } for _, field := range fields { @@ -177,7 +177,8 @@ func EventFieldString(c *Context, fields []Field, evName string) { case *Base: case *Resource: case *TypeDef: - default: continue + default: + continue } switch field.SrcType() { |
