Ticket #22451: patch-crossing-event.diff

File patch-crossing-event.diff, 2.0 KB (added by gellule.xg@…, 14 years ago)

I've used the same patch approach (I'm attaching my version), and do not have the error anymore.

  • gdk/quartz/gdkinput.c

    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 * 
    385385 
    386386  return FALSE;
    387387}
     388
     389void
     390_gdk_input_window_crossing (GdkWindow *window,
     391                            gboolean   enter)
     392{
     393}
  • gdk/quartz/gdkinputprivate.h

    Index gdk/quartz/gdkinputprivate.h
    gint _gdk_input_disable_window (GdkWindow *window, 
    147147                                              GdkDevicePrivate *gdkdev);
    148148void               _gdk_init_input_core      (void);
    149149
     150void               _gdk_input_window_crossing (GdkWindow       *window,
     151                                               gboolean         enter);
     152
    150153void _gdk_input_exit           (void);
    151154
    152155#endif /* __GDK_INPUTPRIVATE_H__ */
  • gdk/quartz/gdkwindow-quartz.c

    Index gdk/quartz/gdkwindow-quartz.c
     
    2525#include "gdk.h"
    2626#include "gdkwindowimpl.h"
    2727#include "gdkprivate-quartz.h"
     28#include "gdkinputprivate.h"
    2829
    2930static gpointer parent_class;
    3031
    gdk_window_impl_iface_init (GdkWindowImplIface *iface) 
    30353036  iface->queue_antiexpose = _gdk_quartz_window_queue_antiexpose;
    30363037  iface->queue_translation = _gdk_quartz_window_queue_translation;
    30373038  iface->destroy = _gdk_quartz_window_destroy;
     3039  iface->input_window_destroy = _gdk_input_window_destroy;
     3040  iface->input_window_crossing = _gdk_input_window_crossing;
    30383041}