summaryrefslogtreecommitdiff
path: root/gnu/java/awt
diff options
context:
space:
mode:
authorAndrew John Hughes <gnu_andrew@member.fsf.org>2005-04-03 00:09:08 +0000
committerAndrew John Hughes <gnu_andrew@member.fsf.org>2005-04-03 00:09:08 +0000
commit8d6cd83a7f7a707aebe9e8f0b98d1bb9a6c0f390 (patch)
treefe4b0be51ab9a34ed4a322c0150c1d65f368eb12 /gnu/java/awt
parentb4b5c4667bad3f4add76b8a63bfb8f1d2e156803 (diff)
downloadclasspath-8d6cd83a7f7a707aebe9e8f0b98d1bb9a6c0f390.tar.gz
2005-04-03 Andrew John Hughes <gnu_andrew@member.fsf.org>
Merge from HEAD --> generics-branch for 28th of March to 2nd of April. Changelog: 2005-04-01 Tom Tromey <tromey@redhat.com> * java/lang/AssertionError.java: Typo fix. 2005-04-01 Michael Koch <konqueror@gmx.de> * java/io/PipedInputStream.java (read): Make sure a positive byte value is returned. Revised javadoc. Thanks to Olafur Bragason for reporting these bugs. 2005-04-01 Guilhem Lavaux <guilhem@kaffe.org> * java/awt/image/IndexColorModel.java (getRGB): Check if pixel is negative. 2005-03-31 Thomas Fitzsimmons <fitzsim@redhat.com> * javax/swing/text/JTextComponent.java (viewToModel): New method. 2005-03-31 Audrius Meskauskas <audriusa@bluewin.ch> * org/omg/CORBA/ORBPackage/InconsistentTypeCode.java, org/omg/CORBA/ORBPackage/InvalidName.java, org/omg/CORBA/ORBPackage/package.html: New files. 2005-03-31 Michael Koch <konqueror@gmx.de> * gnu/java/awt/peer/gtk/GdkGraphics.java (getClipBounds): Handle clip being null. (setClip): Likewise. * java/beans/beancontext/BeanContextSupport.java (add): Implemented. (addAll): Likewise. (clear): Likewise. (removeAll): Likewise. (retainAll): Likewise. 2005-03-30 Sven de Marothy <sven@physto.se> * gnu/java/awt/peer/gtk/GdkGraphics.java: (drawImage): Don't notify the image observer for offscreen images. * gnu/java/awt/peer/gtk/GtkImagePainter.java: (setPixels): Don't notify the image observer. 2005-03-30 Michael Koch <konqueror@gmx.de> * java/beans/beancontext/BeanContextServicesSupport.java (BeanContextServicesSupport): Reimplemented. (addBeanContextServicesListener): Implemented. (initialize): Likewise. (removeBeanContextServicesListener): Likewise. * java/beans/beancontext/BeanContextSupport.java (add): Likewise. (addBeanContextMembershipListener): Likewise. (getLocale): Likewise. (initialize): Likewise. (iterator): Likewise. (remove): Likewise. (toArray): Likewise. 2005-03-30 Michael Koch <konqueror@gmx.de> * java/awt/image/ConvolveOp.java: Removed comment added by eclipse. 2005-03-30 Michael Koch <konqueror@gmx.de> * gnu/xml/aelfred2/XmlParser.java: Revert my typo fix. 2005-03-30 Michael Koch <konqueror@gmx.de> * java/awt/geom/CubicCurve2D.java, java/awt/geom/QuadCurve2D.java: Fixed typo in name of Brian Cough. 2005-03-29 Guilhem Lavaux <guilhem@kaffe.org> * native/jni/java-nio/gnu_java_nio_VMSelector.c (Java_gnu_java_nio_VMSelector_select): Use GetStaticMethodID for Thread.interrupted(). 2005-03-29 Jeroen Frijters <jeroen@frijters.net> * gnu/classpath/SystemProperties.java (static): Converted encoding aliases to lower case and removed redudant aliases. * gnu/java/io/EncodingManager.java (findEncoderConstructor, findDecoderConstructor): Call new method resolveAlias(). (resolveAlias): New method. * java/lang/System.java (getProperties): Removed uppercase aliases from comments. 2005-03-28 Tom Tromey <tromey@redhat.com> * java/net/URL.java (DEFAULT_SEARCH_PATH): Added org.metastatic.jessie. 2005-03-28 Tom Tromey <tromey@redhat.com> * java/lang/ClassLoader.java (loadClass): Resolve class even if it was already found.
Diffstat (limited to 'gnu/java/awt')
-rw-r--r--gnu/java/awt/peer/gtk/GdkGraphics.java30
-rw-r--r--gnu/java/awt/peer/gtk/GtkImagePainter.java5
2 files changed, 6 insertions, 29 deletions
diff --git a/gnu/java/awt/peer/gtk/GdkGraphics.java b/gnu/java/awt/peer/gtk/GdkGraphics.java
index 7361b291c..70b3abca7 100644
--- a/gnu/java/awt/peer/gtk/GdkGraphics.java
+++ b/gnu/java/awt/peer/gtk/GdkGraphics.java
@@ -147,11 +147,6 @@ public class GdkGraphics extends Graphics
int height = img.getHeight (null);
copyPixmap (img.getGraphics (),
x, y, width, height);
- // FIXME: need to differentiate between SOMEBITS and FRAMEBITS.
- if (observer != null)
- observer.imageUpdate (img,
- ImageObserver.FRAMEBITS,
- x, y, width, height);
return true;
}
@@ -171,12 +166,6 @@ public class GdkGraphics extends Graphics
int height = img.getHeight (null);
copyPixmap (img.getGraphics (),
x, y, width, height);
-
- // FIXME: need to differentiate between SOMEBITS and FRAMEBITS.
- if (observer != null)
- observer.imageUpdate (img,
- ImageObserver.FRAMEBITS,
- x, y, width, height);
return true;
}
@@ -197,11 +186,6 @@ public class GdkGraphics extends Graphics
copyAndScalePixmap (img.getGraphics (), false, false,
0, 0, img.getWidth (null), img.getHeight (null),
x, y, width, height);
- // FIXME: need to differentiate between SOMEBITS and FRAMEBITS.
- if (observer != null)
- observer.imageUpdate (img,
- ImageObserver.FRAMEBITS,
- x, y, width, height);
return true;
}
@@ -286,12 +270,6 @@ public class GdkGraphics extends Graphics
copyAndScalePixmap (img.getGraphics (), x_flip, y_flip,
sx_start, sy_start, s_width, s_height,
dx_start, dy_start, d_width, d_height);
-
- // FIXME: need to differentiate between SOMEBITS and FRAMEBITS.
- if (observer != null)
- observer.imageUpdate (img,
- ImageObserver.FRAMEBITS,
- dx_start, dy_start, d_width, d_height);
return true;
}
@@ -404,7 +382,10 @@ public class GdkGraphics extends Graphics
public Rectangle getClipBounds ()
{
- return new Rectangle (clip.x, clip.y, clip.width, clip.height);
+ if (clip == null)
+ return null;
+ else
+ return clip.getBounds();
}
public Color getColor ()
@@ -445,7 +426,8 @@ public class GdkGraphics extends Graphics
public void setClip (Shape clip)
{
- setClip (clip.getBounds ());
+ if (clip != null)
+ setClip(clip.getBounds());
}
private native void setFGColor(int red, int green, int blue);
diff --git a/gnu/java/awt/peer/gtk/GtkImagePainter.java b/gnu/java/awt/peer/gtk/GtkImagePainter.java
index 1e5eb4f6a..9f2ecb7dc 100644
--- a/gnu/java/awt/peer/gtk/GtkImagePainter.java
+++ b/gnu/java/awt/peer/gtk/GtkImagePainter.java
@@ -184,11 +184,6 @@ public class GtkImagePainter implements Runnable, ImageConsumer
startX + x, startY + y,
width, height, convertPixels (pixels, model), offset,
scansize, affine);
-
- if (observer != null)
- observer.imageUpdate (image,
- ImageObserver.SOMEBITS,
- x, y, width, height);
}
public void