diff options
| author | Andrew Gallant <[email protected]> | 2013-12-28 10:13:20 -0500 |
|---|---|---|
| committer | Andrew Gallant <[email protected]> | 2013-12-28 10:13:48 -0500 |
| commit | 9c952b021ced9543d1602e60ba4189e4a2f71414 (patch) | |
| tree | 21aba7ac0503efc0c616862fd98867fe7560cfd1 /ge/ge.go | |
| parent | c3541209a0fb8271645c882f7e4a4d7254823992 (diff) | |
Use consistent extension names. Close #6.
Diffstat (limited to 'ge/ge.go')
| -rw-r--r-- | ge/ge.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -69,7 +69,7 @@ type QueryVersionCookie struct { // QueryVersion sends a checked request. // If an error occurs, it will be returned with the reply by calling QueryVersionCookie.Reply() func QueryVersion(c *xgb.Conn, ClientMajorVersion uint16, ClientMinorVersion uint16) QueryVersionCookie { - if _, ok := c.Extensions["GENERIC EVENT EXTENSION"]; !ok { + if _, ok := c.Extensions["Generic Event Extension"]; !ok { panic("Cannot issue request 'QueryVersion' using the uninitialized extension 'Generic Event Extension'. ge.Init(connObj) must be called first.") } cookie := c.NewCookie(true, true) @@ -80,7 +80,7 @@ func QueryVersion(c *xgb.Conn, ClientMajorVersion uint16, ClientMinorVersion uin // QueryVersionUnchecked sends an unchecked request. // If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent. func QueryVersionUnchecked(c *xgb.Conn, ClientMajorVersion uint16, ClientMinorVersion uint16) QueryVersionCookie { - if _, ok := c.Extensions["GENERIC EVENT EXTENSION"]; !ok { + if _, ok := c.Extensions["Generic Event Extension"]; !ok { panic("Cannot issue request 'QueryVersion' using the uninitialized extension 'Generic Event Extension'. ge.Init(connObj) must be called first.") } cookie := c.NewCookie(false, true) @@ -141,7 +141,7 @@ func queryVersionRequest(c *xgb.Conn, ClientMajorVersion uint16, ClientMinorVers b := 0 buf := make([]byte, size) - buf[b] = c.Extensions["GENERIC EVENT EXTENSION"] + buf[b] = c.Extensions["Generic Event Extension"] b += 1 buf[b] = 0 // request opcode |
