/[classpath]/classpath/gnu/java/awt/peer/gtk/GtkToolkit.java
ViewVC logotype

Diff of /classpath/gnu/java/awt/peer/gtk/GtkToolkit.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.38 by ericb, Wed May 8 07:53:54 2002 UTC revision 1.39 by tromey, Sat Nov 9 23:17:30 2002 UTC
# Line 69  public class GtkToolkit extends java.awt Line 69  public class GtkToolkit extends java.awt
69    
70    static    static
71    {    {
72        /*    if (Configuration.INIT_LOAD_LIBRARY)      System.loadLibrary("gtkpeer");
             {*/  
           System.out.println("loading gtkpeer");  
         System.loadLibrary("gtkpeer");  
         //      }  
73    }    }
74    
75    public GtkToolkit ()    public GtkToolkit ()
# Line 113  public class GtkToolkit extends java.awt Line 109  public class GtkToolkit extends java.awt
109    public Image createImage (byte[] imagedata, int imageoffset,    public Image createImage (byte[] imagedata, int imageoffset,
110                              int imagelength)                              int imagelength)
111    {    {
112      System.out.println ("createImage byte[] NOT SUPPORTED");      // System.out.println ("createImage byte[] NOT SUPPORTED");
113      return null;      return null;
114    }    }
115    
# Line 189  public class GtkToolkit extends java.awt Line 185  public class GtkToolkit extends java.awt
185                    
186          Rectangle bounds = c.getBounds ();          Rectangle bounds = c.getBounds ();
187          cp.setBounds (bounds.x, bounds.y, bounds.width, bounds.height);          cp.setBounds (bounds.x, bounds.y, bounds.width, bounds.height);
         if (c instanceof Canvas)  
           System.out.println ("width " + bounds.width + " height " + bounds.height);  
           
188          cp.setVisible (c.isVisible ());          cp.setVisible (c.isVisible ());
189        }        }
190    }    }
# Line 241  public class GtkToolkit extends java.awt Line 234  public class GtkToolkit extends java.awt
234    
235    protected LabelPeer createLabel (Label label)    protected LabelPeer createLabel (Label label)
236    {    {
237      LabelPeer lp =  new GtkLabelPeer (label);      return new GtkLabelPeer (label);
     System.out.println("Returning " + lp);  
     return lp;  
238    }    }
239    
240    protected ListPeer createList (List list)    protected ListPeer createList (List list)

Legend:
Removed from v.1.38  
changed lines
  Added in v.1.39

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26