Index: gtkdoc-scan.in
===================================================================
--- gtkdoc-scan.in	(revision 486)
+++ gtkdoc-scan.in	(working copy)
@@ -462,7 +462,7 @@ sub ScanHeader {
 
 		if ($previous_line !~ m/^\s*G_INLINE_FUNC/
 		    && $previous_line !~ m/^\s*static\s+/) {
-		    if ($previous_line =~ m/^\s*(?:\b(?:extern|${IGNORE_DECORATORS})\b\s*)*((?:const\s+|G_CONST_RETURN\s+|unsigned\s+|struct\s+|enum\s+)?\w+)(\s*\*+)?\s*$/) {
+		    if ($previous_line =~ m/^\s*(?:\b(?:extern|${IGNORE_DECORATORS})\b\s*)*((?:const\s+|G_CONST_RETURN\s+|unsigned\s+|struct\s+|enum\s+)?\w+)(?:\**\s+\**(?:const|G_CONST_RETURN))?(\s*\*+)?\s*$/) {
 			$ret_type = $1;
 			if (defined ($2)) { $ret_type .= " $2"; }
 			#print "DEBUG: Function: $symbol, Returns: $ret_type\n";
