set policy to never when needed to height is good

This commit is contained in:
Yann Leboulanger 2005-12-14 21:21:01 +00:00
parent 4f46b4e7c1
commit 0a6ccd34e9
1 changed files with 3 additions and 0 deletions

View File

@ -695,6 +695,9 @@ class Chat:
if requisition.width > message_width:
message_scrolledwindow.set_property('hscrollbar-policy',
gtk.POLICY_AUTOMATIC)
else:
message_scrolledwindow.set_property('hscrollbar-policy',
gtk.POLICY_NEVER)
return True