[java-atk-wrapper] set_extents Rectangle width and height



commit 78f59a8e08fdf620e3249d95b30a5a461327af54
Author: Magdalen Berns <m berns thismagpie com>
Date:   Mon Jan 19 18:37:59 2015 +0000

    set_extents Rectangle width and height
    
    Bug: https://bugzilla.gnome.org/show_bug.cgi?id=743197

 wrapper/org/GNOME/Accessibility/AtkComponent.java |   11 ++++-------
 1 files changed, 4 insertions(+), 7 deletions(-)
---
diff --git a/wrapper/org/GNOME/Accessibility/AtkComponent.java 
b/wrapper/org/GNOME/Accessibility/AtkComponent.java
index d4cc2eb..97e0ce8 100644
--- a/wrapper/org/GNOME/Accessibility/AtkComponent.java
+++ b/wrapper/org/GNOME/Accessibility/AtkComponent.java
@@ -81,9 +81,10 @@ public class AtkComponent {
   public Dimension get_size () {
     return acc_component.getSize();
   }
+
   public Rectangle set_extents(int x, int y, int width, int height, int coord_type) {
-    this.width  = width;
-    this.height = height;
+    this.width  = (int)acc_component.getSize().getWidth();
+    this.height = (int)acc_component.getSize().getHeight();
 
     if (coord_type == AtkCoordType.SCREEN) {
       Point p = acc_component.getLocationOnScreen();
@@ -92,11 +93,7 @@ public class AtkComponent {
       this.x -= p.x;
       this.y -= p.y;
     }
-    this.extents = new Rectangle(x, y, width, height);
-    return extents;
-  }
-  public Rectangle get_extents(int x, int y, int width, int height, int coord_type){
-    return set_extents(x, y, width, height, coord_type);
+    return new Rectangle(x, y, width, height);
   }
 
   public int get_layer () {


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