Permalink
Browse files

fix import path.

  • Loading branch information...
1 parent 559a625 commit 2cbf075af1e5bbf3969219ea1f2077d0aa26d2a2 @mattn committed Jun 28, 2011
Showing with 4 additions and 3 deletions.
  1. +4 −3 gui.go
View
@@ -1,8 +1,9 @@
package main
import (
- "gtk"
- "gdk"
+ "github.com/mattn/go-gtk/gtk"
+ "github.com/mattn/go-gtk/glib"
+ "github.com/mattn/go-gtk/gdk"
"os"
"unsafe"
"strings"
@@ -108,7 +109,7 @@ func main() {
vbox.Add(buttons)
- window.Connect("key-press-event", func(ctx *gtk.CallbackContext) bool {
+ window.Connect("key-press-event", func(ctx *glib.CallbackContext) bool {
arg := ctx.Args(0)
kev := *(**gdk.EventKey)(unsafe.Pointer(&arg))
c := (string(uint8(kev.Keyval % 0xff)))

0 comments on commit 2cbf075

Please sign in to comment.