From 51b8290752b3e026898bbf60b3c4c1d987ee8368 Mon Sep 17 00:00:00 2001 From: superfly1031 Date: Thu, 18 Oct 2012 22:31:51 -0600 Subject: [PATCH] Update usr/lib/linuxmint/mintMenu/plugins/system_management.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- .../linuxmint/mintMenu/plugins/system_management.py | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 )