Sophie

Sophie

distrib > Mageia > 4 > x86_64 > media > core-updates-src > by-pkgid > dbf402d783f6ff6805ded6f852094d1d > files > 13

mintmenu-5.5.0-2.3.mga4.src.rpm

diff -Naur mintmenu/usr/lib/linuxmint/mintMenu/plugins/applications.py mintmenu.new/usr/lib/linuxmint/mintMenu/plugins/applications.py
--- mintmenu/usr/lib/linuxmint/mintMenu/plugins/applications.py	2013-11-29 02:41:50.630965044 +0200
+++ mintmenu.new/usr/lib/linuxmint/mintMenu/plugins/applications.py	2013-11-29 02:46:13.628561206 +0200
@@ -1081,7 +1081,7 @@
         img = Gtk.Image()
         img.set_from_file('/usr/share/mintMenu/search_engines/software.png')
         menuItem.set_image(img)
-        menuItem.connect("activate", self.search_mint_software)
+        menuItem.connect("activate", self.search_mageia_software)
         menu.append(menuItem)
         
         menuItem = Gtk.ImageMenuItem(_("Find Tutorials"))
@@ -1091,27 +1091,27 @@
         menuItem.connect("activate", self.search_mint_tutorials)
         menu.append(menuItem)
         
-        menuItem = Gtk.ImageMenuItem(_("Find Hardware"))
-        img = Gtk.Image()
-        img.set_from_file('/usr/share/mintMenu/search_engines/hardware.png')
-        menuItem.set_image(img)
-        menuItem.connect("activate", self.search_mint_hardware)
-        menu.append(menuItem)
-        
-        menuItem =Gtk.ImageMenuItem(_("Find Ideas"))
-        img = Gtk.Image()
-        img.set_from_file('/usr/share/mintMenu/search_engines/ideas.png')
-        menuItem.set_image(img)
-        menuItem.connect("activate", self.search_mint_ideas)
-        menu.append(menuItem)
-        
-        menuItem = Gtk.ImageMenuItem(_("Find Users"))
-        img = Gtk.Image()
-        img.set_from_file('/usr/share/mintMenu/search_engines/users.png')
-        menuItem.set_image(img)
-        menuItem.connect("activate", self.search_mint_users)
-        menu.append(menuItem)
-        
+#        menuItem = Gtk.ImageMenuItem(_("Find Hardware"))
+#        img = Gtk.Image()
+#        img.set_from_file('/usr/share/mintMenu/search_engines/hardware.png')
+#        menuItem.set_image(img)
+#        menuItem.connect("activate", self.search_mint_hardware)
+#        menu.append(menuItem)
+#        
+#        menuItem =Gtk.ImageMenuItem(_("Find Ideas"))
+#        img = Gtk.Image()
+#        img.set_from_file('/usr/share/mintMenu/search_engines/ideas.png')
+#        menuItem.set_image(img)
+#        menuItem.connect("activate", self.search_mint_ideas)
+#        menu.append(menuItem)
+#        
+#        menuItem = Gtk.ImageMenuItem(_("Find Users"))
+#        img = Gtk.Image()
+#        img.set_from_file('/usr/share/mintMenu/search_engines/users.png')
+#        menuItem.set_image(img)
+#        menuItem.connect("activate", self.search_mint_users)
+#        menu.append(menuItem)
+#        
         menu.show_all()
 
         gtk.gtk_menu_popup(hash(menu), None, None, None, None, 3, 0)
@@ -1150,31 +1150,31 @@
     def search_mint_tutorials(self, widget):
         text = self.searchEntry.get_text()
         text = text.replace(" ", "%20")
-        os.system("xdg-open \"http://community.linuxmint.com/index.php/tutorial/search/0/" + text + "\" &")     
+        os.system("xdg-open \"https://wiki.mageia.org/mw-en/index.php?title=Special%3ASearch&search=" + text + "&go=Go" + "\" &")     
         self.mintMenuWin.hide()
     
-    def search_mint_ideas(self, widget):
-        text = self.searchEntry.get_text()
-        text = text.replace(" ", "%20")
-        os.system("xdg-open \"http://community.linuxmint.com/index.php/idea/search/0/" + text + "\" &")     
-        self.mintMenuWin.hide()
-    
-    def search_mint_users(self, widget):
-        text = self.searchEntry.get_text()
-        text = text.replace(" ", "%20")
-        os.system("xdg-open \"http://community.linuxmint.com/index.php/user/search/0/" + text + "\" &")     
-        self.mintMenuWin.hide()
-    
-    def search_mint_hardware(self, widget):
-        text = self.searchEntry.get_text()
-        text = text.replace(" ", "%20")
-        os.system("xdg-open \"http://community.linuxmint.com/index.php/hardware/search/0/" + text + "\" &")     
-        self.mintMenuWin.hide()
-        
-    def search_mint_software(self, widget):
+#    def search_mint_ideas(self, widget):
+#        text = self.searchEntry.get_text()
+#        text = text.replace(" ", "%20")
+#        os.system("xdg-open \"http://community.linuxmint.com/index.php/idea/search/0/" + text + "\" &")     
+#        self.mintMenuWin.hide()
+#    
+#    def search_mint_users(self, widget):
+#        text = self.searchEntry.get_text()
+#        text = text.replace(" ", "%20")
+#        os.system("xdg-open \"http://community.linuxmint.com/index.php/user/search/0/" + text + "\" &")     
+#        self.mintMenuWin.hide()
+#    
+#    def search_mint_hardware(self, widget):
+#        text = self.searchEntry.get_text()
+#        text = text.replace(" ", "%20")
+#        os.system("xdg-open \"http://community.linuxmint.com/index.php/hardware/search/0/" + text + "\" &")     
+#        self.mintMenuWin.hide()
+#        
+    def search_mageia_software(self, widget):
         text = self.searchEntry.get_text()
         text = text.replace(" ", "%20")
-        os.system("xdg-open \"http://community.linuxmint.com/index.php/software/search/0/" + text + "\" &")     
+        os.system("xdg-open \"http://mageia.madb.org/package/list/t_search/" + text + "\" &")     
         self.mintMenuWin.hide()