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 () |
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 |
|
|
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 |
} |
} |
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) |