GNOME Bugzilla – Bug 599514
sane support for per-page images
Last modified: 2010-01-21 20:42:26 UTC
gtk-doc currently contains some extremely hacktastic code to put an image on each page of the Gtk documentation. it does this by doing a sort of 'reverse lookup' against the page, as it appears in the widget gallery, and determining what image was used for it there. so for example, if i am wondering what image belongs in the top corner of the GtkTreeView.html page, i look at the visual_index.xml and see: <link linkend="GtkTreeView"> <inlinegraphic fileref="list-and-tree.png" format="PNG"></inlinegraphic> </link> and i know what to use. it would make an awful lot more sense if it were possible to directly specify an image filename to use for each section in the documentation. i guess it would probably be very easy to add support for this to the XSL. maybe then gtk could even auto-generate its gallery page from this information. more to the point: it would allow you to have documentation images without requiring you to have an image gallery.
Created attachment 146189 [details] [review] [PATCH] add '@Image' attribute to sections
Review of attachment 146189 [details] [review]: phew, patch still applies. One minor nitpick below. It would be also great if you could add an example to tests/gobject and update the docs (help/manual/C/gtk-doc-manual.xml). I'll promisse then to apply this promptly. Thanks. ::: gtkdoc-mkdb.in @@ +2013,3 @@ + $image =~ s/^\s*//; + $image =~ s/\s*$//; + $image = " <inlinegraphic fileref=\"$image\" format=\"PNG\"/>\n" could you parse the format from the extension (png,jpeg/jpg) ?
I also got syntax error in gtkdoc-mktmpl (regarding an undefine var $images). Lets fixe those and then I try to have a 1.13 in a shorter cycle :)
Created attachment 151964 [details] [review] sdf
Created attachment 151966 [details] [review] forgot the png
Review of attachment 151964 [details] [review]: ::: tests/gobject/docs/tester.types @@ +3,2 @@ gtkdoc_iface_get_type +gtkdoc_object_get_type this files does not belong to the patch