summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2006-12-08 09:23:21 +0000
committerMark Wielaard <mark@klomp.org>2006-12-08 09:23:21 +0000
commitcb049cb212533c9ebae9aa57f3c191fd90bf2fc6 (patch)
tree86a5ad694ac88a42eb24d84700c62e811d5e5d06
parent7239524f011fcdd11f1b9da4d299496d8e91830e (diff)
downloadclasspath-cb049cb212533c9ebae9aa57f3c191fd90bf2fc6.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 6eba370af..777b3ab55 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)
{