GNOME Bugzilla – Bug 535360
Google search extension for Deskbar
Last modified: 2008-08-01 08:20:09 UTC
Deskbar comes with a Yahoo search extension. I propose to add a Google search extension to Deskbar. Many people prefer Google over Yahoo.
Marking as gnome-love. Information on retrieving Google Search results is available at http://code.google.com/apis/ajaxsearch/documentation/#fonje
Created attachment 115202 [details] Proposed Google search handler Hi, This is my proposal of Google Search module for the deskbar-applet. I created the code based on the others modules found in the svn tree and based on the information present in the link that you provided. I did some local tests and everything worked fine. If something isn't correct or need to be improved, let me know.
Excellent work, works fine. wikipedia-suggest already has way to guess the user's prefered language. This is useful for both yahoo and google search. I'm going to extract that piece of code from wikipedia-suggest that you can use that in the google module, too.
Thanks :) I'll be waiting.
deskbar.core.Utils contains a get_locale_lang function now. Both wikipedia-suggest and yahoo make use of it. Keep in mind that Chinese Simplified/Traditional are special cases.
Created attachment 115646 [details] New code using the new get_locale_lang function Here is the new code making use of the new function get_locale_lang. I tested here and everything worked fine. Let me know if it shows any problem.
2008-08-01 Sebastian Pölsterl <sebp@cvs.gnome.org> * deskbar/handlers/googlesearch.py: * deskbar/handlers/Makefile.am: * po/POTFILES.in: Added Google search module. Written by Helton Doria <helton dot doria at gmail dot com> Requires simplejson Python module. Fixes bug #535360