sourcegraph / go-webkit2

WebKit API bindings (WebKitGTK+ v2) for Go
https://sourcegraph.com/github.com/sourcegraph/go-webkit2
Other
313 stars 61 forks source link

error message #18

Open lukexue opened 9 years ago

lukexue commented 9 years ago

undefined: glib.CallbackContext

qknight commented 9 years ago

see this changelog:

Changes in 0.1.0 (Thu Jan 09 2014)
  - Modify signal callback API to remove glib.CallbackContext
  - New support for the following types:
    - gtk.CellRendererToggle
    - gtk.HeaderBar
    - gtk.TextView
  - Additional function support for the following types:
    - gtk.MessageDialog
    - gtk.Window
  - Add examples for gtk.TextView bindings
  - Fix build when building with gccgo
    (https://github.com/conformal/gotk3/issues/19 and
    https://github.com/conformal/gotk3/issues/20)

solution

rewrite the code, that is what i want to do but don't yet understand how to do yet.

@sqs can you advice?

qknight commented 9 years ago

@lukexue the solution to your problem was in the examples folder already as i found out sometime ago:

   webView.Connect("load-changed", func(_ *glib.Object, i int) {
        loadEvent := webkit2.LoadEvent(i)

@sqs: that means this ticket can be closed now.

lukexue commented 9 years ago

thanks