|
|
@ -363,8 +363,8 @@ class Interface(object): |
|
|
|
|
|
|
|
|
|
|
|
clear_action = gtk.Action('Clear', '_Clear', |
|
|
|
clear_action = gtk.Action('Clear', '_Clear', |
|
|
|
'Clear the message list', gtk.STOCK_CLEAR) |
|
|
|
'Clear the message list', gtk.STOCK_CLEAR) |
|
|
|
|
|
|
|
clear_action.connect('activate', self._clear_posts) |
|
|
|
action_group.add_action_with_accel(clear_action, None) |
|
|
|
action_group.add_action_with_accel(clear_action, None) |
|
|
|
# TODO: Connect |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#shrink_url_action = gtk.Action('ShrinkURL', 'Shrink _URL', |
|
|
|
#shrink_url_action = gtk.Action('ShrinkURL', 'Shrink _URL', |
|
|
|
# 'Shrink selected URL', gtk.STOCK_EXECUTE) |
|
|
|
# 'Shrink selected URL', gtk.STOCK_EXECUTE) |
|
|
@ -548,7 +548,6 @@ class Interface(object): |
|
|
|
|
|
|
|
|
|
|
|
# use a different highlight for the current user |
|
|
|
# use a different highlight for the current user |
|
|
|
# TODO: How to handle this with several networks? |
|
|
|
# TODO: How to handle this with several networks? |
|
|
|
# SOLUTION: self._connection.is_self(message) |
|
|
|
|
|
|
|
#message = re.sub(r'(@'+self.twitter.username+')', |
|
|
|
#message = re.sub(r'(@'+self.twitter.username+')', |
|
|
|
# r'<span foreground="#FF6633">\1</span>', |
|
|
|
# r'<span foreground="#FF6633">\1</span>', |
|
|
|
# message) |
|
|
|
# message) |
|
|
@ -693,6 +692,11 @@ class Interface(object): |
|
|
|
|
|
|
|
|
|
|
|
return 0 |
|
|
|
return 0 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def _clear_posts(self, widget, user_data=None): |
|
|
|
|
|
|
|
"""Clear the list of posts from the grid.""" |
|
|
|
|
|
|
|
self._grid.get_model().clear() |
|
|
|
|
|
|
|
return |
|
|
|
|
|
|
|
|
|
|
|
# ------------------------------------------------------------ |
|
|
|
# ------------------------------------------------------------ |
|
|
|
# Network related functions |
|
|
|
# Network related functions |
|
|
|
# ------------------------------------------------------------ |
|
|
|
# ------------------------------------------------------------ |
|
|
|