Fix a native method for the GTK 3.6 and 3.8 build.