Daniel Brötzmann pushed to branch master at gajim / gajim
Commits:
-
7408d91f
by wurstsalat at 2021-12-11T22:25:31+01:00
1 changed file:
Changes:
| ... | ... | @@ -23,10 +23,10 @@ |
| 23 | 23 |
from gajim.common import app
|
| 24 | 24 |
from gajim.common import ged
|
| 25 | 25 |
from gajim.common.i18n import _
|
| 26 |
-from gajim.common.const import StyleAttr
|
|
| 27 | 26 |
|
| 28 |
-from . import util
|
|
| 29 | 27 |
from .util import get_builder
|
| 28 |
+from .util import at_the_end
|
|
| 29 |
+from .util import scroll_to_end
|
|
| 30 | 30 |
from .util import MaxWidthComboBoxText
|
| 31 | 31 |
from .util import EventHelper
|
| 32 | 32 |
from .dialogs import ErrorDialog
|
| ... | ... | @@ -384,7 +384,7 @@ def _print_stanza(self, event, kind): |
| 384 | 384 |
if not stanza:
|
| 385 | 385 |
return
|
| 386 | 386 |
|
| 387 |
- at_the_end = util.at_the_end(self._ui.scrolled)
|
|
| 387 |
+ is_at_the_end = at_the_end(self._ui.scrolled)
|
|
| 388 | 388 |
|
| 389 | 389 |
buffer_ = self._ui.sourceview.get_buffer()
|
| 390 | 390 |
end_iter = buffer_.get_end_iter()
|
| ... | ... | @@ -406,5 +406,5 @@ def _print_stanza(self, event, kind): |
| 406 | 406 |
stanza=stanza)
|
| 407 | 407 |
buffer_.insert_with_tags_by_name(end_iter, stanza, type_, kind)
|
| 408 | 408 |
|
| 409 |
- if at_the_end:
|
|
| 410 |
- GLib.idle_add(util.scroll_to_end, self._ui.scrolled)
|
|
| 409 |
+ if is_at_the_end:
|
|
| 410 |
+ GLib.idle_add(scroll_to_end, self._ui.scrolled)
|