GtkContainerPeer.java (handleEvent): Check for null Graphics pointer returned by FileDialogPeer.

2003-12-16  Fernando Nasser  <fnasser@redhat.com>

        * gnu/java/awt/peer/gtk/GtkContainerPeer.java (handleEvent): Check for
        null Graphics pointer returned by FileDialogPeer.

From-SVN: r74744
This commit is contained in:
Fernando Nasser 2003-12-17 17:20:00 +00:00 committed by Fernando Nasser
parent 5c832178f8
commit 310b075bd8
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2003-12-16 Fernando Nasser <fnasser@redhat.com>
* gnu/java/awt/peer/gtk/GtkContainerPeer.java (handleEvent): Check for
null Graphics pointer returned by FileDialogPeer.
2003-12-17 Michael Koch <konqueror@gmx.de>
* libltdl/stamp-h.in: Removed, not used anymore.

View File

@ -107,6 +107,11 @@ public class GtkContainerPeer extends GtkComponentPeer
try
{
Graphics g = getGraphics ();
// Some peers like GtkFileDialogPeer are repainted by Gtk itself
if (g == null)
break;
g.setClip (((PaintEvent)event).getUpdateRect());
if (id == PaintEvent.PAINT)