[java-atk-wrapper] Wrapper: Create setRunAttributes in AtkEditableText
- From: Magdalen Berns <mberns src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [java-atk-wrapper] Wrapper: Create setRunAttributes in AtkEditableText
- Date: Tue, 14 Jul 2015 21:51:31 +0000 (UTC)
commit c667c6d380ab9d66e1c82451d8f75a5aa2757eb4
Author: Magdalen Berns <m berns thismagpie com>
Date: Tue Jul 14 22:47:38 2015 +0100
Wrapper: Create setRunAttributes in AtkEditableText
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=740439
.../org/GNOME/Accessibility/AtkEditableText.java | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/wrapper/org/GNOME/Accessibility/AtkEditableText.java
b/wrapper/org/GNOME/Accessibility/AtkEditableText.java
index 2728e71..352a016 100644
--- a/wrapper/org/GNOME/Accessibility/AtkEditableText.java
+++ b/wrapper/org/GNOME/Accessibility/AtkEditableText.java
@@ -78,5 +78,20 @@ public class AtkEditableText extends AtkText {
public void paste_text (int position) {
acc_edt_text.paste(position);
}
+
+ /**
+ * Sets run attributes for the text between two indices.
+ *
+ * @param as the AttributeSet for the text
+ * @param start the start index of the text as an int
+ * @param end the end index for the text as an int
+ * @return whether setRunAttributes was called
+ * TODO return is a bit presumptious. This should ideally include a check for whether
+ * attributes were set.
+ */
+ public boolean setRunAttributes(AttributeSet as, int start, int end) {
+ acc_edt_text.setAttributes(start, end, as);
+ return true;
+ }
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]