diff options
author | DonScorgie <DonScorgie@8f060a39-251c-0410-b1f3-431655927647> | 2006-11-04 14:32:41 (GMT) |
---|---|---|
committer | DonScorgie <DonScorgie@8f060a39-251c-0410-b1f3-431655927647> | 2006-11-04 14:32:41 (GMT) |
commit | 573727069035a3d2d67a9e293c2130d248500376 (patch) | |
tree | 080e6445b9c857060b0ad60a8fa689ee05981eb8 /src/TextThought.py | |
parent | 4289c3e2eb907537c1af00e5038acb258aa86658 (diff) |
* src/TextThought.py:
Check the function return for get_direction, not just the function
address. Oops.
* src/BaseThought.py:
Don't print events - just pass silently
git-svn-id: http://labyrinth.googlecode.com/svn/trunk@108 8f060a39-251c-0410-b1f3-431655927647
Diffstat (limited to 'src/TextThought.py')
-rw-r--r-- | src/TextThought.py | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/TextThought.py b/src/TextThought.py index 4033afe..c2c412f 100644 --- a/src/TextThought.py +++ b/src/TextThought.py @@ -48,7 +48,7 @@ class TextThought (BaseThought.BaseThought): self.moving = False - if prefs.get_direction == gtk.TEXT_DIR_LTR: + if prefs.get_direction () == gtk.TEXT_DIR_LTR: self.pango_context.set_base_dir (pango.DIRECTION_LTR) else: self.pango_context.set_base_dir (pango.DIRECTION_RTL) @@ -152,7 +152,6 @@ class TextThought (BaseThought.BaseThought): starty /= pango.SCALE curx /= pango.SCALE cury /= pango.SCALE - context.move_to (self.text_location[0]+startx, self.text_location[1]+starty) context.line_to (self.text_location[0]+startx, self.text_location[1]+starty+cury) context.stroke () @@ -600,3 +599,12 @@ class TextThought (BaseThought.BaseThought): self.emit ("title_changed", self.text) self.bindex = self.bindex_from_index (self.index) self.emit ("update_view") + + def delete_surroundings(self, imcontext, offset, n_chars, mode): + print "Deleting surroundings" + + def preedit_changed (self, imcontext, mode): + print "Preedit changed: "+str(imcontext.get_preedit_string ()) + + def retrieve_surroundings (self, imcontext, mode): + print "Retrieving surroundings" |