[olivier] clean activity / mood buttons when changing status. Fixes #5104
This commit is contained in:
parent
375b135209
commit
3b1f2833b3
|
@ -625,6 +625,8 @@ class ChangeStatusMessageDialog:
|
||||||
# gtk.Tooltips().set_tip(item, pep.ACTIVITIES[category]['category'])
|
# gtk.Tooltips().set_tip(item, pep.ACTIVITIES[category]['category'])
|
||||||
if self.pep_dict['activity_text']:
|
if self.pep_dict['activity_text']:
|
||||||
label.set_text(self.pep_dict['activity_text'])
|
label.set_text(self.pep_dict['activity_text'])
|
||||||
|
else:
|
||||||
|
label.set_text('')
|
||||||
else:
|
else:
|
||||||
img.set_from_pixbuf(None)
|
img.set_from_pixbuf(None)
|
||||||
label.set_text('')
|
label.set_text('')
|
||||||
|
@ -638,6 +640,8 @@ class ChangeStatusMessageDialog:
|
||||||
self.pep_dict['mood']).get_pixbuf())
|
self.pep_dict['mood']).get_pixbuf())
|
||||||
if self.pep_dict['mood_text']:
|
if self.pep_dict['mood_text']:
|
||||||
label.set_text(self.pep_dict['mood_text'])
|
label.set_text(self.pep_dict['mood_text'])
|
||||||
|
else:
|
||||||
|
label.set_text('')
|
||||||
else:
|
else:
|
||||||
img.set_from_pixbuf(None)
|
img.set_from_pixbuf(None)
|
||||||
label.set_text('')
|
label.set_text('')
|
||||||
|
|
Loading…
Reference in New Issue