Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--activity.py20
-rw-r--r--brain.py3
-rw-r--r--face.py4
3 files changed, 17 insertions, 10 deletions
diff --git a/activity.py b/activity.py
index 945157d..96a649b 100644
--- a/activity.py
+++ b/activity.py
@@ -122,6 +122,7 @@ class SpeakActivity(SharedActivity):
self.add_events(Gdk.EventMask.POINTER_MOTION_HINT_MASK
| Gdk.EventMask.POINTER_MOTION_MASK)
+
self.connect("motion_notify_event", self._mouse_moved_cb)
box.add_events(Gdk.EventMask.BUTTON_PRESS_MASK)
@@ -305,12 +306,14 @@ class SpeakActivity(SharedActivity):
self.new_instance()
def save_instance(self, file_path):
- cfg = {'status': self.face.status.serialize(),
- 'text': unicode(self.entry.props.text, 'utf-8', 'ignore'),
- 'history': [unicode(i[0], 'utf-8', 'ignore') \
- for i in self.entrycombo.get_model()],
- }
- file(file_path, 'w').write(cjson.encode(cfg))
+ # FIXME: object has no attribute text
+ #cfg = {'status': self.face.status.serialize(),
+ # 'text': unicode(self.entry.props.text, 'utf-8', 'ignore'),
+ # 'history': [unicode(i[0], 'utf-8', 'ignore') \
+ # for i in self.entrycombo.get_model()],
+ # }
+ #file(file_path, 'w').write(cjson.encode(cfg))
+ pass
def share_instance(self, connection, is_initiator):
self.chat.messenger = Messenger(connection, is_initiator, self.chat)
@@ -333,7 +336,7 @@ class SpeakActivity(SharedActivity):
# make the eyes track the motion of the mouse cursor
self.face.look_at()
self.chat.look_at()
-
+
def _mouse_clicked_cb(self, widget, event):
pass
@@ -450,7 +453,8 @@ class SpeakActivity(SharedActivity):
# when a new item is chosen, make sure the text is selected
if not self.entry.is_focus():
self.entry.grab_focus()
- self.entry.select_region(0, -1)
+ # FIXME: CellView object has no attribute select_region
+ #self.entry.select_region(0, -1)
def _entry_key_press_cb(self, combo, event):
# make the up/down arrows navigate through our history
diff --git a/brain.py b/brain.py
index 409bbd7..bb16778 100644
--- a/brain.py
+++ b/brain.py
@@ -20,6 +20,7 @@
# If not, see <http://www.gnu.org/licenses/>.
from gi.repository import Gtk
+from gi.repository import Gdk
from gi.repository import GObject
from gettext import gettext as _
@@ -87,7 +88,7 @@ def load(activity, voice, sorry=None):
return False
old_cursor = activity._cursor
- activity.set_cursor(Gdk.WATCH)
+ activity.set_cursor(Gdk.Cursor(Gdk.CursorType.WATCH))
def load_brain():
global _kernel
diff --git a/face.py b/face.py
index 8393788..fd95af6 100644
--- a/face.py
+++ b/face.py
@@ -141,7 +141,9 @@ class View(Gtk.EventBox):
if self._eyes:
if pos is None:
display = Gdk.Display()
- screen_, x, y, modifiers_ = display.get_pointer()
+ # FIXME: Bug in gi
+ # screen_, x, y, modifiers_ = display.get_pointer()
+ x, y = (0,0)
else:
x, y = pos
map(lambda e, x=x, y=y: e.look_at(x, y), self._eyes)