Even though the C docs don't show it as deprecated or obsolete, is not available in gdk-3.0 Vala bindings so I had to fix it as part of adding GTK3 support due to compiler errors (same with below).