Fix tab label layout when the tab bar is on the right. Closes LP#838426

This commit is contained in:
Chris Jones 2012-10-18 15:03:48 -07:00
parent 6da60c043b
commit 96a6b9c777
1 changed files with 2 additions and 0 deletions

View File

@ -472,6 +472,8 @@ class TabLabel(gtk.HBox):
self.set_orientation(gtk.ORIENTATION_VERTICAL) self.set_orientation(gtk.ORIENTATION_VERTICAL)
self.label.set_angle(90) self.label.set_angle(90)
elif position == gtk.POS_RIGHT: elif position == gtk.POS_RIGHT:
if hasattr(self, 'set_orientation'):
self.set_orientation(gtk.ORIENTATION_VERTICAL)
self.label.set_angle(270) self.label.set_angle(270)
else: else:
if hasattr(self, 'set_orientation'): if hasattr(self, 'set_orientation'):