Costantino Cerbo | 5 Jan 2010 14:59
Picon

Re: Gtkjfilechooser: new release 1.4

2009/12/28 Pavel Porvatov <Pavel.Porvatov@...>:
> I filed a new bug:
> http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6913179, which we would
> like to have fixed in jdk7.

Hello,

I would follow this steps:
1. Write some C code to call the desired functions in GtkFileChooserDialog
2. Generate the JNI interface
3. Rewriting sun.awt.X11.XFileDialogPeer to call the native code through JNI

What do you think about? Do you have further suggestions?

Regards,
Costantino

Andrey Pikalev | 6 Jan 2010 02:22
Picon

Re: Gtkjfilechooser: new release 1.4

Hi Costantino,

Swing team members you are working with are on winter holidays until
Monday, Jan 11th. Hence there may be a delay with response for a few
days, sorry.

Thanks,
	Andrey.

Costantino Cerbo wrote:
> 2009/12/28 Pavel Porvatov <Pavel.Porvatov@...>:
>> I filed a new bug:
>> http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6913179, which we would
>> like to have fixed in jdk7.
> 
> Hello,
> 
> I would follow this steps:
> 1. Write some C code to call the desired functions in GtkFileChooserDialog
> 2. Generate the JNI interface
> 3. Rewriting sun.awt.X11.XFileDialogPeer to call the native code through JNI
> 
> What do you think about? Do you have further suggestions?
> 
> Regards,
> Costantino

Anthony Petrov | 11 Jan 2010 16:00
Picon

Re: Gtkjfilechooser: new release 1.4

Hi Costantino,

The fix actually belongs to the AWT, so I'm CC'ing the awt-dev <at>  mailing 
list where we can continue to discuss the topic.

On 1/5/2010 4:59 PM Costantino Cerbo wrote:
>> http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6913179, which we would
> 
> I would follow this steps:
> 1. Write some C code to call the desired functions in GtkFileChooserDialog
> 2. Generate the JNI interface
> 3. Rewriting sun.awt.X11.XFileDialogPeer to call the native code through JNI
> 
> What do you think about? Do you have further suggestions?

Generally we tend to avoid using loads of native code in the XToolkit. 
You can notice it by looking at the src/solaris/native/sun/xawt/ 
directory: there are just four files.

Would that be possible to take a similar approach with the enhanced file 
dialog fix?

Also, please have a look at 6757222 which is linked from the original 
bug report. It seems that both Swing and AWT could benefit if the 
interface to the GTK were shared among the libraries. Though that looks 
like a slightly bigger project.

--
best regards,
Anthony
(Continue reading)


Gmane