Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [platform-swt-dev] patch for gtk2 binding


Speaking of deprecated APIs and future plans, I think this conversation is right on spot.
Let me tell you what we (the SWT team) believe the most important directions are for SWT/GTK.

1.  SWT/GTK uses *a lot* of deprecated API.  The most problematic are the whole *deprecated widgets*, like GtkCList.  I am working on an implementation of Table and Tree based on the GTK2 widgets.

2.  NLS - a must fix.  Probably we should start by changing the way we pass Strings as arguments / answer Strings.  Right now we have some Java code that makes a ByteArray from a String, and pass that.  Given the fact that GTK2 is Unicode all the way, this is not necessary.  We can just use the VM's GetUTF8 facility.

I do not expect, of course, that doing this will resolve all NLS issues, so we will have to have a "second pass".  I think it is not possible to guess what will be needed at that point, before we do "pass 1".

3.  Performance.  Are all these handles really necessary?  Is it possible that the clipping and z-order restrictions in GTK get fixed - that way we could buy their "everything is lightweight" story?  Do we really need all those crazy resizing hacks?  Is there anything we could do about the awful paint performance?

Jeffrey:  If you find something that you are comfortable with fixing, by all means go and do it.  Don't hesitate to ask us in the middle.  SWT has a lot of quirks that exist because of historical reasons, and are not documented anywhere.
Speaking of the ProgressBar patch:  the change is good.  Apart from getting rid of deprecated API is good in itself, it also fixes a problem with ProgressBar causing crashes on some broken themes.

Boris




Jeffrey Morgan <Jeffrey.Morgan@xxxxxxxxxxxxxxx>
Sent by: platform-swt-dev-admin@xxxxxxxxxxx

07/10/2002 01:00 PM
Please respond to platform-swt-dev

       
        To:        "'platform-swt-dev@xxxxxxxxxxx'" <platform-swt-dev@xxxxxxxxxxx>
        cc:        
        Subject:        RE: [platform-swt-dev] patch for gtk2 binding



The API documents on the GTK website list it
under the Deprecated category.  Please see:

http://developer.gnome.org/doc/API/2.0/gtk/index.html

SWT will continue to work fine with the GtkPixmap
class but it has been suggested on a few lists and
in the GNOME 2 porting guide that developers should
be using GtkImage.  

SWT/GTK is currently using several deprecated GTK
APIs.  I would guess this was primarily done in order to

meet the 2.0 freeze dates.  What is the policy going

forward on using deprecated APIs?  Is it a priority

to move away from these methods?  Also, is it a priority

to replace emulated objects with native peers where
they exist (CoolBar, CoolItem)?

Thanks
-Jeff

> -----Original Message-----
> From: Steve Northover [
mailto:Steve_Northover@xxxxxxx]
> Sent: Wednesday, July 10, 2002 12:35 PM

> To: platform-swt-dev@xxxxxxxxxxx

> Subject: RE: [platform-swt-dev] patch for gtk2 binding

>
>
>
> It's not deprecated in the doc.

>
>
>
>                                                              
>                                                              
>                
>                       Jeffrey Morgan                          
>                                                              
>                
>                       <Jeffrey.Morgan@Bristol         To:    
>  "'platform-swt-dev@xxxxxxxxxxx'"
> <platform-swt-dev@xxxxxxxxxxx>            
>                       West.com>                       cc:    
>                                                              
>                
>                       Sent by:                        
> Subject: RE: [platform-swt-dev] patch for gtk2 binding        
>                        
>                       platform-swt-dev-admin@                
>                                                              
>                
>                       eclipse.org                            
>                                                              
>                
>                                                              
>                                                              
>                
>                                                              
>                                                              
>                
>                       07/10/02 12:22 PM                      
>                                                              
>                
>                       Please respond to                      
>                                                              
>                
>                       platform-swt-dev                        
>                                                              
>                
>                                                              
>                                                              
>                
>                                                              
>                                                              
>                

>
>
>
> GtkPixmap is deprecated in GTK2.  The first line of

> code in the header file is "#ifndef GTK_DISABLE_DEPRECATED"

> and is not closed until the last line in the file.

>
>
> > -----Original Message-----

> > From: Steve Northover [
mailto:Steve_Northover@xxxxxxx]
> > Sent: Wednesday, July 10, 2002 11:48 AM

> > To: platform-swt-dev@xxxxxxxxxxx

> > Subject: Re: [platform-swt-dev] patch for gtk2 binding

> >

> >

> >

> > Hi again Jeff.  As GtkPixmap is not deprecated, why should we

> > get rid of

> > it?

> >

> > Steve

> >

> > _______________________________________________

> > platform-swt-dev mailing list

> > platform-swt-dev@xxxxxxxxxxx

> >
http://dev.eclipse.org/mailman/listinfo/platform-swt-dev
> >

>
>
>
>
>
>
>
> _______________________________________________

> platform-swt-dev mailing list

> platform-swt-dev@xxxxxxxxxxx

>
http://dev.eclipse.org/mailman/listinfo/platform-swt-dev
>



Back to the top