Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

new gtk.org doc format

  added pixbuf support


git-svn-id: https://gtknode.googlecode.com/svn/trunk@47 9999ab98-4a1b-0410-ba6a-d90168ca9a37
  • Loading branch information...
commit 03e923cd9177474c726c3a365bc5417ea3f976e3 1 parent 61ab5dd
@massemanet authored
View
6 priv/generator/gdk_predefined.defs
@@ -4,6 +4,12 @@
(c-name "GdkWindow")
(gtype-id "GDK_TYPE_WINDOW")
)
+(define-object Pixbuf
+ (in-module "Gdk")
+ (parent "GObject")
+ (c-name "GdkPixbuf")
+ (gtype-id "GDK_TYPE_PIXBUF")
+)
(define-object Pixmap
(in-module "Gdk")
(parent "GdkDrawable")
View
3  priv/generator/gdk_white.txt
@@ -4,3 +4,6 @@ gdk/gdkdrawable.h
gdk/gdkpixmap.h
gdk/gdkproperty.h
gdk/gdkwindow.h
+gdk/gdkpixbuf.h
+gdk-pixbuf/gdk-pixbuf-core.h
+gdk-pixbuf/gdk-pixbuf-transform.h
View
13 priv/generator/generator.erl
@@ -89,17 +89,18 @@ get_ix_http(Doc) ->
end.
doc_links(Root,S)->
- RE = "<a href=\"[A-Za-z-]+.html#id[0-9]+\">[a-z_]+ \\(\\)</a>",
+ RE = "href=\"[A-Za-z-]+.html#id[0-9]+\">[a-z_]+ \\(\\)</a>",
{match,Ms} = regexp:matches(S,RE),
io:fwrite("got ~p links for ~s~n",[length(Ms),basename(dirname(Root))]),
foreach(fun({St,Le})-> do_doc_link(Root,string:substr(S,St,Le)) end, Ms).
do_doc_link(URL,S) ->
- case string:tokens(S,"=>< \"") of
- ["a","href",Href,"g"++Func,"()","/a"] ->
- put("G"++Func,"<a href=\""++dirname(URL)++"/"++Href++"\">");
- _ -> ok
- end.
+ case string:tokens(S,"=>< ,\"") of
+ ["href",Href,"g"++Func,"()","/a"] ->
+ put("G"++Func,"<a href=\""++dirname(URL)++"/"++Href++"\">");
+ _ ->
+ ok
+ end.
do_types_loop([]) ->
ok;
Please sign in to comment.
Something went wrong with that request. Please try again.