Laid foundation for telling Hrafn object how many new tweets all the panes have... may have to iterate over them every time a signal comes in; not sure how to handle closing a tab otherwise...

This commit is contained in:
Anna 2010-05-25 16:47:11 -04:00
parent f49c0ff27d
commit 5a9aa09167
3 changed files with 22 additions and 1 deletions

View file

@ -329,6 +329,8 @@ class Hrafn():
entries=1
new_pane = TweetPane(name, num_entries=entries, single_tweet=single_tweet, is_user=is_user, conversation=conversation)
new_pane.connect('new-tweets', self.on_new_tweets)
new_pane.connect('tweets-read', self.on_tweets_read)
if is_user:
new_pane.connect('at-clicked', self.on_at_button_clicked)
@ -624,6 +626,14 @@ class Hrafn():
config.write(config_filehandle)
config_filehandle.close()
def on_new_tweets(self, widget, num_tweets):
pass
def on_tweets_read(self, widget, num_tweets):
pass
### end class Hrafn