diff options
author | Aleksey Lim <alsroot@member.fsf.org> | 2009-12-25 12:22:35 (GMT) |
---|---|---|
committer | Aleksey Lim <alsroot@member.fsf.org> | 2009-12-25 12:22:35 (GMT) |
commit | 070882bcfecee3d17a909c4072da7b2f160d41d3 (patch) | |
tree | 5f364b26912dc6904c307ae49df4bd9cdd739a93 /Speak.activity/chat.py | |
parent | ea7c199885e7295cfa6b6038f3a9865fee9e7f7b (diff) |
Switch to new toolbar design
Diffstat (limited to 'Speak.activity/chat.py')
-rw-r--r-- | Speak.activity/chat.py | 31 |
1 files changed, 4 insertions, 27 deletions
diff --git a/Speak.activity/chat.py b/Speak.activity/chat.py index 0b132f1..251628e 100644 --- a/Speak.activity/chat.py +++ b/Speak.activity/chat.py @@ -43,23 +43,6 @@ ENTRY_COLOR = style.COLOR_PANEL_GREY ENTRY_XPAD = 0 ENTRY_YPAD = 7 -class Toolbar(gtk.Toolbar): - def __init__(self, chat): - gtk.Toolbar.__init__(self) - self.chat = chat - - mute = ToggleToolButton('stock_volume-mute') - mute.set_tooltip(_('Mute')) - mute.connect('toggled', self._toggled_cb) - mute.show() - self.insert(mute, -1) - - def _toggled_cb(self, widget): - if widget.get_active(): - self.chat.quiet = True - self.chat.shut_up() - else: - self.chat.quiet = False class View(hippo.Canvas): def __init__(self): @@ -70,7 +53,6 @@ class View(hippo.Canvas): self.quiet = False self._buddies = {} - self.connect('motion_notify_event', self._motion_notify_cb) # buddies box @@ -190,7 +172,7 @@ class View(hippo.Canvas): ) buddy_face, buddy_widget = self._new_face(buddy, BUDDIES_COLOR) - + char_box = hippo.CanvasBox( orientation = hippo.ORIENTATION_VERTICAL, ) @@ -268,12 +250,7 @@ class View(hippo.Canvas): return (buddy_face, outer) - def _look_at(self, x, y): - self.me.look_at(x, y) + def look_at(self): + self.me.look_at() for i in self._buddies.values(): - i['face'].look_at(x, y) - - def _motion_notify_cb(self, widget, event): - display = gtk.gdk.display_get_default() - screen, x, y, modifiers = display.get_pointer() - self._look_at(x,y) + i['face'].look_at() |