diff options
Diffstat (limited to 'src/caribou.py')
-rw-r--r-- | src/caribou.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/caribou.py b/src/caribou.py index 6ee1944..e6a5bd5 100644 --- a/src/caribou.py +++ b/src/caribou.py @@ -41,7 +41,7 @@ class Test: def __set_text_location(self, acc): text = acc.queryText() [x, y, width, height] = text.getCharacterExtents(text.caretOffset, pyatspi.DESKTOP_COORDS) - cp.cursor_location = gtk.gdk.Rectangle(x, y, width, height) + cp.set_cursor_location(gtk.gdk.Rectangle(x, y, width, height)) cp.show_all() def __set_entry_location(self, acc): @@ -50,9 +50,9 @@ class Test: if x == 0 and y == 0 and width == 0 and height == 0: component = acc.queryComponent() bb = component.getExtents(pyatspi.DESKTOP_COORDS) - cp.cursor_location = gtk.gdk.Rectangle(bb.x, bb.y, bb.width, bb.height) + cp.set_cursor_location(gtk.gdk.Rectangle(bb.x, bb.y, bb.width, bb.height)) else: - cp.cursor_location = gtk.gdk.Rectangle(x, y, width, height) + cp.set_cursor_location(gtk.gdk.Rectangle(x, y, width, height)) cp.show_all() def on_state_changed_focused(self, event): |