Clear statuses that aren't changed when switching to a different list
This commit is contained in:
parent
5fbfb01c85
commit
17b74769e5
|
@ -80,6 +80,8 @@ class MyTwitter():
|
||||||
for i in range(0, self.num_entries):
|
for i in range(0, self.num_entries):
|
||||||
if i < len(statuses):
|
if i < len(statuses):
|
||||||
self.tweets[i].set_status(statuses[i])
|
self.tweets[i].set_status(statuses[i])
|
||||||
|
else:
|
||||||
|
self.tweets[i].clear_status()
|
||||||
|
|
||||||
|
|
||||||
def update_window_callback(self, widget):
|
def update_window_callback(self, widget):
|
||||||
|
@ -213,6 +215,13 @@ class TweetBox(gtk.VBox):
|
||||||
self.text.set_markup(new_text)
|
self.text.set_markup(new_text)
|
||||||
|
|
||||||
|
|
||||||
|
def clear_status(self):
|
||||||
|
self.header.set_markup('')
|
||||||
|
self.text.set_markup('')
|
||||||
|
self.screen_name = None
|
||||||
|
self.id = None
|
||||||
|
|
||||||
|
|
||||||
def on_reply_clicked(self, widget):
|
def on_reply_clicked(self, widget):
|
||||||
self.emit('reply')
|
self.emit('reply')
|
||||||
|
|
||||||
|
|
Reference in New Issue
Block a user