Re: GTK+ peers on DirectFB (instead of Xorg)

2008-10-20 Thread ffileppo
Hi, Roman Kennke schrieb: There's some X11 specific code in the GTK peers. You would have to get rid of this. Besides this, it should be possible. It's some work though. at least some of this X11-specific code is only there to implement GraphicsEnvironment and friends. It uses the xrandr

GTK+ peers on DirectFB (instead of Xorg)

2008-10-17 Thread ffileppo
Hi all, is there a way to build GNU Classpath with Gtk peers being usable with DirectFB backend (instead of Xorg/X11)? My final goal would be using these peers based on DirectFB within gcj, is this feasible? Thank you, Francesco

Re: GTK+ peers on DirectFB (instead of Xorg)

2008-10-17 Thread Roman Kennke
Hi Francesco, is there a way to build GNU Classpath with Gtk peers being usable with DirectFB backend (instead of Xorg/X11)? There's some X11 specific code in the GTK peers. You would have to get rid of this. Besides this, it should be possible. It's some work though. /Roman -- http

Re: [cp-patches] FYI: GTK peers fixlet

2008-02-08 Thread Roman Kennke
/java/awt/peer/gtk/GtkToolkit.java: Removed mistakenly committed code. /Roman Am Freitag, den 08.02.2008, 23:22 +0100 schrieb Roman Kennke: This changes the System.loadLibrary() calls in the GTK peers, so that they are only called when configured so. This is important for VMs that can't

[cp-patches] FYI: GTK peers fixlet

2008-02-08 Thread Roman Kennke
This changes the System.loadLibrary() calls in the GTK peers, so that they are only called when configured so. This is important for VMs that can't or don't want to link dynamically, e.g. when creating full static linked binaries like Jamaica. 2008-02-08 Roman Kennke [EMAIL PROTECTED

Re: [cp-patches] Fix for GTk peers with Classpath 0.96.1

2007-11-23 Thread Ian Rogers
Committed. Ian Rogers wrote: Hi, attached is a patch required to make JNI GTk peers work on 32bit architectures. Regards, Ian

[cp-patches] Fix for GTk peers with Classpath 0.96.1

2007-10-17 Thread Ian Rogers
Hi, attached is a patch required to make JNI GTk peers work on 32bit architectures. Regards, Ian --- native/jni/gtk-peer/gtkpeer.c 2007-05-08 01:00:54.0 +0100 +++ native/jni/gtk-peer/gtkpeer.c 2007-10-17 10:49:25.0 +0100 @@ -102,11 +102,13 @@ #else

Re: RFC: [cp-patches] Fix for GTk peers and portable native sync

2007-10-12 Thread Andrew Haley
Andrew John Hughes writes: On Monday 08 October 2007 16:58:57 Andrew John Hughes wrote: On Thursday 27 September 2007 14:24:50 Ian Rogers wrote: Hi, this patch removes a call to atexit from GtkToolkit. The comment didn't give sufficient detail as to why the atexit call was

Re: RFC: [cp-patches] Fix for GTk peers and portable native sync

2007-10-12 Thread Andrew John Hughes
On Monday 08 October 2007 16:58:57 Andrew John Hughes wrote: On Thursday 27 September 2007 14:24:50 Ian Rogers wrote: Hi, this patch removes a call to atexit from GtkToolkit. The comment didn't give sufficient detail as to why the atexit call was necessary and the failure I witnessed in

RFC: [cp-patches] Fix for GTk peers and portable native sync

2007-10-08 Thread Andrew John Hughes
On Thursday 27 September 2007 14:24:50 Ian Rogers wrote: Hi, this patch removes a call to atexit from GtkToolkit. The comment didn't give sufficient detail as to why the atexit call was necessary and the failure I witnessed in the Jikes RVM was as follows: 1) VM runs some AWT code that

[cp-patches] Fix for GTk peers and portable native sync

2007-09-27 Thread Ian Rogers
Hi, this patch removes a call to atexit from GtkToolkit. The comment didn't give sufficient detail as to why the atexit call was necessary and the failure I witnessed in the Jikes RVM was as follows: 1) VM runs some AWT code that causes the atexit routine in GtkToolkit to be registered 2)

[cp-patches] FYI: GTK peers without X

2007-09-11 Thread Roman Kennke
Hi, This patch changes the GTK peers, so that they can be compiled and used on systems without X, for example on GTK for embedded or Windows systems. In many places this only removes imports that are unused, there are only two notable changes: - The GdkRobotPeer now has #ifdef HAVE_XTEST for all

Re: [cp-patches] FYI: GTK peers without X

2007-09-11 Thread Thomas Fitzsimmons
Roman Kennke wrote: Hi, This patch changes the GTK peers, so that they can be compiled and used on systems without X, for example on GTK for embedded or Windows systems. [...] - The code for fetching the frame extents now uses the (new?) GDK function gdk_window_get_frame_extents() rather than

Re: [cp-patches] FYI: GTK peers without X

2007-09-11 Thread Roman Kennke
Hi Tom, - The code for fetching the frame extents now uses the (new?) GDK function gdk_window_get_frame_extents() rather than pulling the frame extents using the extended window property _NET_FRAME_EXTENTS. This will result in the wrong insets being calculated upon window realization,

Re: [cp-patches] FYI: GTK peers without X

2007-09-11 Thread Thomas Fitzsimmons
Roman Kennke wrote: Hi Tom, - The code for fetching the frame extents now uses the (new?) GDK function gdk_window_get_frame_extents() rather than pulling the frame extents using the extended window property _NET_FRAME_EXTENTS. This will result in the wrong insets being calculated upon window

Re: [cp-patches] FYI: Reworked native state management in the GTK peers

2007-04-26 Thread Thomas Fitzsimmons
Roman Kennke wrote: I removed the old NSA native state handling and implemented a more natural approach. The NSA native state API was maintaining (native) hashtables to hold the native state to the peer objects and others. This has a couple of disadvantages: - It's not really scaleable.

[cp-patches] FYI: Tigher cairo integration in gtk peers

2007-02-16 Thread Francis Kung
Hi, This patch provides closer integration between cairo and our GTK peers, using an optimized cairo-backed Raster (and sharing a databuffer) when possible. These changes result in a 30-50% speedup in rendering java2d operations on RGB/ARGB BufferedImage's. Still a bit of a work

[Bug awt/26868] New: GTK+ peers rely on GTK+ on X

2006-03-27 Thread gnu_andrew at member dot fsf dot org
Our GTK+ peers are currently dependent on GTK+ being run on top of X. I tried to compile them on top of GTK+/Quartz (from GTK+ CVS) today and it failed on GdkGraphics.c which relies on the existence of XFlush in gdk/gdkx.h. We need to #ifdef appropriately on the underlying GDK implementation

[cp-patches] FYI: Implement custom cursors for gtk-peers

2006-03-22 Thread Mark Wielaard
Hi, This patch implements custom cursor support for gtk-peers. It works the same as setting icons on frames. 2006-03-22 Mark Wielaard [EMAIL PROTECTED] Fixes bug #26301 * gnu/java/awt/peer/gtk/GtkComponentPeer.java (gtkWidgetSetCursor): Takes GtkImage, x and y coordinates

Re: [cp-patches] FYI: Implement custom cursors for gtk-peers

2006-03-22 Thread Mark Wielaard
On Thu, 2006-03-23 at 00:27 +0100, Mark Wielaard wrote: This patch implements custom cursor support for gtk-peers. Forgot the new file. Sorry. 2006-03-22 Mark Wielaard [EMAIL PROTECTED] * gnu/java/awt/peer/gtk/GtkCursor.java: New class. Committed now. /* GtkCursor.java -- Simple

Re: [cp-patches] FYI: Implement custom cursors for gtk-peers

2006-03-22 Thread Mark Wielaard
On Thu, 2006-03-23 at 00:37 +0100, Mark Wielaard wrote: On Thu, 2006-03-23 at 00:27 +0100, Mark Wielaard wrote: This patch implements custom cursor support for gtk-peers. Forgot the new file. Sorry. And the bug number was wrong in the ChangeLog file. Sigh. Also fix to mention the real bug

Re: Problems running GTK-peers on Nokia-770

2006-02-01 Thread Somas (sent by Nabble.com)
Hi, I tried running simple swing application, and it worked when export the display to another machine (Xwin). I am not sure if this info helps, but I wonder why the rendering fail in the tablet. Thanks -Somas View this message in context: Re: Problems running GTK-peers on Nokia-770 Sent

Re: Problems running GTK-peers on Nokia-770

2005-11-06 Thread Clemens Eisserer
Hello again, I just played a bit further and found out that gdk_rgb_get_visual()-depth returns 24-bit as depth. I do not have any deeper experiences with GTK/GDK at all (since I dislike it a bit to be honest ;) ), but the gdk documentation says that This colormap and the corresponding visual

Re: Problems running GTK-peers on Nokia-770

2005-11-06 Thread Clemens Eisserer
The strange thing is that I wrote a small test-sample myself which does succeed in both cases with a 16 and a 24 bit pixmap, also colormap creation works for both depths, I don't have any clue why it fails inside of classpath's peers. Sorry for the confusion it was a bug in my simple

Re: Problems running GTK-peers on Nokia-770

2005-11-05 Thread Clemens Eisserer
Thanks a lot for looking at this problem, I asked on so many lists since I was not sure which of the many components interacting (jvm, gtk, classpath peers, ...) could cause the problem. My guess is that gdk_drawable_get_colormap returns something we're not expecting. Can you put a printf in

Re: Problems running GTK-peers on Nokia-770

2005-11-04 Thread Mark Wielaard
Hi Clemens, On Wed, 2005-10-26 at 15:42 +, Clemens Eisserer wrote: Nokia claims that the modified GTK-2.6.? they use is binary compatible to GTK-2.6. I went a bit through the peers code and it was quite straightforeward to read, however I did not find a function call to g_object_ref and

Re: Problems running GTK-peers on Nokia-770

2005-11-04 Thread Thomas Fitzsimmons
On Wed, 2005-10-26 at 15:42 +, Clemens Eisserer wrote: Hello, I've just got my Nokia770 2 days ago and today I was able to build a working sablevm package for it, after I sadly failed with kaffe. It really works well (and slow ;) ) expect some glitches with AWT/Peers, however one

Problems running GTK-peers on Nokia-770

2005-10-26 Thread Clemens Eisserer
Hello, I've just got my Nokia770 2 days ago and today I was able to build a working sablevm package for it, after I sadly failed with kaffe. It really works well (and slow ;) ) expect some glitches with AWT/Peers, however one main problem is there which I wasn't able to solve: As soon as I

Re: [cp-patches] Reimplemented gtk-peers datatransfer support

2005-08-21 Thread Mark Wielaard
Hi, On Tue, 2005-08-16 at 19:03 -0400, Thomas Fitzsimmons wrote: Yes, please discuss this with Owen Taylor and file bugs against GTK if necessary. This is a relatively new API and we should provide feedback where it doesn't meet our needs. I filed the following bugs that would make our (and

Re: [cp-patches] Reimplemented gtk-peers datatransfer support

2005-08-21 Thread Thomas Fitzsimmons
On Sun, 2005-08-21 at 16:35 +0200, Mark Wielaard wrote: Hi, On Tue, 2005-08-16 at 19:03 -0400, Thomas Fitzsimmons wrote: Yes, please discuss this with Owen Taylor and file bugs against GTK if necessary. This is a relatively new API and we should provide feedback where it doesn't meet

memory allocation, finalization, jni code and locks (Was: [cp-patches] remove JamVM workarounds from GTK peers)

2005-08-18 Thread Mark Wielaard
Hi, Moving the the main classpath list as a FYI for all runtime developers. They probably know, but since we are now relying on this lets explicitly say so. On Wed, 2005-08-17 at 23:16 -0400, Thomas Fitzsimmons wrote: I'm removing these workarounds for a JamVM deadlock problem that was fixed

Re: [cp-patches] Reimplemented gtk-peers datatransfer support

2005-08-16 Thread Thomas Fitzsimmons
Hi, On Tue, 2005-08-16 at 20:00 +0200, Mark Wielaard wrote: I would like for someone to review how I handled the native/gtk lock/thread transitions. Since the datatransfer api is basically synchronous, but the gtkclipboard is asynchronous we need to call into gtk+ to setup callbacks and then

Re: [cp-patches] [patch] fix memory image source handling in GTK peers

2005-07-26 Thread Mark Wielaard
Hi, On Mon, 2005-07-25 at 21:56 -0400, Thomas Fitzsimmons wrote: @@ -372,8 +374,28 @@ if (x == 0 y == 0 width == 0 height == 0) return; -q().postEvent (new PaintEvent (awtComponent, PaintEvent.UPDATE, - new Rectangle (x, y, width,

Re: [cp-patches] [patch] fix memory image source handling in GTK peers

2005-07-26 Thread Thomas Fitzsimmons
On Tue, 2005-07-26 at 07:48 +0200, Mark Wielaard wrote: I don't think you want to create a (non-daemon) Timer each and every time here. That means that on each repaint() a new Thread is created which is never destroyed and which will prevent the application to ever stop since the Timers will

[cp-patches] [patch] fix memory image source handling in GTK peers

2005-07-25 Thread Thomas Fitzsimmons
Hi, This patch does three things: - implements GtkComponentPeer.repaint timed repaints properly - implements GtkComponentPeer.updateCursorImmediately - fixes handling of memory image sources in GtkImageConsumer I committed this to mainline. This patch gets the Cortado applet closer to working

[cp-patches] [patch] indent gdk_threads calls in GTK peers

2005-07-11 Thread Thomas Fitzsimmons
Hi, I committed this patch. It is mostly a formatting change that makes it clearer which native functions are run with the GDK lock held. This patch may cause some temporary regressions as I separated it out from other work I had in my tree, but I'll fix any problems in the next few days. Tom

Re: Spring-cleaning of gtk peers.

2005-05-27 Thread Roman Kennke
Hi Sven, I propose (and am working on) the following main points: 1) GtkImage is a mess, and is terribly inefficient. Do what was intended with the AWT 1.1 API and wrap something which can be blitted quickly, e.g. a 32-bit int vector in gtk-compatible AABBGGRR format. 2) Get rid of

Re: gtk peers

2003-07-28 Thread Thomas Fitzsimmons
On Mon, 2003-07-28 at 09:02, Brian Jones wrote: All, I know some folks are working on the gtk peers. I think we'd like to make the code enabled with --enable-portable-native-sync the default if possible. Any problems with doing this? This build option may only exist in classpath

Re: gtk peers

2003-07-28 Thread Brian Jones
Thomas Fitzsimmons [EMAIL PROTECTED] writes: On Mon, 2003-07-28 at 09:02, Brian Jones wrote: All, I know some folks are working on the gtk peers. I think we'd like to make the code enabled with --enable-portable-native-sync the default if possible. Any problems with doing

Re: gtk peers

2003-07-28 Thread Tom Tromey
Brian == Brian Jones [EMAIL PROTECTED] writes: Brian Okay. I think that some folks on the jikesrvm team contributed the Brian ifdef'd code enabled by the native-sync option. It was to allow the Brian peers/awt to work with their JVM and supposedly had benefits of using Brian the JVM threading

Re: GTK peers

2003-06-11 Thread John Leuner
It seems that sometimes there is some threading problem which causes an Xlib error: Xlib: unexpected async reply (sequence 0x29)! Using kissme, if I enable some internal debugging (with -t jni), this is less likely to happen, so I think it's a thread timing issue. See what

GTK peers

2003-06-09 Thread John Leuner
I committed some changes to the GTK native peer code to try get it to run a little further than it did before. Now I can sometimes get a very simple application (with one Frame) to run some of the time. It seems that sometimes there is some threading problem which causes an Xlib error: Xlib:

Re: GTK peers

2003-06-09 Thread Brian Jones
John Leuner [EMAIL PROTECTED] writes: I committed some changes to the GTK native peer code to try get it to run a little further than it did before. Now I can sometimes get a very simple application (with one Frame) to run some of the time. It seems that sometimes there is some threading

Re: GTK peers (shot)

2001-08-17 Thread John Leuner
My question is about the GTK peers. I have managed to generate the header files for each .c files, and can run up to the point where an GTK frame is created with a title. (Mouse events also seem to be handled) It's not at all interesting, but I have a screenshot here: http

Re: GTK peers, testing with 1.1 JDKs

2001-08-17 Thread John Leuner
) at kissme_test.FrameTest.main(FrameTest.java:26) I suppose I should go find a 1.1 Blackdown JDK. Thanks for the help and tips, I would love to get the GTK peers working with my JVM, it will open up a whole lot of applications that my JVM could never run previously. John Leuner

Re: GTK peers (-Dsomething.for.toolkit ?) (dynamic linking)

2001-08-13 Thread John Leuner
My question is about the GTK peers. I have managed to generate the header files for each .c files, and can run up to the point where an GTK frame is created with a title. (Mouse events also seem to be handled) It's not at all interesting, but I have a screenshot here: http

Re: GTK peers (-Dsomething.for.toolkit ?) (dynamic linking)

2001-08-13 Thread Tom Tromey
John == John Leuner [EMAIL PROTECTED] writes: You should be able to finish up the peers by simply combining them with a 1.1 JDK. John It's a pity you don't know what it is. I looked through the old John classpath mailing list archive but didn't find anything. If I understand correctly, the

Re: GTK peers (shot)

2001-08-12 Thread Brian Jones
John Leuner [EMAIL PROTECTED] writes: My question is about the GTK peers. I have managed to generate the header files for each .c files, and can run up to the point where an GTK frame is created with a title. (Mouse events also seem to be handled) It's not at all interesting, but I have

Re: GTK+ peers

1999-12-02 Thread John Leuner
gure stuff to let you specify where to get jni.h from until we actually autogenerate that ourselves. That would be most appreciated. How functional are the GTK peers at present? John

Re: GTK+ peers

1999-12-02 Thread Brian Jones
John Leuner [EMAIL PROTECTED] writes: Well in my case it would be nice to be able to tell the Makefile to build a .so library that I can just link in with a normal UNIX executable. But what I'm planning for my VM is also to deploy it as the kernel of an experimental OS (where dynamic linking

Re: GTK+ peers

1999-12-01 Thread John Leuner
build procedure), including the necessary headers from my JVM etc, and then link the objects into a .a library. This has worked well so far for the first two, javaio.a and javanet.a, but when doing the gtk peers I'm missing these headers: gnu_java_awt_peer_gtk_GtkToolkit.h

Re: GTK+ peers

1999-12-01 Thread Brian Jones
John Leuner [EMAIL PROTECTED] writes: They are generated by make and I actually should remove those others in the native/* directories. Ok. Are there any plans to provide separate compilation of these native 'modules'? It would certainly be useful to me, but I don't know if there is

Re: GTK+ peers

1999-11-25 Thread John Leuner
), including the necessary headers from my JVM etc, and then link the objects into a .a library. This has worked well so far for the first two, javaio.a and javanet.a, but when doing the gtk peers I'm missing these headers: gnu_java_awt_peer_gtk_GtkToolkit.h gnu_java_awt_peer_gtk_GtkChoicePeer.h

GTK+ peers update

1999-11-21 Thread Paul Fisher
gdk-pixbuf has been successfully wrapped, and it now functions as an ImageProducer. We can load any image format that gdk-pixbuf supports -- bmp, gif, jpeg, png, pnm, ras, tiff, and xpm. All of these formats can be incrementally loaded (except for PNG, which is due to a buggy loader in

Re: GTK+ peers update

1999-11-21 Thread Paul Fisher
Paul Fisher [EMAIL PROTECTED] writes: gdk-pixbuf has been successfully wrapped, and it now functions as an ImageProducer. We can load any image format that gdk-pixbuf supports -- bmp, gif, jpeg, png, pnm, ras, tiff, and xpm. Oh, and since gdk-pixbuf only supports single frame images, we

Status of beta GTK+ peers release

1999-10-24 Thread Paul Fisher
Unfortunately, the end portion of this week hasn't been so kind to me, and I haven't been able to finish up everything that's necessary for a release. New target date is sometime this week... -- Paul Fisher * [EMAIL PROTECTED]

Re: gtk peers Makefile

1998-12-30 Thread Paul Fisher
Brian Jones [EMAIL PROTECTED] writes: I like the nice little Makefile for the gtk peers, however it really shouldn't be necessary to keep this thing. We're off in our own little world. Please leave us alone. :) Our Makefiles work for the two of us, and that's all that matters. If you want