forked from AuroraMiddleware/gtk
Fix compilation breakage in gdk/win32
This commit is contained in:
parent
c0aae6644a
commit
290ecb0aba
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user