[java-atk-wrapper] Component: make use of instance methods
- From: Magdalen Berns <mberns src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [java-atk-wrapper] Component: make use of instance methods
- Date: Mon, 24 Nov 2014 17:42:51 +0000 (UTC)
commit 73c6573b2908815183f09690532ab3e0966d3ab0
Author: Magdalen Berns <m berns thismagpie com>
Date: Sun Nov 23 22:52:21 2014 +0000
Component: make use of instance methods
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=740602
wrapper/org/GNOME/Accessibility/AtkComponent.java | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/wrapper/org/GNOME/Accessibility/AtkComponent.java
b/wrapper/org/GNOME/Accessibility/AtkComponent.java
index 4399232..de88b0e 100644
--- a/wrapper/org/GNOME/Accessibility/AtkComponent.java
+++ b/wrapper/org/GNOME/Accessibility/AtkComponent.java
@@ -28,6 +28,7 @@ public class AtkComponent {
AccessibleContext ac;
AccessibleComponent acc_component;
+ private int x, y;
public AtkComponent (AccessibleContext ac) {
super();
@@ -38,8 +39,8 @@ public class AtkComponent {
public boolean contains (int x, int y, int coord_type) {
if (coord_type == AtkCoordType.SCREEN) {
Point p = acc_component.getLocationOnScreen();
- x -= p.x;
- y -= p.y;
+ this.x -= p.x;
+ this.y -= p.y;
}
return acc_component.contains(new Point(x, y));
@@ -48,8 +49,8 @@ public class AtkComponent {
public AccessibleContext get_accessible_at_point (int x, int y, int coord_type) {
if (coord_type == AtkCoordType.SCREEN) {
Point p = acc_component.getLocationOnScreen();
- x -= p.x;
- y -= p.y;
+ this.x -= p.x;
+ this.y -= p.y;
}
javax.accessibility.Accessible accessible = acc_component.getAccessibleAt(new Point(x, y));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]