[java-atk-wrapper] Wrapper: add check for WINDOW to get_layer
- From: Magdalen Berns <mberns src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [java-atk-wrapper] Wrapper: add check for WINDOW to get_layer
- Date: Sun, 14 Jun 2015 12:53:06 +0000 (UTC)
commit e2f3680fcab27882f62a5b5da8e45b609852ad41
Author: Magdalen Berns <m berns thismagpie com>
Date: Sun Jun 14 13:51:24 2015 +0100
Wrapper: add check for WINDOW to get_layer
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=750934
wrapper/org/GNOME/Accessibility/AtkComponent.java | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/wrapper/org/GNOME/Accessibility/AtkComponent.java
b/wrapper/org/GNOME/Accessibility/AtkComponent.java
index 6f36340..9431b10 100644
--- a/wrapper/org/GNOME/Accessibility/AtkComponent.java
+++ b/wrapper/org/GNOME/Accessibility/AtkComponent.java
@@ -1,6 +1,7 @@
/*
* Java ATK Wrapper for GNOME
* Copyright (C) 2009 Sun Microsystems Inc.
+ * Copyright (C) 2015 Magdalen Berns <m berns thismagpie com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -94,7 +95,6 @@ public class AtkComponent {
}
public Rectangle get_extents() {
- System.out.println(acc_component.getBounds());
return acc_component.getBounds();
}
@@ -121,6 +121,10 @@ public class AtkComponent {
return AtkLayer.CANVAS;
}
+ if (role == AccessibleRole.WINDOW) {
+ return AtkLayer.WINDOW;
+ }
+
return AtkLayer.WIDGET;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]