Update usr/lib/linuxmint/mintMenu/plugins/system_management.py
I added a self.show For the Ubuntu software center, I wasn't able to add a glade config check box for it, I dont know glade to well :P Can someone do that for me. No offence to any for that, I just realy like the Ubuntu software canter.
This commit is contained in:
parent
854de8452c
commit
51b8290752
@ -103,6 +103,7 @@ class pluginclass( object ):
|
|||||||
|
|
||||||
# Check toggles
|
# Check toggles
|
||||||
|
|
||||||
|
self.showSoftwareCenter = self.gconf.get( "bool", "show_software_center", True )
|
||||||
self.showSoftwareManager = self.gconf.get( "bool", "show_software_manager", True )
|
self.showSoftwareManager = self.gconf.get( "bool", "show_software_manager", True )
|
||||||
self.showPackageManager = self.gconf.get( "bool", "show_package_manager", True )
|
self.showPackageManager = self.gconf.get( "bool", "show_package_manager", True )
|
||||||
self.showControlCenter = self.gconf.get( "bool", "show_control_center", True )
|
self.showControlCenter = self.gconf.get( "bool", "show_control_center", True )
|
||||||
@ -128,6 +129,16 @@ class pluginclass( object ):
|
|||||||
#Add standard items
|
#Add standard items
|
||||||
def do_standard_items( self ):
|
def do_standard_items( self ):
|
||||||
|
|
||||||
|
|
||||||
|
if ( self.showSoftwareCenter == True ):
|
||||||
|
if os.path.exists("/usr/share/icons/hicolor/scalable/apps/softwarecenter.svg"):
|
||||||
|
Button1 = easyButton( "/usr/share/icons/hicolor/scalable/apps/softwarecenter.svg", self.iconsize, [_("Software Center")], -1, -1 )
|
||||||
|
Button1.connect( "clicked", self.ButtonClicked, "software-center" )
|
||||||
|
Button1.show()
|
||||||
|
self.systemBtnHolder.pack_start( Button1, False, False )
|
||||||
|
self.mintMenuWin.setTooltip( Button1, _("Install Paid and free apps") )
|
||||||
|
|
||||||
|
|
||||||
if ( self.showSoftwareManager == True ):
|
if ( self.showSoftwareManager == True ):
|
||||||
if os.path.exists("/usr/lib/linuxmint/mintInstall/icon.svg"):
|
if os.path.exists("/usr/lib/linuxmint/mintInstall/icon.svg"):
|
||||||
Button1 = easyButton( "/usr/lib/linuxmint/mintInstall/icon.svg", self.iconsize, [_("Software Manager")], -1, -1 )
|
Button1 = easyButton( "/usr/lib/linuxmint/mintInstall/icon.svg", self.iconsize, [_("Software Manager")], -1, -1 )
|
||||||
|
Loading…
Reference in New Issue
Block a user