After two months of too much work(TM) (things like writing more than 4K LOC in a weekend), I got some spare time to hack on GNOME again. Today I updated my cvs copy of most of my gnome.org stuff. When updating Beagle I noticed the addition of libbeagle. So I thought that it was good stuff(TM) and tried to port my old and ugly patch for searching files with locate inside GtkFileChooser to use Beagle instead of locate. So now it rocks, because I can search for the word Onirica and I can get all files related to it (OOo files containing that text, pictures with that title…):
Of course, this is not a good way to do the thing, just a local and custom patch. The real way will be using Federico’s GtkFileChooser Extension Interface when it get implemented. If you want to try the GtkFileChooser Beagle search hook patch you’d need gtk+ from gnome-28 branch and beagle from HEAD.
PS: Don’t try it with gedit, because the patch is ugly and just copies and old version of gedit_output_window.c code into gtk+, so you will get conflicts between different versions of the same functions.
PS2: Oh, I forget to metion that the only thing I hate of GtkFileChooser is that if you have a ssh:// uri bookmarked or in recent-files, every chooser dialog will try to connect to the remote host just for getting info about its parent (opening an ssh conection, asking for access to the gnome-keyring, etc…
-
Archives
- October 2012
- July 2011
- April 2011
- March 2011
- October 2010
- July 2010
- May 2010
- January 2010
- November 2009
- October 2009
- July 2009
- June 2009
- September 2008
- November 2007
- September 2007
- August 2007
- July 2007
- June 2007
- February 2007
- December 2006
- November 2006
- October 2006
- August 2006
- June 2006
- April 2006
- March 2006
- February 2006
- January 2006
- December 2005
- November 2005
- October 2005
- September 2005
- August 2005
- July 2005
- June 2005
- May 2005
- April 2005
- March 2005
- February 2005
- January 2005
- December 2004
- November 2004
- October 2004
- September 2004
- August 2004
- July 2004
- June 2004
- May 2004
- April 2004
- March 2004
- February 2004
-
Meta