-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
# github.com/norisatir/go-gtk3/gtk3
gtk3.go:1341:1: error: 'gtk_widget_get_pointer' is deprecated (declared at /usr/include/gtk-3.0/gtk/gtkwidget.h:747): Use 'gdk_window_get_device_position' instead [-Werror=deprecated-declarations]
cc1: all warnings being treated as errors
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels