2011-07-29 06:10:37 |
vroetman |
description |
In Natty with thin scrollbars, a vte widget inside a Scrollwindow will keep incrementally growing wider and wider.
This only happens with no horizontal scrollbar and with vertical scrollbar, and it only happens with the thin scrollbars on Natty. If the old-style scrollbars are used, this is not a problem. The following code will show the problem:
-----------------------------
#!/usr/bin/env python
import gtk
import vte
v = vte.Terminal()
v.connect ("child-exited", lambda term: gtk.main_quit())
scroll = gtk.ScrolledWindow()
scroll.set_policy(gtk.POLICY_NEVER,gtk.POLICY_ALWAYS)
scroll.add(v)
window = gtk.Window()
window.add(scroll)
window.connect('delete-event', lambda window, event: gtk.main_quit())
window.show_all()
gtk.main()
--------------------------------
If set_policy is (gtk.POLICY_ALWAYS,gtk.POLICY_ALWAYS) or (gtk.POLICY_AUTOMATIC,gtk.NEVER) then it is not a problem.
If it is (gtk.POLICY_NEVER,gtk.NEVER) it has the same problem as Bug #635400 - could they be related?
libvte9 1:0.27.90-0ubuntu1
python-vte 1:0.27.90-0ubuntu1
python-gtk2 2.22.0-0ubuntu1.1
python2.7 2.7.1-5ubuntu2 |
In Natty with thin scrollbars, a vte widget inside a Scrollwindow will keep incrementally growing wider and wider.
This only happens with no horizontal scrollbar and with vertical scrollbar, and it only happens with the thin scrollbars on Natty. If the old-style scrollbars are used, this is not a problem. The following code will show the problem:
-----------------------------
#!/usr/bin/env python
import gtk
import vte
v = vte.Terminal()
v.connect ("child-exited", lambda term: gtk.main_quit())
scroll = gtk.ScrolledWindow()
scroll.set_policy(gtk.POLICY_NEVER,gtk.POLICY_ALWAYS)
scroll.add(v)
window = gtk.Window()
window.add(scroll)
window.connect('delete-event', lambda window, event: gtk.main_quit())
window.show_all()
gtk.main()
--------------------------------
If set_policy is (gtk.POLICY_ALWAYS,gtk.POLICY_ALWAYS)
or (gtk.POLICY_AUTOMATIC,gtk.POLICY_NEVER) then it is not a problem.
If it is (gtk.POLICY_NEVER,gtk.POLICY_NEVER) it has the same problem as Bug #635400 - could they be related?
libvte9 1:0.27.90-0ubuntu1
python-vte 1:0.27.90-0ubuntu1
python-gtk2 2.22.0-0ubuntu1.1
python2.7 2.7.1-5ubuntu2 |
|
2011-07-29 06:10:52 |
vroetman |
description |
In Natty with thin scrollbars, a vte widget inside a Scrollwindow will keep incrementally growing wider and wider.
This only happens with no horizontal scrollbar and with vertical scrollbar, and it only happens with the thin scrollbars on Natty. If the old-style scrollbars are used, this is not a problem. The following code will show the problem:
-----------------------------
#!/usr/bin/env python
import gtk
import vte
v = vte.Terminal()
v.connect ("child-exited", lambda term: gtk.main_quit())
scroll = gtk.ScrolledWindow()
scroll.set_policy(gtk.POLICY_NEVER,gtk.POLICY_ALWAYS)
scroll.add(v)
window = gtk.Window()
window.add(scroll)
window.connect('delete-event', lambda window, event: gtk.main_quit())
window.show_all()
gtk.main()
--------------------------------
If set_policy is (gtk.POLICY_ALWAYS,gtk.POLICY_ALWAYS)
or (gtk.POLICY_AUTOMATIC,gtk.POLICY_NEVER) then it is not a problem.
If it is (gtk.POLICY_NEVER,gtk.POLICY_NEVER) it has the same problem as Bug #635400 - could they be related?
libvte9 1:0.27.90-0ubuntu1
python-vte 1:0.27.90-0ubuntu1
python-gtk2 2.22.0-0ubuntu1.1
python2.7 2.7.1-5ubuntu2 |
In Natty with thin scrollbars, a vte widget inside a Scrollwindow will keep incrementally growing wider and wider.
This only happens with no horizontal scrollbar and with vertical scrollbar, and it only happens with the thin scrollbars on Natty. If the old-style scrollbars are used, this is not a problem. The following code will show the problem:
-----------------------------
#!/usr/bin/env python
import gtk
import vte
v = vte.Terminal()
v.connect ("child-exited", lambda term: gtk.main_quit())
scroll = gtk.ScrolledWindow()
scroll.set_policy(gtk.POLICY_NEVER,gtk.POLICY_ALWAYS)
scroll.add(v)
window = gtk.Window()
window.add(scroll)
window.connect('delete-event', lambda window, event: gtk.main_quit())
window.show_all()
gtk.main()
--------------------------------
If set_policy is (gtk.POLICY_ALWAYS,gtk.POLICY_ALWAYS)
or (gtk.POLICY_AUTOMATIC,gtk.POLICY_NEVER) then it is not a problem.
If it is (gtk.POLICY_NEVER,gtk.POLICY_NEVER) it has the same problem as
Bug #635400 - could they be related?
libvte9 1:0.27.90-0ubuntu1
python-vte 1:0.27.90-0ubuntu1
python-gtk2 2.22.0-0ubuntu1.1
python2.7 2.7.1-5ubuntu2 |
|