Xfce support for the system plugin
This commit is contained in:
parent
cad4c50c73
commit
f9e70737b1
@ -147,6 +147,9 @@ class pluginclass( object ):
|
|||||||
|
|
||||||
if ( self.showControlCenter == True ):
|
if ( self.showControlCenter == True ):
|
||||||
Button3 = easyButton( "gtk-preferences", self.iconsize, [_("Control Center")], -1, -1 )
|
Button3 = easyButton( "gtk-preferences", self.iconsize, [_("Control Center")], -1, -1 )
|
||||||
|
if self.de == "xfce":
|
||||||
|
Button3.connect( "clicked", self.ButtonClicked, "xfce4-settings-manager" )
|
||||||
|
else:
|
||||||
Button3.connect( "clicked", self.ButtonClicked, "gnome-control-center" )
|
Button3.connect( "clicked", self.ButtonClicked, "gnome-control-center" )
|
||||||
Button3.show()
|
Button3.show()
|
||||||
self.systemBtnHolder.pack_start( Button3, False, False )
|
self.systemBtnHolder.pack_start( Button3, False, False )
|
||||||
@ -159,6 +162,13 @@ class pluginclass( object ):
|
|||||||
self.systemBtnHolder.pack_start( Button4, False, False )
|
self.systemBtnHolder.pack_start( Button4, False, False )
|
||||||
self.mintMenuWin.setTooltip( Button4, _("Use the command line") )
|
self.mintMenuWin.setTooltip( Button4, _("Use the command line") )
|
||||||
|
|
||||||
|
if self.de == "xfce":
|
||||||
|
Button6 = easyButton( "system-log-out", self.iconsize, [_("Logout")], -1, -1 )
|
||||||
|
Button6.connect( "clicked", self.ButtonClicked, "xfce4-session-logout" )
|
||||||
|
Button6.show()
|
||||||
|
self.systemBtnHolder.pack_start( Button6, False, False )
|
||||||
|
self.mintMenuWin.setTooltip( Button6, _("Log out or switch user") )
|
||||||
|
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 )
|
||||||
Button5.connect( "clicked", self.ButtonClicked, "xdg-screensaver lock" )
|
Button5.connect( "clicked", self.ButtonClicked, "xdg-screensaver lock" )
|
||||||
|
Loading…
Reference in New Issue
Block a user