GNOME Bugzilla – Bug 734879
gdk_test_simulate_key() has no implementation on win32
Last modified: 2014-09-23 01:23:53 UTC
Created attachment 283547 [details] [review] win32 implementation for gdk_test_simulate_key() Here is the current "implementation": gboolean _gdk_win32_window_simulate_key (GdkWindow *window, gint x, gint y, guint keyval, GdkModifierType modifiers, GdkEventType key_pressrelease) { g_return_val_if_fail (key_pressrelease == GDK_KEY_PRESS || key_pressrelease == GDK_KEY_RELEASE, FALSE); g_return_val_if_fail (window != NULL, FALSE); return FALSE; } It does nothing. I realized this by checking why some of our unit tests for GIMP fail for the win32 platform. See bug 734869. Attached a patch which makes an implementation for gdk_test_simulate_key() on win32. Patch built against master.
Created attachment 283550 [details] [review] win32 implementation for gdk_test_simulate_key() on GTK+2 And as a bonus, the GTK+2 patch. Because that would be nice to be backported there (especially since we use this on GIMP).