Open colemickens opened 12 years ago
go-gtk3 is not yet updated for gtk3 version 3.4. It will be in a day or two.
I think it's related:
$ go get github.com/norisatir/go-gtk3/gtk3
gobject.go:39:1: error: 'g_value_get_char' is deprecated (declared at /usr/include/glib-2.0/gobject/gvaluetypes.h:184) [-Werror=deprecated-declarations]
gobject.go:40:1: error: 'g_value_set_char' is deprecated (declared at /usr/include/glib-2.0/gobject/gvaluetypes.h:181) [-Werror=deprecated-declarations]
cc1: all warnings being treated as errors
I'm using Ubuntu 12.04.
Thanks!
I think this is also related. When trying to install or build I get:
gobject/go-gobject.c: In function ‘_g_clear_object’: gobject/go-gobject.c:23:1: error: size of array ‘_GStaticAssertCompileTimeAssertion_0’ is negative
On Ubuntu 12.04
I get this error with
libgtk-3-dev 3.4.0-0ubuntu3~oneiric1
.Replacing line 1066:
C.gtk_widget_get_pointer(self.object, &cx, &cy)
with:
C.gdk_window_get_device_position(C.gtk_widget_get_window(self.object), C.gtk_get_current_event_device(), &cx, &cy, nil)
seems to solve the issue.