[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
gEDA-cvs: CVS update: s_clib.c
User: peterb
Date: 07/06/09 16:30:15
Modified: . s_clib.c
Log:
Fix gschem's sort-component-library option
In the last release, the sort-component-library gschemrc option did
nothing. This patch corrects the issue, by adding an argument to
s_clib_get_sources which enables or disables sorting the list of
component sources.
Revision Changes Path
1.28 eda/geda/gaf/libgeda/src/s_clib.c
(In the diff below, changes in quantity of whitespace are not shown.)
Index: s_clib.c
===================================================================
RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/libgeda/src/s_clib.c,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -b -r1.27 -r1.28
--- s_clib.c 4 Jun 2007 16:15:43 -0000 1.27
+++ s_clib.c 9 Jun 2007 20:30:15 -0000 1.28
@@ -429,10 +429,12 @@
* calls to s_clib_add_directory() or s_clib_add_command().
* \return A \b GList of CLibSource.
*/
-GList *s_clib_get_sources ()
+GList *s_clib_get_sources (const gboolean sorted)
{
GList *l = g_list_copy(clib_sources);
+ if (sorted) {
l = g_list_sort (l, (GCompareFunc) compare_source_name);
+ }
return l;
}
_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs