SF.net SVN: geany-plugins:[1261] trunk/geanygendoc/src

colombanw at users.sourceforge.net colombanw at xxxxx
Tue Apr 20 20:55:44 UTC 2010


Revision: 1261
          http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1261&view=rev
Author:   colombanw
Date:     2010-04-20 20:55:44 +0000 (Tue, 20 Apr 2010)

Log Message:
-----------
GeanyGenDoc: Add ggd_tag_sort_by_line()

Add ggd_tag_sort_by_line() function that sorts a tag array by tag's
line.

Modified Paths:
--------------
    trunk/geanygendoc/src/ggd-tag-utils.c
    trunk/geanygendoc/src/ggd-tag-utils.h

Modified: trunk/geanygendoc/src/ggd-tag-utils.c
===================================================================
--- trunk/geanygendoc/src/ggd-tag-utils.c	2010-04-20 20:55:17 UTC (rev 1260)
+++ trunk/geanygendoc/src/ggd-tag-utils.c	2010-04-20 20:55:44 UTC (rev 1261)
@@ -70,6 +70,14 @@
   return rv;
 }
 
+void
+ggd_tag_sort_by_line (GPtrArray *tags)
+{
+  g_return_if_fail (tags != NULL);
+  
+  g_ptr_array_sort (tags, tag_cmp_by_line);
+}
+
 TMTag *
 ggd_tag_find_from_line (GPtrArray  *tags,
                         gulong      line)

Modified: trunk/geanygendoc/src/ggd-tag-utils.h
===================================================================
--- trunk/geanygendoc/src/ggd-tag-utils.h	2010-04-20 20:55:17 UTC (rev 1260)
+++ trunk/geanygendoc/src/ggd-tag-utils.h	2010-04-20 20:55:44 UTC (rev 1261)
@@ -26,6 +26,7 @@
 G_BEGIN_DECLS
 
 
+void          ggd_tag_sort_by_line            (GPtrArray  *tags);
 TMTag        *ggd_tag_find_from_line          (GPtrArray  *tags,
                                                gulong      line);
 TMTag        *ggd_tag_find_at_current_pos     (GeanyDocument *doc);


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Plugins-Commits mailing list