forked from AuroraMiddleware/gtk
6e3522ab2c
2000-01-01 Federico Mena Quintero <federico@helixcode.com> * gdk-pixbuf/gdk-pixbuf.h (GdkPixbufAnimation): Added reference counting to animations. A web browser may want to share a single copy of an animated GIF if it appears multiple times in a web page, for example. * gdk-pixbuf/gdk-pixbuf-animation.c: New file. Moved the animation functions here. (gdk_pixbuf_animation_new_from_file): Prettified. Return a NULL animation if the loader does not support multiframe loading and the single-frame load returned NULL. Check that the filename is not NULL. Updated inline documentation. (gdk_pixbuf_animation_ref): New function. (gdk_pixbuf_animation_unref): New function. Removed gdk_pixbuf_animation_destroy() in favor of reference counting. * gdk-pixbuf/gdk-pixbuf-io.c (gdk_pixbuf_new_from_file): Prettified. Made ref_count assertion more paranoid. Check that the filename is not NULL. (gdk_pixbuf_get_module): Use guchar * and guint for buffer and size, respectively. (gdk_pixbuf_new_from_xpm_data): Changed the "data" argument to const char **. * gdk-pixbuf/io-gif.c (image_load_animation): Create the animation with a reference count of 1. * gdk-pixbuf/Makefile.am (libgdk_pixbuf_la_SOURCES): Added gdk-pixbuf-animation.c. * doc/tmpl/animation.sgml: Populated. It is still missing a description of the overlay modes. * doc/gdk-pixbuf-sections.txt: Added the animation section. Moved the canvas item section to the end, as it will be moved later to gnome-libs. * doc/gdk-pixbuf.sgml: Added the animation section. * doc/Makefile.am (tmpl_sources): Added tmpl/animation.sgml.
104 lines
2.7 KiB
Makefile
104 lines
2.7 KiB
Makefile
## Process this file with automake to produce Makefile.in
|
|
|
|
# The name of the module.
|
|
DOC_MODULE=gdk-pixbuf
|
|
|
|
# The top-level SGML file.
|
|
DOC_MAIN_SGML_FILE=gdk-pixbuf.sgml
|
|
|
|
# The directory containing the source code (if it contains documentation).
|
|
DOC_SOURCE_DIR=$(GDK_PIXBUF_DIR)/gdk-pixbuf
|
|
|
|
CFLAGS=`gnome-config --cflags gnomeui gdk_pixbuf`
|
|
LDFLAGS=`gnome-config --libs gnomeui gdk_pixbuf`
|
|
|
|
HTML_DIR=$(datadir)/gnome/html
|
|
|
|
TARGET_DIR=$(HTML_DIR)/$(DOC_MODULE)
|
|
|
|
tmpl_sources = \
|
|
tmpl/animation.sgml
|
|
tmpl/creating.sgml \
|
|
tmpl/file-loading.sgml \
|
|
tmpl/from-drawables.sgml \
|
|
tmpl/gdk-pixbuf-loader.sgml \
|
|
tmpl/gdk-pixbuf-unused.sgml \
|
|
tmpl/gdk-pixbuf.sgml \
|
|
tmpl/gnome-canvas-pixbuf.sgml \
|
|
tmpl/refcounting.sgml \
|
|
tmpl/rendering.sgml \
|
|
tmpl/util.sgml
|
|
|
|
gdk_pixbuf_docdir = $(HTML_DIR)
|
|
gdk_pixbuf_doc_DATA = \
|
|
gdk-pixbuf.html \
|
|
gdk-pixbuf.hierarchy \
|
|
gdk-pixbuf.types \
|
|
gdk-pixbuf-decl.txt \
|
|
gdk-pixbuf-sections.txt
|
|
|
|
EXTRA_DIST = $(gdk_pixbuf_doc_DATA)
|
|
|
|
if ENABLE_GTK_DOC
|
|
gdk-pixbuf.html: html/book1.html
|
|
-cd $(srcdir) && cp html/book1.html gdk-pixbuf.html
|
|
else
|
|
gdk-pixbuf.html:
|
|
endif
|
|
|
|
html/book1.html: sgml/gdk-pixbuf-doc.bottom
|
|
$(MAKE) html
|
|
|
|
sgml/gdk-pixbuf-doc.bottom: $(tmpl_sources)
|
|
$(MAKE) sgml
|
|
|
|
scan:
|
|
-(cd $(srcdir) \
|
|
&& env CFLAGS=$(CFLAGS) LDFLAGS=$(LDFLAGS) \
|
|
gtkdoc-scanobj --module=$(DOC_MODULE) \
|
|
&& gtkdoc-scan --module=$(DOC_MODULE) --source-dir=$(DOC_SOURCE_DIR) )
|
|
|
|
templates: scan
|
|
cd $(srcdir) && gtkdoc-mktmpl --module=$(DOC_MODULE)
|
|
|
|
sgml:
|
|
cd $(srcdir) \
|
|
&& gtkdoc-mkdb --module=$(DOC_MODULE) --source-dir=$(DOC_SOURCE_DIR)
|
|
|
|
html:
|
|
test -d $(srcdir)/html || mkdir $(srcdir)/html
|
|
-cd $(srcdir)/html && gtkdoc-mkhtml $(DOC_MODULE) ../$(DOC_MAIN_SGML_FILE)
|
|
|
|
clean-local:
|
|
rm -f *~ *.bak *.signals *-unused.txt
|
|
|
|
maintainer-clean-local: clean
|
|
cd $(srcdir) && rm -rf sgml html $(DOC_MODULE)-decl-list.txt $(DOC_MODULE)-decl.txt
|
|
|
|
install-data-local:
|
|
$(mkinstalldirs) $(DESTDIR)$(TARGET_DIR)
|
|
(installfiles=`echo $(srcdir)/html/*.html`; \
|
|
if test "$$installfiles" = '$(srcdir)/html/*.html'; \
|
|
then echo '-- Nothing to install' ; \
|
|
else \
|
|
for i in $$installfiles; do \
|
|
echo '-- Installing '$$i ; \
|
|
$(INSTALL_DATA) $$i $(DESTDIR)$(TARGET_DIR); \
|
|
done; \
|
|
echo '-- Installing $(srcdir)/html/index.sgml' ; \
|
|
$(INSTALL_DATA) $(srcdir)/html/index.sgml $(DESTDIR)$(TARGET_DIR); \
|
|
echo '-- Fixing Crossreferences' ; \
|
|
gtkdoc-fixxref --module=$(DOC_MODULE) --html-dir=$(HTML_DIR)|| true; \
|
|
fi)
|
|
|
|
dist-hook:
|
|
mkdir $(distdir)/html
|
|
mkdir $(distdir)/sgml
|
|
mkdir $(distdir)/tmpl
|
|
-cp $(srcdir)/html/*.html $(srcdir)/html/*.css $(distdir)/html
|
|
-cp $(srcdir)/tmpl/*.sgml $(distdir)/tmpl
|
|
-cp $(srcdir)/sgml/*.sgml $(distdir)/sgml
|
|
-cp $(srcdir)/sgml/*.bottom $(srcdir)/sgml/*.top $(distdir)/sgml
|
|
|
|
.PHONY : html sgml templates scan
|