mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2025-01-23 06:51:06 +00:00
gdk: Remove AddClientMessageFilter method from Gdk.Display and Global
The native function gdk_display_add_client_message_filter is gone from GDK. You can use Gdk.Window.AddFilter as a replacement.
This commit is contained in:
parent
8db4e785aa
commit
47f3ca6ee5
|
@ -80,19 +80,6 @@ namespace Gdk {
|
|||
result [i] = list [i] as Device;
|
||||
return result;
|
||||
}
|
||||
|
||||
[DllImport ("libgdk-win32-3.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void gdk_display_add_client_message_filter (IntPtr raw, IntPtr message_type, GdkSharp.FilterFuncNative func, IntPtr data);
|
||||
|
||||
public void AddClientMessageFilter (Gdk.Atom message_type, Gdk.FilterFunc func)
|
||||
{
|
||||
GdkSharp.FilterFuncWrapper func_wrapper = new GdkSharp.FilterFuncWrapper (func);
|
||||
if (!Data.Contains ("client_message_filter_func_list"))
|
||||
Data ["client_message_filter_func_list"] = new ArrayList ();
|
||||
ArrayList func_list = Data ["client_message_filter_func_list"] as ArrayList;
|
||||
func_list.Add (func_wrapper);
|
||||
gdk_display_add_client_message_filter (Handle, message_type == null ? IntPtr.Zero : message_type.Handle, func_wrapper.NativeDelegate, IntPtr.Zero);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -174,11 +174,6 @@ namespace Gdk {
|
|||
result [i] = (VisualType) tmp [i];
|
||||
return result;
|
||||
}
|
||||
|
||||
public static void AddClientMessageFilter (Gdk.Atom message_type, Gdk.FilterFunc func)
|
||||
{
|
||||
Gdk.Display.Default.AddClientMessageFilter (message_type, func);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue