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.
This commit is contained in:
Kristian Rietveld 2009-10-23 13:53:57 +02:00
parent 861c34b01e
commit 42ac226877
3 changed files with 12 additions and 0 deletions

View File

@ -385,3 +385,9 @@ gdk_device_get_axis (GdkDevice *device, gdouble *axes, GdkAxisUse use, gdouble *
return FALSE;
}
void
_gdk_input_window_crossing (GdkWindow *window,
gboolean enter)
{
}

View File

@ -147,6 +147,9 @@ gint _gdk_input_disable_window (GdkWindow *window,
GdkDevicePrivate *gdkdev);
void _gdk_init_input_core (void);
void _gdk_input_window_crossing (GdkWindow *window,
gboolean enter);
void _gdk_input_exit (void);
#endif /* __GDK_INPUTPRIVATE_H__ */

View File

@ -25,6 +25,7 @@
#include "gdk.h"
#include "gdkwindowimpl.h"
#include "gdkprivate-quartz.h"
#include "gdkinputprivate.h"
static gpointer parent_class;
@ -3035,4 +3036,6 @@ gdk_window_impl_iface_init (GdkWindowImplIface *iface)
iface->queue_antiexpose = _gdk_quartz_window_queue_antiexpose;
iface->queue_translation = _gdk_quartz_window_queue_translation;
iface->destroy = _gdk_quartz_window_destroy;
iface->input_window_destroy = _gdk_input_window_destroy;
iface->input_window_crossing = _gdk_input_window_crossing;
}