[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cp-patches] FYI: gnu_java_awt_peer_gtk_GtkClipboard.c 64-bit fix
From: |
Mark Wielaard |
Subject: |
Re: [cp-patches] FYI: gnu_java_awt_peer_gtk_GtkClipboard.c 64-bit fix |
Date: |
Fri, 25 Nov 2005 16:29:56 +0100 |
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 <address@hidden>
>
> * 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