Hi, On Sun, 2005-11-20 at 22:05 +0100, Mark Wielaard wrote: > According to > http://developer.gnome.org/doc/API/2.0/glib/glib-Type-Conversion-Macros.html > the following seems appropriate: > > 2005-11-20 Mark Wielaard <[EMAIL PROTECTED]> > > * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkClipboard.c > (current_selection): Define as gint. > (clipboard_clear_func): Extract user_data with GPOINTER_TO_INT. > (Java_gnu_java_awt_peer_gtk_GtkClipboard_advertiseContent): > Convert current_selection with GINT_TO_POINTER. > > Since we are only using the current_selection as small counter anyway. > Does this work for you?
This seems to work, but Christian wasn't able to test it because of [Bug awt/24981] too many local references in GtkSelection.c. I need to look into that one later (if Christian doesn't beat me to it). But I will commit this patch now since it seems correct. Cheers, Mark _______________________________________________ Classpath-patches mailing list Classpath-patches@gnu.org http://lists.gnu.org/mailman/listinfo/classpath-patches