Browse Source

Accelerators; statusbar back (plan is to indicate there that the user is replying/reposting a message)

master
Julio Biason 15 years ago
parent
commit
25ffad63da
  1. 14
      mitterlib/ui/ui_pygtk.py

14
mitterlib/ui/ui_pygtk.py

@ -222,7 +222,7 @@ class Interface(object):
grid = self._create_grid()
(menu, toolbar, accelerators) = self._create_menu_and_toolbar()
update_field = self._create_update_box()
#statusbar = self._create_statusbar()
statusbar = self._create_statusbar()
update_box = gtk.VPaned()
update_box.pack1(grid, resize=True, shrink=False)
@ -232,7 +232,7 @@ class Interface(object):
box = gtk.VBox(False, 1)
box.pack_start(menu, False, True, 0)
box.pack_start(update_box, True, True, 0)
#box.pack_start(statusbar, False, False, 0)
box.pack_start(statusbar, False, False, 0)
main_window.add(box)
main_window.add_accel_group(accelerators)
@ -384,14 +384,16 @@ class Interface(object):
self._delete_action = gtk.Action('Delete', '_Delete',
'Delete a post', gtk.STOCK_DELETE)
self._delete_action.set_property('sensitive', False)
# TODO: Reconnect
#delete_action.connect('activate', self.delete_tweet)
action_group.add_action(self._delete_action)
action_group.add_action_with_accel(self._delete_action, '<Delete>')
# TODO: Check the accelerator
self._reply_action = gtk.Action('Reply', '_Reply',
"Send a response to someone's else message", gtk.STOCK_REDO)
self._reply_action.set_property('sensitive', False)
# TODO: Connect
action_group.add_action(self._reply_action)
action_group.add_action_with_accel(self._reply_action, '<Ctrl>r')
# TODO: Find a better word (non-network related) to this
self._repost_action = gtk.Action('Repost', 'Re_post',
@ -399,7 +401,7 @@ class Interface(object):
gtk.STOCK_CONVERT)
self._repost_action.set_property('sensitive', False)
# TODO: Connect
action_group.add_action(self._repost_action)
action_group.add_action_with_accel(self._repost_action, '<Ctrl>t')
# Help actions
about_action = gtk.Action('About', '_About', 'About Mitter',
@ -427,6 +429,8 @@ class Interface(object):
self._update_button.connect('clicked', self._update_status)
self._update_button.set_property('sensitive', False)
# TODO: We'll need a cancel button to cancel replies/repost.
update_box = gtk.HBox(False, 0)
update_box.pack_start(self._update_text, expand=True, fill=True,
padding=0)

Loading…
Cancel
Save