mattn / go-gtk

Go binding for GTK
http://mattn.github.com/go-gtk
BSD 3-Clause "New" or "Revised" License
2.12k stars 247 forks source link

signal 'render' is invalid for instance GtkGLArea #385

Open MauriceGit opened 6 years ago

MauriceGit commented 6 years ago

Hello,

when trying to connect a GtkGLArea widget to the 'render' signal I get the below warning:

(gtkAction:5142): GLib-GObject-WARNING **: /build/glib2.0-b4FPyK/glib2.0-2.48.2/./gobject/gsignal.c:2517: signal 'render' is invalid for instance '0x1ffc8a0' of type 'GtkGLArea'

My code is fairly simple for this. Can someone help me out here?

drawArea := gtkgl.NewGLArea([]int{gtkgl.ATTR_RGBA})
drawArea.Connect("render", func() {
    fmt.Println("render")
})

Thanks Maurice