Fixed terminal and desktop icons

This commit is contained in:
Clement Lefebvre 2012-05-22 16:43:20 +01:00
parent 82f74d45aa
commit a02f49f061
4 changed files with 18 additions and 2 deletions

12
debian/changelog vendored
View File

@ -1,3 +1,15 @@
mintmenu (5.3.5) maya; urgency=low
* Fixed terminal and desktop icons
-- Clement Lefebvre <root@linuxmint.com> Tue, 22 May 2012 16:42:57 +0100
mintmenu (5.3.4) maya; urgency=low
* Limit number of APT suggestions to 3
-- Clement Lefebvre <root@linuxmint.com> Fri, 18 May 2012 13:16:51 +0100
mintmenu (5.3.3) maya; urgency=low mintmenu (5.3.3) maya; urgency=low
* Use apturl directly if it's installed (instead of relying on MIME types being properly assigned) * Use apturl directly if it's installed (instead of relying on MIME types being properly assigned)

View File

@ -658,6 +658,7 @@ class pluginclass( object ):
command = "%(command)s | grep %(word)s" % {'command':command, 'word':word} command = "%(command)s | grep %(word)s" % {'command':command, 'word':word}
pkgs = commands.getoutput(command) pkgs = commands.getoutput(command)
pkgs = pkgs.split("\n") pkgs = pkgs.split("\n")
num_pkg_found = 0
for pkg in pkgs: for pkg in pkgs:
values = string.split(pkg, "###") values = string.split(pkg, "###")
if len(values) == 4: if len(values) == 4:
@ -681,8 +682,11 @@ class pluginclass( object ):
found_in_name.append(package) found_in_name.append(package)
else: else:
found_elsewhere.append(package) found_elsewhere.append(package)
num_pkg_found+=1
else: else:
print "Invalid status code: " + status print "Invalid status code: " + status
if num_pkg_found >= 3:
break
found_packages.extend(found_in_name) found_packages.extend(found_in_name)
found_packages.extend(found_elsewhere) found_packages.extend(found_elsewhere)
gtk.gdk.threads_enter() gtk.gdk.threads_enter()

View File

@ -193,7 +193,7 @@ class pluginclass( object ):
desktopDir = tmpdesktopDir desktopDir = tmpdesktopDir
except Exception, detail: except Exception, detail:
print detail print detail
Button4 = easyButton( "mate-fs-desktop", self.iconsize, [_("Desktop")], -1, -1 ) Button4 = easyButton( "desktop", self.iconsize, [_("Desktop")], -1, -1 )
if self.de == "mate": if self.de == "mate":
Button4.connect( "clicked", self.ButtonClicked, "caja \"" + desktopDir + "\"") Button4.connect( "clicked", self.ButtonClicked, "caja \"" + desktopDir + "\"")
else: else:

View File

@ -154,7 +154,7 @@ class pluginclass( object ):
self.mintMenuWin.setTooltip( Button3, _("Configure your system") ) self.mintMenuWin.setTooltip( Button3, _("Configure your system") )
if ( self.showTerminal == True ): if ( self.showTerminal == True ):
Button4 = easyButton( "mate-terminal", self.iconsize, [_("Terminal")], -1, -1 ) Button4 = easyButton( "terminal", self.iconsize, [_("Terminal")], -1, -1 )
if os.path.exists("/usr/bin/mate-terminal"): if os.path.exists("/usr/bin/mate-terminal"):
Button4.connect( "clicked", self.ButtonClicked, "mate-terminal" ) Button4.connect( "clicked", self.ButtonClicked, "mate-terminal" )
else: else: