Commit 290ecb0a authored by Tor Lillqvist's avatar Tor Lillqvist

Fix compilation breakage in gdk/win32

parent c0aae664
......@@ -319,7 +319,7 @@ gdk_device_win32_grab (GdkDevice *device,
GdkCursor *cursor,
guint32 time_)
{
if (device->source != GDK_SOURCE_KEYBOARD)
if (gdk_device_get_source (device) != GDK_SOURCE_KEYBOARD)
SetCapture (GDK_WINDOW_HWND (window));
return GDK_GRAB_SUCCESS;
......@@ -333,7 +333,7 @@ gdk_device_win32_ungrab (GdkDevice *device,
display = gdk_device_get_display (device);
if (device->source != GDK_SOURCE_KEYBOARD)
if (gdk_device_get_source (device) != GDK_SOURCE_KEYBOARD)
ReleaseCapture ();
}
......
......@@ -322,7 +322,7 @@ _gdk_device_wintab_translate_axes (GdkDeviceWintab *device_wintab,
if (!_gdk_device_wintab_get_window_coords (impl_window, &root_x, &root_y))
return;
for (i = 0; i < device->num_axes; i++)
for (i = 0; i < gdk_device_get_n_axes (device); i++)
{
GdkAxisUse use;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment