gdk: Remove invalid Global.DevicesList method

The native function gdk_devices_list is gone, device handling is now
handled through DeviceManager.
This commit is contained in:
Bertrand Lorentz 2013-04-21 16:42:18 +02:00
parent 2d34ed8351
commit bc0aee1328

View File

@ -26,21 +26,6 @@ namespace Gdk {
public partial class Global {
[DllImport ("libgdk-win32-3.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gdk_devices_list ();
public static Device[] DevicesList ()
{
IntPtr raw_ret = gdk_devices_list ();
if (raw_ret == IntPtr.Zero)
return new Device [0];
GLib.List list = new GLib.List(raw_ret);
Device[] result = new Device [list.Count];
for (int i = 0; i < list.Count; i++)
result [i] = list [i] as Device;
return result;
}
[DllImport ("libgdk-win32-3.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gdk_list_visuals ();