gtk-doc r668 - in trunk: . tests/gobject/examples



Author: stefkost
Date: Wed Jan 28 11:03:07 2009
New Revision: 668
URL: http://svn.gnome.org/viewvc/gtk-doc?rev=668&view=rev

Log:
	* gtkdoc-fixxref.in:
	* tests/gobject/examples/gobject.c:
	  Expand urls in comments of examples.



Modified:
   trunk/ChangeLog
   trunk/gtkdoc-fixxref.in
   trunk/tests/gobject/examples/gobject.c

Modified: trunk/gtkdoc-fixxref.in
==============================================================================
--- trunk/gtkdoc-fixxref.in	(original)
+++ trunk/gtkdoc-fixxref.in	Wed Jan 28 11:03:07 2009
@@ -332,6 +332,10 @@
     # chop of leading and trailing empty lines
     $highlighted_source =~ s/^[\s\n]+//gs;
     $highlighted_source =~ s/[\s\n]+$//gs;
+    
+    # turn common urls in comments into links
+    $highlighted_source =~ s%<span class="url">(.*?)</span>%<span class="url"><a href="$1">$1</a></span>%gs;
+
     # we do own line-numbering
     my $source_lines="";
     my $line_count = () = $highlighted_source =~ /\n/gs;

Modified: trunk/tests/gobject/examples/gobject.c
==============================================================================
--- trunk/tests/gobject/examples/gobject.c	(original)
+++ trunk/tests/gobject/examples/gobject.c	Wed Jan 28 11:03:07 2009
@@ -1,4 +1,9 @@
-/* example for gobject usage */
+/* example for gobject usage
+ * checkout the article at http://en.wikipedia.org/wiki/GObject
+ *
+ * This example is part of the release, that can be downloaded
+ * from ftp://ftp.gnome.org/pub/gnome/sources/gtk-doc/ or any mirror.
+ */
 
 #include <glib.h>
 #include <glib-object.h>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]