diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2006-01-26 14:18:45 +0100 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2006-01-26 14:18:45 +0100 |
| commit | 9550c7ce6344e3973d89aeff46e4bd385ab3c19d (patch) | |
| tree | 327ac16af9cd0d3a1c9faf2a793f9a882ac8721e /DistUpgrade | |
| parent | df30ebea802ae25732477bd291b27e4169bc7a88 (diff) | |
| download | python-apt-9550c7ce6344e3973d89aeff46e4bd385ab3c19d.tar.gz | |
* workaround bug in VteTerminal for the log support
Diffstat (limited to 'DistUpgrade')
| -rw-r--r-- | DistUpgrade/DistUpgradeViewGtk.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/DistUpgrade/DistUpgradeViewGtk.py b/DistUpgrade/DistUpgradeViewGtk.py index 94636ef9..eff02471 100644 --- a/DistUpgrade/DistUpgradeViewGtk.py +++ b/DistUpgrade/DistUpgradeViewGtk.py @@ -202,6 +202,8 @@ class GtkDistUpgradeView(DistUpgradeView,SimpleGladeApp): self.treeview_details.append_column(column) self.treeview_details.set_model(self.details_list) self.vscrollbar_terminal.set_adjustment(self._term.get_adjustment()) + # work around bug in VteTerminal here + self._term.realize() # Use italic style in the status labels attrlist=pango.AttrList() @@ -234,12 +236,6 @@ class GtkDistUpgradeView(DistUpgradeView,SimpleGladeApp): def _term_content_changed(self, term): " called when the *visible* part of the terminal changes " - # work around stupid vte bug (realize, then scroll to end) - self._term.realize() - ad = self._term.get_adjustment() - ad.set_value(ad.upper - ad.page_size) - ad.value_changed() - # get the current visible text, current_text = self._term.get_text(lambda a,b,c,d: True) # see what we have currently and only print stuff that wasn't |
