Ticket #49391: 03_gdk_quarz_gdkcursor-quartz-10_6_compat.diff

File 03_gdk_quarz_gdkcursor-quartz-10_6_compat.diff, 453 bytes (added by elelay (Eric Le Lay), 9 years ago)

part 3. of original patch: don't set an unsupported cursor

  • gdk/quartz/gdkcursor-quartz.c

    old new  
    402402        selector = NSSelectorFromString(test->selector);
    403403        break;
    404404      }
     405
     406  if (! [[gdkCoreCursor class] respondsToSelector:selector])
     407  {
     408          selector = @selector(arrowCursor);
     409  }
     410
    405411  nscursor = [[gdkCoreCursor class] performSelector:selector];
    406412
    407413  [nscursor retain];