Parent Directory | Revision Log | Patch
revision 1.14 by tromey, Sat Nov 9 23:17:30 2002 UTC | revision 1.15 by tromey, Wed Feb 19 03:50:33 2003 UTC | |
---|---|---|
# | Line 51 public class GtkTextFieldPeer extends Gt | Line 51 public class GtkTextFieldPeer extends Gt |
51 | ||
52 | native void gtkEntryGetSize (int cols, int dims[]); | native void gtkEntryGetSize (int cols, int dims[]); |
53 | ||
54 | native void gtkSetFont(String xlfd, int size); | |
55 | ||
56 | public GtkTextFieldPeer (TextField tf) | public GtkTextFieldPeer (TextField tf) |
57 | { | { |
58 | super (tf); | super (tf); |
# | Line 95 public class GtkTextFieldPeer extends Gt | Line 97 public class GtkTextFieldPeer extends Gt |
97 | { | { |
98 | setEchoChar (c); | setEchoChar (c); |
99 | } | } |
100 | ||
101 | public void setFont (Font f) | |
102 | { | |
103 | gtkSetFont(((GtkFontPeer)f.getPeer()).getXLFD(), f.getSize()); | |
104 | } | |
105 | } | } |
|
savannah-hackers-public@gnu.org | ViewVC Help |
Powered by ViewVC 1.1.26 |