From 9550c7ce6344e3973d89aeff46e4bd385ab3c19d Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Thu, 26 Jan 2006 14:18:45 +0100 Subject: * workaround bug in VteTerminal for the log support --- DistUpgrade/DistUpgradeViewGtk.py | 8 ++------ 1 file 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 -- cgit v1.2.3