Commit c0aae664 authored by John Ralls's avatar John Ralls

Replace references to sealed GdkDevice private variables with accessor calls in quartz.

parent 38b8ab30
...@@ -571,7 +571,7 @@ find_toplevel_for_keyboard_event (NSEvent *nsevent) ...@@ -571,7 +571,7 @@ find_toplevel_for_keyboard_event (NSEvent *nsevent)
GdkDeviceGrabInfo *grab; GdkDeviceGrabInfo *grab;
GdkDevice *device = l->data; GdkDevice *device = l->data;
if (device->source != GDK_SOURCE_KEYBOARD) if (gdk_device_get_source(device) != GDK_SOURCE_KEYBOARD)
continue; continue;
grab = _gdk_display_get_last_device_grab (display, device); grab = _gdk_display_get_last_device_grab (display, device);
......
...@@ -228,7 +228,7 @@ _gdk_input_init (void) ...@@ -228,7 +228,7 @@ _gdk_input_init (void)
{ {
GdkDevice *device = l->data; GdkDevice *device = l->data;
if (device->source == GDK_SOURCE_KEYBOARD) if (gdk_device_get_source(device) == GDK_SOURCE_KEYBOARD)
continue; continue;
_gdk_input_devices = g_list_prepend (_gdk_input_devices, l->data); _gdk_input_devices = g_list_prepend (_gdk_input_devices, l->data);
...@@ -245,7 +245,7 @@ _gdk_input_init (void) ...@@ -245,7 +245,7 @@ _gdk_input_init (void)
{ {
GdkDevice *device = list->data; GdkDevice *device = list->data;
if (device->source != GDK_SOURCE_MOUSE) if (gdk_device_get_source(device) != GDK_SOURCE_MOUSE)
continue; continue;
_gdk_display->core_pointer = device; _gdk_display->core_pointer = device;
...@@ -273,11 +273,7 @@ _gdk_input_exit (void) ...@@ -273,11 +273,7 @@ _gdk_input_exit (void)
if (gdkdev != (GdkDevicePrivate *)_gdk_core_pointer) if (gdkdev != (GdkDevicePrivate *)_gdk_core_pointer)
{ {
gdk_device_set_mode ((GdkDevice *)gdkdev, GDK_MODE_DISABLED); gdk_device_set_mode ((GdkDevice *)gdkdev, GDK_MODE_DISABLED);
g_object_unref(gdkdev);
g_free (gdkdev->info.name);
g_free (gdkdev->info.axes);
g_free (gdkdev->info.keys);
g_free (gdkdev);
} }
} }
......
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