[caribou] Make Keyboard not go to OOo paragraph.



commit fb67e1396d1a77432beeb923dae94a06b2e7fb16
Author: Eitan Isaacson <eitan monotonous org>
Date:   Mon Jun 6 18:47:06 2011 -0700

    Make Keyboard not go to OOo paragraph.

 im/gtk3/caribou-imcontext.vala |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/im/gtk3/caribou-imcontext.vala b/im/gtk3/caribou-imcontext.vala
index ac3e43c..ca6abb0 100644
--- a/im/gtk3/caribou-imcontext.vala
+++ b/im/gtk3/caribou-imcontext.vala
@@ -59,6 +59,10 @@ namespace Caribou {
                 return false;
             }
 
+            /* We don't want the keyboard on the paragraph in OOo */
+            if (child.get_role() == Atk.Role.PARAGRAPH)
+                child = child.get_parent();
+
             Atk.component_get_extents ((Atk.Component) child,
                                        out x, out y, out w, out h,
                                        Atk.CoordType.SCREEN);



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