On Thu, 2008-10-09 at 11:16 +0200, Werner Hoch wrote:
> On Mittwoch, 8. Oktober 2008, Peter Clifton wrote:
> > On Wed, 2008-10-08 at 21:00 +0200, Werner Hoch wrote:
> > > The filter list sorts the attributes, too. This is even the main
> > > reason why I've created the filter list.
> 
> > Use the tree sortable model. Example code in the component selector,
> > PCB's component selector, netlist view, ... (See GtkTreeModelSort.)
> 
> I've used g_list_sort now and a simple compare function.
> 
> rebased and extended:
> http://repo.or.cz/w/geda-gaf/werner.git?a=shortlog;h=refs/heads/bugfix
> 
> I've added a new option that will display all attributes in alphabetical 
> order:
> (component-dialog-attributes '(*))
> This will be the default option.
> 
> For curiousity, the most important attributes are in front of the sorted 
> list (device, description, footprint) while less important attributes 
> like slotdef,symversion, ... are at the end of the list.
> 
> Peter, can you review the whole feature? I think it's complete now.

I'll pull your code, rebase on top of the cario + local_mods I'm running
as "production code", so I'll end up using the code over the next day or
so. It looks good to the eye.

Perhaps sort_object_text() should be declared as "static gint ...",
since it is only used locally to that file.


-- 
Peter Clifton

Electrical Engineering Division,
Engineering Department,
University of Cambridge,
9, JJ Thomson Avenue,
Cambridge
CB3 0FA

Tel: +44 (0)7729 980173 - (No signal in the lab!)



_______________________________________________
geda-dev mailing list
[email protected]
http://www.seul.org/cgi-bin/mailman/listinfo/geda-dev

Reply via email to