aboutsummaryrefslogtreecommitdiff
path: root/nexgb/examples/property.go
diff options
context:
space:
mode:
authorAndrew Gallant (Ocelot) <Andrew.Gallant@tufts.edu>2012-05-05 18:22:24 -0400
committerAndrew Gallant (Ocelot) <Andrew.Gallant@tufts.edu>2012-05-05 18:22:24 -0400
commit369ad0d33e51035a3e48436fc85f60130b201437 (patch)
treee3b4bec82f4e21cfc0e8cc3c696f56b58bb30869 /nexgb/examples/property.go
parentb6715f376f5ea3efb58146c58924dcc7b1536181 (diff)
downloadhaven-369ad0d33e51035a3e48436fc85f60130b201437.tar.gz
haven-369ad0d33e51035a3e48436fc85f60130b201437.tar.xz
haven-369ad0d33e51035a3e48436fc85f60130b201437.zip
extensions are working! extensions are working!
Diffstat (limited to 'nexgb/examples/property.go')
-rw-r--r--nexgb/examples/property.go10
1 files changed, 6 insertions, 4 deletions
diff --git a/nexgb/examples/property.go b/nexgb/examples/property.go
index 2477df4..45144c7 100644
--- a/nexgb/examples/property.go
+++ b/nexgb/examples/property.go
@@ -27,13 +27,15 @@ func main() {
root := X.DefaultScreen().Root
aname := "_NET_ACTIVE_WINDOW"
- atom, err := X.InternAtom(true, uint16(len(aname)), aname)
+ atom, err := X.InternAtom(true, uint16(len(aname)), aname).Reply()
if err != nil {
log.Fatal(err)
}
- reply, err := X.GetProperty(false, root, atom.Atom, xgb.GetPropertyTypeAny,
- 0, (1<<32)-1)
+ reply, err := X.GetProperty(false, root, atom.Atom,
+ xgb.GetPropertyTypeAny, 0, (1<<32)-1).Reply()
+ if err != nil {
+ log.Fatal(err)
+ }
log.Printf("%X", get32(reply.Value))
}
-