Show good count of awaiting messages in message_window title
This commit is contained in:
parent
aff110a047
commit
b50d3b86ba
|
@ -553,7 +553,6 @@ class ChatControlBase(MessageControl):
|
||||||
return
|
return
|
||||||
if kind == 'incoming':
|
if kind == 'incoming':
|
||||||
gajim.last_message_time[self.account][full_jid] = time.time()
|
gajim.last_message_time[self.account][full_jid] = time.time()
|
||||||
urgent = True
|
|
||||||
if (not self.parent_win.get_active_jid() or \
|
if (not self.parent_win.get_active_jid() or \
|
||||||
full_jid != self.parent_win.get_active_jid() or \
|
full_jid != self.parent_win.get_active_jid() or \
|
||||||
not self.parent_win.is_active() or not end) and \
|
not self.parent_win.is_active() or not end) and \
|
||||||
|
@ -581,10 +580,11 @@ class ChatControlBase(MessageControl):
|
||||||
gajim.interface.roster.draw_contact(self.contact.jid,
|
gajim.interface.roster.draw_contact(self.contact.jid,
|
||||||
self.account)
|
self.account)
|
||||||
self.parent_win.redraw_tab(self)
|
self.parent_win.redraw_tab(self)
|
||||||
|
ctrl = gajim.interface.msg_win_mgr.get_control(full_jid, self.account)
|
||||||
if not self.parent_win.is_active():
|
if not self.parent_win.is_active():
|
||||||
ctrl = gajim.interface.msg_win_mgr.get_control(full_jid,
|
self.parent_win.show_title(True, ctrl) # Enabled Urgent
|
||||||
self.account)
|
else:
|
||||||
self.parent_win.show_title(urgent, ctrl)
|
self.parent_win.show_title(False, ctrl) # Disabled Urgent
|
||||||
|
|
||||||
def toggle_emoticons(self):
|
def toggle_emoticons(self):
|
||||||
'''hide show emoticons_button and make sure emoticons_menu is always there
|
'''hide show emoticons_button and make sure emoticons_menu is always there
|
||||||
|
|
Loading…
Reference in New Issue