classpath-patches
[Top][All Lists]
Advanced

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

[cp-patches] FYI: GtkComponentPeer fix


From: Roman Kennke
Subject: [cp-patches] FYI: GtkComponentPeer fix
Date: Tue, 25 Oct 2005 10:29:43 +0000

Hi,

I found a small error in GtkComponentPeer. The method
Component.getLocationOnScreen() returned a value that had an incorrect
added offset from the window decorations. I tracked this to the native
part of GtkComponentPeer. There the function
gdk_window_get_root_origin() should be called instead of
gdk_window_get_origin() so that the real screen coordinates of the
window is returned and not the screen coordinate of the content area of
the window.

2005-10-24  Roman Kennke  <address@hidden>

        * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
       
(Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetGetLocationOnScreen):
        Call gdk_window_get_root_origin instead of gdk_window_get_origin
        so that the window decorations are correctly respected.

/Roman

Attachment: GtkComponentPeer.diff
Description: Text Data


reply via email to

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