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

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

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

revision 1.21.2.1 by gnu_andrew, Fri Jan 14 10:24:04 2005 UTC revision 1.21.2.2 by gnu_andrew, Sat Jan 15 17:01:42 2005 UTC
# Line 68  public class GtkTextAreaPeer extends Gtk Line 68  public class GtkTextAreaPeer extends Gtk
68          awtComponent.setFont (f);          awtComponent.setFont (f);
69        }        }
70    
71      FontMetrics fm;      FontMetrics fm = getFontMetrics (f);
     if (GtkToolkit.useGraphics2D ())  
       fm = new GdkClasspathFontPeerMetrics (f);  
     else  
       fm = new GdkFontMetrics (f);  
72    
73      TextArea ta = ((TextArea) awtComponent);      TextArea ta = ((TextArea) awtComponent);
74      int sizeRows = ta.getRows ();      int sizeRows = ta.getRows ();
# Line 130  public class GtkTextAreaPeer extends Gtk Line 126  public class GtkTextAreaPeer extends Gtk
126      if (f == null)      if (f == null)
127        return new Dimension (width, height);        return new Dimension (width, height);
128    
129      FontMetrics fm;      FontMetrics fm = getFontMetrics (f);
     if (GtkToolkit.useGraphics2D ())  
       fm = new GdkClasspathFontPeerMetrics (f);  
     else  
       fm = new GdkFontMetrics (f);  
130    
131      int sizeRows = rows == 0 ? DEFAULT_ROWS : rows;      int sizeRows = rows == 0 ? DEFAULT_ROWS : rows;
132      int sizeCols = cols == 0 ? DEFAULT_COLS : cols;      int sizeCols = cols == 0 ? DEFAULT_COLS : cols;
# Line 163  public class GtkTextAreaPeer extends Gtk Line 155  public class GtkTextAreaPeer extends Gtk
155      if (f == null)      if (f == null)
156        return new Dimension (width, height);        return new Dimension (width, height);
157    
158      FontMetrics fm;      FontMetrics fm = getFontMetrics (f);
     if (GtkToolkit.useGraphics2D ())  
       fm = new GdkClasspathFontPeerMetrics (f);  
     else  
       fm = new GdkFontMetrics (f);  
159    
160      int sizeRows = rows == 0 ? DEFAULT_ROWS : rows;      int sizeRows = rows == 0 ? DEFAULT_ROWS : rows;
161      int sizeCols = cols == 0 ? DEFAULT_COLS : cols;      int sizeCols = cols == 0 ? DEFAULT_COLS : cols;

Legend:
Removed from v.1.21.2.1  
changed lines
  Added in v.1.21.2.2

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