diff options
author | Aneesh Dogra <lionaneesh@gmail.com> | 2012-12-08 19:08:34 (GMT) |
---|---|---|
committer | Aneesh Dogra <lionaneesh@gmail.com> | 2012-12-08 19:10:35 (GMT) |
commit | 7a132333bd1982b723e164f16c691500ffb08bd8 (patch) | |
tree | 20eca690fdade7ab8577ee3ddaa02d667847a755 | |
parent | 9611571c56b3d39956b248cb0b48044a5adac2bf (diff) |
More fixes.
-rw-r--r-- | purk/ui.py | 2 | ||||
-rw-r--r-- | purk/widgets.py | 18 |
2 files changed, 10 insertions, 10 deletions
@@ -45,7 +45,7 @@ class GtkSource(object): def __init__(self, tag): self.tag = tag def unregister(self): - gobject.source_remove(self.tag) + GObject.source_remove(self.tag) def register_idle(f, *args, **kwargs): priority = kwargs.pop("priority",PRIORITY_DEFAULT_IDLE) diff --git a/purk/widgets.py b/purk/widgets.py index a9b6621..e7fe793 100644 --- a/purk/widgets.py +++ b/purk/widgets.py @@ -304,9 +304,9 @@ class TextInput(Gtk.Entry): def keypress(self, event): keychar = ( - (Gdk.CONTROL_MASK, '^'), - (Gdk.SHIFT_MASK, '+'), - (Gdk.MOD1_MASK, '!') + (Gdk.EventMask.CONTROL_MASK, '^'), + (Gdk.EventMask.SHIFT_MASK, '+'), + (Gdk.EventMask.MOD1_MASK, '!') ) key = '' @@ -585,7 +585,7 @@ class TextOutput(Gtk.TextView): if not buffer: buffer = Gtk.TextBuffer.new(tag_table) - Gtk.TextView.__init__(buffer) + Gtk.TextView.__init__(self) self.core = core self.events = core.events self.win = window @@ -596,13 +596,13 @@ class TextOutput(Gtk.TextView): self.set_editable(False) self.set_cursor_visible(False) - self.set_property("left-margin", 3) - self.set_property("right-margin", 3) - self.linking = set() - self.add_events(Gdk.POINTER_MOTION_HINT_MASK) - self.add_events(Gdk.LEAVE_NOTIFY_MASK) + self.add_events(Gdk.EventMask.POINTER_MOTION_HINT_MASK) + self.add_events(Gdk.EventMask.LEAVE_NOTIFY_MASK) + + self.add_events(Gdk.EventMask.POINTER_MOTION_HINT_MASK) + self.add_events(Gdk.EventMask.LEAVE_NOTIFY_MASK) self.connect('populate-popup', self.popup) self.connect('motion-notify-event', self.hover) |