[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Patch: FYI: Fixes to AWT PaintEvent handling

From: David Jee
Subject: Patch: FYI: Fixes to AWT PaintEvent handling
Date: 27 Jan 2004 11:04:54 -0500


I committed the following patch to merge recent changes from libgcj.

-David Jee

2004-01-27  David Jee  <address@hidden>

        * gnu/java/awt/peer/gtk/
        (handleEvent): Implemented. Handles PaintEvents.
        (paint): Implemented. Use GTK native methods to queue updates
        for this heavyweight peer.
        * gnu/java/awt/peer/gtk/
        (handleEvent): Removed.
        * include/gnu_java_awt_peer_gtk_GtkComponentPeer.h: Regenerated.
        * java/awt/
        (paint): Implemented. Explictly paint the heavyweight peer.
        (update): Clear the background for heavyweight components.
        (paintAll): No need to call peer.paint() anymore.
        (processEvent): Don't process PaintEvents here. It's now done in
        the peer's handleEvent().
        (processPaintEvent): Removed.
        * java/awt/
        (paint): No need to call super.paint(). Visit heavyweight
        children as well.
        (update): Don't clear the background here.  It's done in
        (visitChildren): Added check to not recurse into Containers.
        * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
        (filter_expose_event_handler): New method.  Filter unwanted
        expose events while painting heavyweight peers.
        New method. Connect filter and block pre_event_handler.
        New method. Disconnect filter and unblock pre_event_handler.
        New method. Invalidate and update given area.
        * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
        (pre_event_handler): Add checks for unwanted expose events.

Attachment: BigPaintHandling2.patch
Description: Text Data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]