Flip the tab label widget group into a vertical orientation if the tab bar is on the left/right. Closes LP #553426
This commit is contained in:
parent
d6e011281e
commit
fba64128e6
|
@ -373,10 +373,12 @@ class TabLabel(gtk.HBox):
|
||||||
"""Update the angle of a label"""
|
"""Update the angle of a label"""
|
||||||
position = self.notebook.get_tab_pos()
|
position = self.notebook.get_tab_pos()
|
||||||
if position == gtk.POS_LEFT:
|
if position == gtk.POS_LEFT:
|
||||||
|
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:
|
||||||
self.label.set_angle(270)
|
self.label.set_angle(270)
|
||||||
else:
|
else:
|
||||||
|
self.set_orientation(gtk.ORIENTATION_HORIZONTAL)
|
||||||
self.label.set_angle(0)
|
self.label.set_angle(0)
|
||||||
|
|
||||||
def on_style_set(self, widget, prevstyle):
|
def on_style_set(self, widget, prevstyle):
|
||||||
|
|
Loading…
Reference in New Issue