classpath on an ipaq

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

 



Hi Tom
Thanks for the patch. I applied it, but it didn't change anything  
unfortunately, so I guess it's in the libraries.
 From what I can tell, it's in the GTK+ library. which gets called  
from gnu_java_awt_peer_gtk_GtkToolkit.c in the  
Java_gnu_java_awt_peer_gtk_GtkToolkit_gtkMain function. which  
basically calls gtk_main in the GTK+ library.

I guess I'll try updating the GTK+ library.

Thanks for your help,

Ben

On 14 Mar 2006, at 17:31, Thomas Fitzsimmons wrote:

> On Tue, 2006-03-14 at 13:17 +0000, Ben Pirt wrote:
>> Hi,
>> I have been trying to get classpath working on a hx4700 iPaq using
>> the openembedded build system. I am using jamvm as my virtual
>> machine, but every time I try to run any app which is not headless I
>> get the following error:
>>
>> (.:32755): Gdk-WARNING **: gdk_property_get(): length value has
>> wrapped in calculation (did you pass G_MAXLONG?)
>> java.lang.InternalError: Gdk: gdk_property_get(): length value has
>> wrapped in calculation (did you pass G_MAXLONG?)
>> 	at gnu.java.awt.peer.gtk.gtkToolkit.gtkMain (Native Method)
>> 	at gnu.java.awt.peer.gtk.gtkToolkit$1.run (GtkToolkit.java:129)
>>
>> I have tried several different versions of classpath (up to 0.20) and
>> am running the latest jamvm. Gtk+ is at version 2.6.10-r2
>
> Can you try applying the attached patch to your GNU Classpath tree?
> Then we'll know if this is happening in the peers or in the underlying
> libraries.
>
> Tom
>
> Index: native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
> ===================================================================
> RCS file: /sources/classpath/classpath/native/jni/gtk-peer/ 
> gnu_java_awt_peer_gtk_GtkWindowPeer.c,v
> retrieving revision 1.65
> diff -u -r1.65 gnu_java_awt_peer_gtk_GtkWindowPeer.c
> --- native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c	15  
> Feb 2006 20:55:07 -0000	1.65
> +++ native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c	14  
> Mar 2006 17:25:31 -0000
> @@ -1479,6 +1479,7 @@
>    *bottom = 6;
>    *right = 6;
>
> +#if 0
>    /* Request that the window manager set window's
>       _NET_FRAME_EXTENTS property. */
>    request_frame_extents (window);
> @@ -1501,6 +1502,7 @@
>        *top = extents [2];
>        *bottom = extents [3];
>      }
> +#endif
>  }
>
>  static Atom extents_atom = 0;
> @@ -1706,6 +1708,7 @@
>    unsigned long *extents;
>    union extents_union gu_ex;
>
> +#if 0
>    gu_ex.extents = &extents;
>    if (gdk_atom_intern ("_NET_FRAME_EXTENTS", FALSE) == event->atom
>        && gdk_property_get (event->window,
> @@ -1726,6 +1729,7 @@
>  				    (jint) extents[3],  /* bottom */
>  				    (jint) extents[1]); /* right */
>      }
> +#endif
>
>
>    return FALSE;

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://developer.classpath.org/pipermail/classpath/attachments/20060315/b86cae75/attachment.htm

[Index of Archives]     [Linux Kernel]     [Linux Cryptography]     [Fedora]     [Fedora Directory]     [Red Hat Development]

  Powered by Linux