fixed wrong indentation

This commit is contained in:
monsta 2014-11-03 20:52:52 +03:00 committed by Monsta
parent 30dd193169
commit 51873b120d
3 changed files with 16 additions and 17 deletions

View File

@ -178,10 +178,9 @@ class GlobalKeyBinding(GObject.GObject, threading.Thread):
self.display.close() self.display.close()
class KeymapKey(Structure): class KeymapKey(Structure):
_fields_ = [("keycode", c_uint), _fields_ = [("keycode", c_uint),
("group", c_int), ("group", c_int),
("level", c_int)] ("level", c_int)]
class KeybindingWidget(Gtk.HBox): class KeybindingWidget(Gtk.HBox):
__gsignals__ = { __gsignals__ = {

View File

@ -697,15 +697,15 @@ class MenuWin( object ):
self.button_icon.size_request(bi_req) self.button_icon.size_request(bi_req)
self.systemlabel.size_request(sl_req) self.systemlabel.size_request(sl_req)
if self.applet.get_orient() == MatePanelApplet.AppletOrient.UP or self.applet.get_orient() == MatePanelApplet.AppletOrient.DOWN: if self.applet.get_orient() == MatePanelApplet.AppletOrient.UP or self.applet.get_orient() == MatePanelApplet.AppletOrient.DOWN:
if self.hideIcon: if self.hideIcon:
self.applet.set_size_request( sl_req.width + 2, bi_req.height ) self.applet.set_size_request( sl_req.width + 2, bi_req.height )
else: else:
self.applet.set_size_request( sl_req.width + bi_req.width + 5, bi_req.height ) self.applet.set_size_request( sl_req.width + bi_req.width + 5, bi_req.height )
else: else:
if self.hideIcon: if self.hideIcon:
self.applet.set_size_request( bi_req.width, sl_req.height + 2 ) self.applet.set_size_request( bi_req.width, sl_req.height + 2 )
else: else:
self.applet.set_size_request( bi_req.width, sl_req.height + bi_req.height + 5 ) self.applet.set_size_request( bi_req.width, sl_req.height + bi_req.height + 5 )
def reloadSettings( self, *args ): def reloadSettings( self, *args ):
self.loadSettings() self.loadSettings()

View File

@ -167,11 +167,11 @@ class pluginclass( object ):
self.mintMenuWin.setTooltip( Button4, _("Use the command line") ) self.mintMenuWin.setTooltip( Button4, _("Use the command line") )
if self.de == "xfce": if self.de == "xfce":
Button6 = easyButton( "system-log-out", self.iconsize, [_("Logout")], -1, -1 ) Button6 = easyButton( "system-log-out", self.iconsize, [_("Logout")], -1, -1 )
Button6.connect( "clicked", self.ButtonClicked, "xfce4-session-logout" ) Button6.connect( "clicked", self.ButtonClicked, "xfce4-session-logout" )
Button6.show() Button6.show()
self.systemBtnHolder.pack_start( Button6, False, False, 0 ) self.systemBtnHolder.pack_start( Button6, False, False, 0 )
self.mintMenuWin.setTooltip( Button6, _("Log out or switch user") ) self.mintMenuWin.setTooltip( Button6, _("Log out or switch user") )
else: else:
if ( self.showLockScreen == True ): if ( self.showLockScreen == True ):
Button5 = easyButton( "system-lock-screen", self.iconsize, [_("Lock Screen")], -1, -1 ) Button5 = easyButton( "system-lock-screen", self.iconsize, [_("Lock Screen")], -1, -1 )