Flip text right way when panel on side

This commit is contained in:
clhodapp 2009-12-08 14:53:39 +08:00 committed by Clement Lefebvre
parent 6d6114d344
commit 37760f5de7

View File

@ -691,12 +691,12 @@ class MenuWin( object ):
self.button_icon.set_padding( 5, 0 ) self.button_icon.set_padding( 5, 0 )
elif self.applet.get_orient() == gnomeapplet.ORIENT_LEFT: elif self.applet.get_orient() == gnomeapplet.ORIENT_LEFT:
tmpbox = gtk.VBox() tmpbox = gtk.VBox()
self.systemlabel.set_angle( 90 ) self.systemlabel.set_angle( 270 )
self.button_box.reorder_child( self.button_icon, 1 ) self.button_box.reorder_child( self.button_icon, 1 )
self.button_icon.set_padding( 0, 5 ) self.button_icon.set_padding( 0, 5 )
elif self.applet.get_orient() == gnomeapplet.ORIENT_RIGHT: elif self.applet.get_orient() == gnomeapplet.ORIENT_RIGHT:
tmpbox = gtk.VBox() tmpbox = gtk.VBox()
self.systemlabel.set_angle( 270 ) self.systemlabel.set_angle( 90 )
self.button_box.reorder_child( self.button_icon, 0 ) self.button_box.reorder_child( self.button_icon, 0 )
self.button_icon.set_padding( 0, 5 ) self.button_icon.set_padding( 0, 5 )