gEDA-dev: [PATCH] gschem: recent files support

Ivan Stankovic ivan.stankovic at fer.hr
Mon Apr 23 07:43:21 EDT 2007


On Mon, Apr 23, 2007 at 12:17:46PM +0100, Peter TB Brett wrote:
> On Monday 23 April 2007 12:02:20 Ivan Stankovic wrote:
> > On Sat, Apr 21, 2007 at 11:23:40AM +0100, Peter Clifton wrote:
> > > My strategy for dealing with the guile stuff is to find a similar thing
> > > I want to copy, then use grep to chase it through the various places it
> > > is implemented.
> > >
> > > Good luck, and great work on the patch so far.
> >
> > Thanks for the help, I appreciate it. Please see the new patch
> > attached.
> 
> Firstly, big problem: you're using GLib's key file API, which was introduced 
> in GLib 2.6.  Gschem is required to be backward compatible as far as 2.4.
> 
> Options:
> 
> 1. Check for GTK 2.6, and don't support recent files if the API isn't new 
> enough (easy solution).
> 
> 2. Use a different mechanism (good solution).

I'm aware of this, but Ales suggested I use glib's keyfile mechanism.
Personally, I don't think many people use glib (or gtk) 2.4 these
days.

> Secondly, since gschem loads configuration from the current working directory, 
> that would be the appropriate place to store the recent files list.  This has 
> the added advantage that all the files in the recent files list would be 
> relevant to the project you're currently working on.

Yes, but I like global recent files. If you look at other programs
implementing this feature, almost always the recent file list is global
(ie. not specific to a particular project).

> Thirdly, I like using Stacked Git and my CVS-cloned repo at 
> http://repo.or.cz/w/geda-gaf.git to manage my ongoing patches.  It provides 
> lots of tools for managing multiple sets of patches and for browsing history. 

I was using git for the first patch, but for this one I had to
use CVS since the git mirror is currently broken:

[ivan at alpha2 ~/src] $ git clone http://repo.or.cz/w/geda-gaf.git
Initialized empty Git repository in /home/ivan/src/geda-gaf/.git/
/usr/bin/git-clone: line 374: cd: /home/ivan/src/geda-gaf/.git/refs/remotes/origin: No such file or directory
fatal: Not a valid object name HEAD

Don't know what causes this.

-- 
Ivan Stankovic, ivan.stankovic at fer.hr

"Protect your digital freedom and privacy, eliminate DRM, 
learn more at http://www.defectivebydesign.org/what_is_drm"


More information about the geda-dev mailing list