at last a way to always scroll to end. thanks muntyan from #gtk+ :)
This commit is contained in:
parent
d8e0b91ee8
commit
1a5927afb2
1 changed files with 1 additions and 1 deletions
|
@ -697,7 +697,7 @@ class Chat:
|
||||||
#we are at the end or we are sending something
|
#we are at the end or we are sending something
|
||||||
end = True
|
end = True
|
||||||
# We scroll to the end after the scrollbar has appeared
|
# We scroll to the end after the scrollbar has appeared
|
||||||
gobject.timeout_add(50, self.scroll_to_end, textview)
|
gobject.idle_add(self.scroll_to_end, textview)
|
||||||
if ((jid != self.get_active_jid()) or \
|
if ((jid != self.get_active_jid()) or \
|
||||||
(not self.window.is_active()) or \
|
(not self.window.is_active()) or \
|
||||||
(not end)) and kind == 'incoming':
|
(not end)) and kind == 'incoming':
|
||||||
|
|
Loading…
Add table
Reference in a new issue