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:
parent
2d34ed8351
commit
bc0aee1328
1 changed files with 0 additions and 15 deletions
|
@ -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 ();
|
||||
|
||||
|
|
Loading…
Reference in a new issue