Bad portability by foreign_new_for_display



Current master has three occurences of

#ifdef GDK_WINDOWING_X11
  if (GDK_IS_X11_DISPLAY (display))

followed by some
    window = gdk_x11_window_lookup_for_display (display, ...);

Only one was ported to win32 and currently none for OSX, leading
to e.g. a crash during clipboard copy.

Wouldn't it be better to add foreign_new_for_display() to
the display vtable, rather than adding all these ifdefs?

Thanks,
	Hans

-------- Hans "at" Breuer "dot" Org -----------
Tell me what you need, and I'll tell you how to
get along without it.                -- Dilbert


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]