summaryrefslogtreecommitdiff
path: root/java
diff options
context:
space:
mode:
authorSven de Marothy <sven@physto.se>2006-08-03 08:08:13 +0000
committerSven de Marothy <sven@physto.se>2006-08-03 08:08:13 +0000
commitc5c88ca5e91c40eaa18adedf6355b99394107f67 (patch)
tree16c36b706a105e6aff99360fbfead8823217a661 /java
parent40df16749f761c1ba0d043a5e0d3ac73246229da (diff)
downloadclasspath-c5c88ca5e91c40eaa18adedf6355b99394107f67.tar.gz
2006-08-03 Sven de Marothy <sven@physto.se>
* gnu/java/awt/peer/gtk/ComponentGraphics.java (grab, nativeGrab): New methods. * include/gnu_java_awt_peer_gtk_ComponentGraphics.h * native/jni/gtk-peer/gnu_java_awt_peer_gtk_ComponentGraphics.c (nativeGrab): New method. * gnu/java/awt/peer/gtk/GtkComponentPeer.java (print): Implement. * java/awt/Component.java (printAll): Should call peer print method.
Diffstat (limited to 'java')
-rw-r--r--java/awt/Component.java9
1 files changed, 4 insertions, 5 deletions
diff --git a/java/awt/Component.java b/java/awt/Component.java
index b469dacf4..c1a0a5742 100644
--- a/java/awt/Component.java
+++ b/java/awt/Component.java
@@ -2350,10 +2350,7 @@ public abstract class Component
}
/**
- * Prints this component, including all sub-components. This method is
- * provided so that printing can be done in a different manner from
- * painting. However, the implementation in this class simply calls the
- * <code>paintAll()</code> method.
+ * Prints this component, including all sub-components.
*
* @param g the graphics context of the print device
*
@@ -2361,7 +2358,9 @@ public abstract class Component
*/
public void printAll(Graphics g)
{
- paintAll(g);
+ if( peer != null )
+ peer.print( g );
+ paintAll( g );
}
/**