diff --git a/usr/lib/linuxmint/mintMenu/plugins/system_management.py b/usr/lib/linuxmint/mintMenu/plugins/system_management.py index 4a3e145..d06aa6a 100755 --- a/usr/lib/linuxmint/mintMenu/plugins/system_management.py +++ b/usr/lib/linuxmint/mintMenu/plugins/system_management.py @@ -103,6 +103,7 @@ class pluginclass( object ): # Check toggles + self.showSoftwareCenter = self.gconf.get( "bool", "show_software_center", True ) self.showSoftwareManager = self.gconf.get( "bool", "show_software_manager", True ) self.showPackageManager = self.gconf.get( "bool", "show_package_manager", True ) self.showControlCenter = self.gconf.get( "bool", "show_control_center", True ) @@ -128,6 +129,16 @@ class pluginclass( object ): #Add standard items 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 os.path.exists("/usr/lib/linuxmint/mintInstall/icon.svg"): Button1 = easyButton( "/usr/lib/linuxmint/mintInstall/icon.svg", self.iconsize, [_("Software Manager")], -1, -1 )