From 2f9736e982efc51c7bff2b3ed5dd8c4f231444ef Mon Sep 17 00:00:00 2001 From: Anna Date: Thu, 20 May 2010 10:23:50 -0400 Subject: [PATCH] Set tweets read when individual tweet is clicked --- twitterwidgets.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/twitterwidgets.py b/twitterwidgets.py index 492846e..085bbe1 100644 --- a/twitterwidgets.py +++ b/twitterwidgets.py @@ -409,35 +409,42 @@ class TweetBox(gtk.HBox): def on_reply_clicked(self, widget): self.set_read() self.emit('reply') + self.emit('tweet-read') def on_retweet_clicked(self, widget): self.set_read() self.emit('retweet') + self.emit('tweet-read') def on_in_reply_to_clicked(self, widget): self.set_read() self.emit('in-reply-to', {'id': self.in_reply_to_id, 'name': self.in_reply_to_screen_name}) + self.emit('tweet-read') def on_conversation_clicked(self, widget): self.set_read() self.emit('conversation', {'id': self.id, 'name': 'conversation'}) + self.emit('tweet-read') def on_user_clicked(self, widget): self.set_read() self.emit('show-user', self.screen_name) + self.emit('tweet-read') def on_mouse_clicked(self, widget, event): if event.button == 1: self.set_read(True) + self.emit('tweet-read') def on_url_clicked(self, widget, uri): self.set_read() + self.emit('tweet-read') if re.match(r'@', uri): self.emit('show-user', re.sub(r'@', '', uri)) return True