summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2006-12-08 09:24:31 +0000
committerMark Wielaard <mark@klomp.org>2006-12-08 09:24:31 +0000
commit908637946b0d2306d9f080af6af81cc6b45779eb (patch)
tree4fa8b7bf2e12711d504f180239dcf71ddd003b5b
parent5ad612425520b68d0df0f3d45ad1e533ce6e0676 (diff)
downloadclasspath-908637946b0d2306d9f080af6af81cc6b45779eb.tar.gz
2006-12-05 Roman Kennke <kennke@aicas.com>
(paintComponent): Include paint area from event. (updateComponent): Include paint area from event.
-rw-r--r--ChangeLog5
-rw-r--r--gnu/java/awt/peer/gtk/GtkComponentPeer.java7
2 files changed, 12 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 721494ce5..e932117e7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-12-05 Roman Kennke <kennke@aicas.com>
+
+ (paintComponent): Include paint area from event.
+ (updateComponent): Include paint area from event.
+
2006-12-06 Thomas Fitzsimmons <fitzsim@redhat.com>
* java/awt/ScrollPane.java (addNotify): Add a parent panel for any
diff --git a/gnu/java/awt/peer/gtk/GtkComponentPeer.java b/gnu/java/awt/peer/gtk/GtkComponentPeer.java
index ca992b215..b1ef09d6e 100644
--- a/gnu/java/awt/peer/gtk/GtkComponentPeer.java
+++ b/gnu/java/awt/peer/gtk/GtkComponentPeer.java
@@ -313,6 +313,10 @@ public class GtkComponentPeer extends GtkGenericPeer
// seems expensive. However, the graphics state does not carry
// over between calls to paint, and resetting the graphics object
// may even be more costly than simply creating a new one.
+
+ // Make sure that the paintArea includes the area from the event
+ // in the case when an application sends PaintEvents directly.
+ coalescePaintEvent(event);
Rectangle paintArea;
synchronized (this)
{
@@ -345,6 +349,9 @@ public class GtkComponentPeer extends GtkGenericPeer
|| (awtComponent.getWidth() < 1 || awtComponent.getHeight() < 1))
return;
+ // Make sure that the paintArea includes the area from the event
+ // in the case when an application sends PaintEvents directly.
+ coalescePaintEvent(event);
Rectangle paintArea;
synchronized (this)
{