From 76f9adb5991081e27ebc6eec82db6bdba36c910f Mon Sep 17 00:00:00 2001 From: Andrew Gallant Date: Sat, 28 Dec 2013 10:13:20 -0500 Subject: Use consistent extension names. Close #6. --- nexgb/ge/ge.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'nexgb/ge') diff --git a/nexgb/ge/ge.go b/nexgb/ge/ge.go index 1cfd918..68213bc 100644 --- a/nexgb/ge/ge.go +++ b/nexgb/ge/ge.go @@ -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 -- cgit v1.2.3-70-g09d2