From 2c8a68633eb54781b0284abc7371fc75fad25877 Mon Sep 17 00:00:00 2001 From: monsta Date: Thu, 4 May 2017 11:15:06 +0300 Subject: [PATCH] fix menu crash when placed on left vertical panel --- usr/lib/linuxmint/mintMenu/mintMenu.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/lib/linuxmint/mintMenu/mintMenu.py b/usr/lib/linuxmint/mintMenu/mintMenu.py index e89d589..529ad19 100755 --- a/usr/lib/linuxmint/mintMenu/mintMenu.py +++ b/usr/lib/linuxmint/mintMenu/mintMenu.py @@ -548,8 +548,8 @@ class MenuWin( object ): self.button_box.pack_start( self.button_icon , False, False, 0) self.button_box.pack_start( self.systemlabel , False, False, 0) self.button_icon.set_padding( 0, 5 ) - elif self.applet.get_orient( orientation=Gtk.Orientation.VERTICAL ) == MatePanelApplet.AppletOrient.RIGHT: - self.button_box = Gtk.Box() + elif self.applet.get_orient() == MatePanelApplet.AppletOrient.RIGHT: + self.button_box = Gtk.Box( orientation=Gtk.Orientation.VERTICAL ) self.systemlabel.set_angle( 90 ) self.button_box.pack_start( self.systemlabel , False, False, 0) self.button_box.pack_start( self.button_icon , False, False, 0)