From 42ac2268773936a0a85b017e5ebac83c4b0b7557 Mon Sep 17 00:00:00 2001
From: Kristian Rietveld <kris@gtk.org>
Date: Fri, 23 Oct 2009 11:53:57 +0000
Subject: Bug 598881 - Unimplemented GdkWindowImplIface methods crash gimp on OSX
Add dummy for _gdk_input_window_crossing (). Set both input_window_destroy
and input_window_crossing pointers in the Impl struct.
Reported by John Ralls.
---
Index gdk/quartz/gdkinput.c
|
|
gdk_device_get_axis (GdkDevice *device, gdouble *axes, GdkAxisUse use, gdouble * |
385 | 385 | |
386 | 386 | return FALSE; |
387 | 387 | } |
| 388 | |
| 389 | void |
| 390 | _gdk_input_window_crossing (GdkWindow *window, |
| 391 | gboolean enter) |
| 392 | { |
| 393 | } |
Index gdk/quartz/gdkinputprivate.h
|
|
gint _gdk_input_disable_window (GdkWindow *window, |
147 | 147 | GdkDevicePrivate *gdkdev); |
148 | 148 | void _gdk_init_input_core (void); |
149 | 149 | |
| 150 | void _gdk_input_window_crossing (GdkWindow *window, |
| 151 | gboolean enter); |
| 152 | |
150 | 153 | void _gdk_input_exit (void); |
151 | 154 | |
152 | 155 | #endif /* __GDK_INPUTPRIVATE_H__ */ |
Index gdk/quartz/gdkwindow-quartz.c
|
|
|
25 | 25 | #include "gdk.h" |
26 | 26 | #include "gdkwindowimpl.h" |
27 | 27 | #include "gdkprivate-quartz.h" |
| 28 | #include "gdkinputprivate.h" |
28 | 29 | |
29 | 30 | static gpointer parent_class; |
30 | 31 | |
… |
… |
gdk_window_impl_iface_init (GdkWindowImplIface *iface) |
3035 | 3036 | iface->queue_antiexpose = _gdk_quartz_window_queue_antiexpose; |
3036 | 3037 | iface->queue_translation = _gdk_quartz_window_queue_translation; |
3037 | 3038 | iface->destroy = _gdk_quartz_window_destroy; |
| 3039 | iface->input_window_destroy = _gdk_input_window_destroy; |
| 3040 | iface->input_window_crossing = _gdk_input_window_crossing; |
3038 | 3041 | } |