summaryrefslogtreecommitdiffstats
path: root/devel-docs/tools
diff options
context:
space:
mode:
Diffstat (limited to 'devel-docs/tools')
-rw-r--r--devel-docs/tools/Makefile.am56
-rw-r--r--devel-docs/tools/Makefile.in953
-rw-r--r--devel-docs/tools/README.shooter13
-rw-r--r--devel-docs/tools/shadow.c149
-rw-r--r--devel-docs/tools/shadow.h8
-rw-r--r--devel-docs/tools/shooter.c298
-rw-r--r--devel-docs/tools/units.c102
-rw-r--r--devel-docs/tools/units.h8
-rw-r--r--devel-docs/tools/widgets.c756
-rw-r--r--devel-docs/tools/widgets.h25
10 files changed, 2368 insertions, 0 deletions
diff --git a/devel-docs/tools/Makefile.am b/devel-docs/tools/Makefile.am
new file mode 100644
index 0000000..4554852
--- /dev/null
+++ b/devel-docs/tools/Makefile.am
@@ -0,0 +1,56 @@
+## Process this file with automake to produce Makefile.in
+
+if OS_WIN32
+mwindows = -mwindows
+else
+libm = -lm
+endif
+
+libgimpbase = $(top_builddir)/libgimpbase/libgimpbase-$(GIMP_API_VERSION).la
+libgimpcolor = $(top_builddir)/libgimpcolor/libgimpcolor-$(GIMP_API_VERSION).la
+libgimpconfig = $(top_builddir)/libgimpconfig/libgimpconfig-$(GIMP_API_VERSION).la
+libgimpmath = $(top_builddir)/libgimpmath/libgimpmath-$(GIMP_API_VERSION).la $(libm)
+libgimpmodule = $(top_builddir)/libgimpmodule/libgimpmodule-$(GIMP_API_VERSION).la
+libgimpwidgets = $(top_builddir)/libgimpwidgets/libgimpwidgets-$(GIMP_API_VERSION).la
+
+
+AM_CPPFLAGS = \
+ $(GTK_CFLAGS) \
+ -DTOP_SRCDIR=\"$(top_srcdir)\" \
+ -I$(top_srcdir) \
+ $(GEGL_CFLAGS)
+
+AM_LDFLAGS = $(mwindows)
+
+
+if ENABLE_GTK_DOC
+noinst_PROGRAMS = $(DOC_SHOOTER)
+endif
+
+doc_shooter_SOURCES = \
+ shadow.c \
+ shadow.h \
+ shooter.c \
+ units.c \
+ units.h \
+ widgets.c \
+ widgets.h
+
+doc_shooter_LDADD = \
+ $(libgimpwidgets) \
+ $(libgimpconfig) \
+ $(libgimpmodule) \
+ $(libgimpmath) \
+ $(libgimpcolor) \
+ $(libgimpbase) \
+ $(GTK_LIBS) \
+ $(X_LIBS) -lX11 -lXext
+
+
+EXTRA_PROGRAMS = doc-shooter
+
+EXTRA_DIST = README.shooter
+
+
+clean-local:
+ rm -f *.png
diff --git a/devel-docs/tools/Makefile.in b/devel-docs/tools/Makefile.in
new file mode 100644
index 0000000..a45e641
--- /dev/null
+++ b/devel-docs/tools/Makefile.in
@@ -0,0 +1,953 @@
+# Makefile.in generated by automake 1.16.2 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994-2020 Free Software Foundation, Inc.
+
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+@SET_MAKE@
+
+VPATH = @srcdir@
+am__is_gnu_make = { \
+ if test -z '$(MAKELEVEL)'; then \
+ false; \
+ elif test -n '$(MAKE_HOST)'; then \
+ true; \
+ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
+ true; \
+ else \
+ false; \
+ fi; \
+}
+am__make_running_with_option = \
+ case $${target_option-} in \
+ ?) ;; \
+ *) echo "am__make_running_with_option: internal error: invalid" \
+ "target option '$${target_option-}' specified" >&2; \
+ exit 1;; \
+ esac; \
+ has_opt=no; \
+ sane_makeflags=$$MAKEFLAGS; \
+ if $(am__is_gnu_make); then \
+ sane_makeflags=$$MFLAGS; \
+ else \
+ case $$MAKEFLAGS in \
+ *\\[\ \ ]*) \
+ bs=\\; \
+ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
+ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
+ esac; \
+ fi; \
+ skip_next=no; \
+ strip_trailopt () \
+ { \
+ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
+ }; \
+ for flg in $$sane_makeflags; do \
+ test $$skip_next = yes && { skip_next=no; continue; }; \
+ case $$flg in \
+ *=*|--*) continue;; \
+ -*I) strip_trailopt 'I'; skip_next=yes;; \
+ -*I?*) strip_trailopt 'I';; \
+ -*O) strip_trailopt 'O'; skip_next=yes;; \
+ -*O?*) strip_trailopt 'O';; \
+ -*l) strip_trailopt 'l'; skip_next=yes;; \
+ -*l?*) strip_trailopt 'l';; \
+ -[dEDm]) skip_next=yes;; \
+ -[JT]) skip_next=yes;; \
+ esac; \
+ case $$flg in \
+ *$$target_option*) has_opt=yes; break;; \
+ esac; \
+ done; \
+ test $$has_opt = yes
+am__make_dryrun = (target_option=n; $(am__make_running_with_option))
+am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
+pkgdatadir = $(datadir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkglibexecdir = $(libexecdir)/@PACKAGE@
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = @build@
+host_triplet = @host@
+EXTRA_PROGRAMS = doc-shooter$(EXEEXT)
+subdir = devel-docs/tools
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/m4macros/gtk-doc.m4 \
+ $(top_srcdir)/m4macros/intltool.m4 \
+ $(top_srcdir)/m4macros/libtool.m4 \
+ $(top_srcdir)/m4macros/ltoptions.m4 \
+ $(top_srcdir)/m4macros/ltsugar.m4 \
+ $(top_srcdir)/m4macros/ltversion.m4 \
+ $(top_srcdir)/m4macros/lt~obsolete.m4 \
+ $(top_srcdir)/acinclude.m4 $(top_srcdir)/m4macros/alsa.m4 \
+ $(top_srcdir)/m4macros/ax_compare_version.m4 \
+ $(top_srcdir)/m4macros/ax_cxx_compile_stdcxx.m4 \
+ $(top_srcdir)/m4macros/ax_gcc_func_attribute.m4 \
+ $(top_srcdir)/m4macros/ax_prog_cc_for_build.m4 \
+ $(top_srcdir)/m4macros/ax_prog_perl_version.m4 \
+ $(top_srcdir)/m4macros/detectcflags.m4 \
+ $(top_srcdir)/m4macros/pythondev.m4 $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+ $(ACLOCAL_M4)
+DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
+mkinstalldirs = $(install_sh) -d
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+PROGRAMS = $(noinst_PROGRAMS)
+am_doc_shooter_OBJECTS = shadow.$(OBJEXT) shooter.$(OBJEXT) \
+ units.$(OBJEXT) widgets.$(OBJEXT)
+doc_shooter_OBJECTS = $(am_doc_shooter_OBJECTS)
+am__DEPENDENCIES_1 =
+am__DEPENDENCIES_2 = $(top_builddir)/libgimpmath/libgimpmath-$(GIMP_API_VERSION).la \
+ $(am__DEPENDENCIES_1)
+doc_shooter_DEPENDENCIES = $(libgimpwidgets) $(libgimpconfig) \
+ $(libgimpmodule) $(am__DEPENDENCIES_2) $(libgimpcolor) \
+ $(libgimpbase) $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1)
+AM_V_lt = $(am__v_lt_@AM_V@)
+am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
+am__v_lt_0 = --silent
+am__v_lt_1 =
+AM_V_P = $(am__v_P_@AM_V@)
+am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
+am__v_P_0 = false
+am__v_P_1 = :
+AM_V_GEN = $(am__v_GEN_@AM_V@)
+am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
+am__v_GEN_0 = @echo " GEN " $@;
+am__v_GEN_1 =
+AM_V_at = $(am__v_at_@AM_V@)
+am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
+am__v_at_0 = @
+am__v_at_1 =
+DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
+depcomp = $(SHELL) $(top_srcdir)/depcomp
+am__maybe_remake_depfiles = depfiles
+am__depfiles_remade = ./$(DEPDIR)/shadow.Po ./$(DEPDIR)/shooter.Po \
+ ./$(DEPDIR)/units.Po ./$(DEPDIR)/widgets.Po
+am__mv = mv -f
+COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
+ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
+ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
+ $(AM_CFLAGS) $(CFLAGS)
+AM_V_CC = $(am__v_CC_@AM_V@)
+am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
+am__v_CC_0 = @echo " CC " $@;
+am__v_CC_1 =
+CCLD = $(CC)
+LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
+ $(AM_LDFLAGS) $(LDFLAGS) -o $@
+AM_V_CCLD = $(am__v_CCLD_@AM_V@)
+am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
+am__v_CCLD_0 = @echo " CCLD " $@;
+am__v_CCLD_1 =
+SOURCES = $(doc_shooter_SOURCES)
+DIST_SOURCES = $(doc_shooter_SOURCES)
+am__can_run_installinfo = \
+ case $$AM_UPDATE_INFO_DIR in \
+ n|no|NO) false;; \
+ *) (install-info --version) >/dev/null 2>&1;; \
+ esac
+am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
+# Read a list of newline-separated strings from the standard input,
+# and print each of them once, without duplicates. Input order is
+# *not* preserved.
+am__uniquify_input = $(AWK) '\
+ BEGIN { nonempty = 0; } \
+ { items[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in items) print i; }; } \
+'
+# Make sure the list of sources is unique. This is necessary because,
+# e.g., the same source file might be shared among _SOURCES variables
+# for different programs/libraries.
+am__define_uniq_tagged_files = \
+ list='$(am__tagged_files)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | $(am__uniquify_input)`
+ETAGS = etags
+CTAGS = ctags
+am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+AA_LIBS = @AA_LIBS@
+ACLOCAL = @ACLOCAL@
+ALLOCA = @ALLOCA@
+ALL_LINGUAS = @ALL_LINGUAS@
+ALSA_CFLAGS = @ALSA_CFLAGS@
+ALSA_LIBS = @ALSA_LIBS@
+ALTIVEC_EXTRA_CFLAGS = @ALTIVEC_EXTRA_CFLAGS@
+AMTAR = @AMTAR@
+AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
+APPSTREAM_UTIL = @APPSTREAM_UTIL@
+AR = @AR@
+AS = @AS@
+ATK_CFLAGS = @ATK_CFLAGS@
+ATK_LIBS = @ATK_LIBS@
+ATK_REQUIRED_VERSION = @ATK_REQUIRED_VERSION@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+BABL_CFLAGS = @BABL_CFLAGS@
+BABL_LIBS = @BABL_LIBS@
+BABL_REQUIRED_VERSION = @BABL_REQUIRED_VERSION@
+BUG_REPORT_URL = @BUG_REPORT_URL@
+BUILD_EXEEXT = @BUILD_EXEEXT@
+BUILD_OBJEXT = @BUILD_OBJEXT@
+BZIP2_LIBS = @BZIP2_LIBS@
+CAIRO_CFLAGS = @CAIRO_CFLAGS@
+CAIRO_LIBS = @CAIRO_LIBS@
+CAIRO_PDF_CFLAGS = @CAIRO_PDF_CFLAGS@
+CAIRO_PDF_LIBS = @CAIRO_PDF_LIBS@
+CAIRO_PDF_REQUIRED_VERSION = @CAIRO_PDF_REQUIRED_VERSION@
+CAIRO_REQUIRED_VERSION = @CAIRO_REQUIRED_VERSION@
+CATALOGS = @CATALOGS@
+CATOBJEXT = @CATOBJEXT@
+CC = @CC@
+CCAS = @CCAS@
+CCASDEPMODE = @CCASDEPMODE@
+CCASFLAGS = @CCASFLAGS@
+CCDEPMODE = @CCDEPMODE@
+CC_FOR_BUILD = @CC_FOR_BUILD@
+CC_VERSION = @CC_VERSION@
+CFLAGS = @CFLAGS@
+CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CPPFLAGS_FOR_BUILD = @CPPFLAGS_FOR_BUILD@
+CPP_FOR_BUILD = @CPP_FOR_BUILD@
+CXX = @CXX@
+CXXCPP = @CXXCPP@
+CXXDEPMODE = @CXXDEPMODE@
+CXXFLAGS = @CXXFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DATADIRNAME = @DATADIRNAME@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+DESKTOP_DATADIR = @DESKTOP_DATADIR@
+DESKTOP_FILE_VALIDATE = @DESKTOP_FILE_VALIDATE@
+DLLTOOL = @DLLTOOL@
+DOC_SHOOTER = @DOC_SHOOTER@
+DSYMUTIL = @DSYMUTIL@
+DUMPBIN = @DUMPBIN@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+EXEEXT = @EXEEXT@
+FGREP = @FGREP@
+FILE_AA = @FILE_AA@
+FILE_EXR = @FILE_EXR@
+FILE_HEIF = @FILE_HEIF@
+FILE_JP2_LOAD = @FILE_JP2_LOAD@
+FILE_MNG = @FILE_MNG@
+FILE_PDF_SAVE = @FILE_PDF_SAVE@
+FILE_PS = @FILE_PS@
+FILE_WMF = @FILE_WMF@
+FILE_XMC = @FILE_XMC@
+FILE_XPM = @FILE_XPM@
+FONTCONFIG_CFLAGS = @FONTCONFIG_CFLAGS@
+FONTCONFIG_LIBS = @FONTCONFIG_LIBS@
+FONTCONFIG_REQUIRED_VERSION = @FONTCONFIG_REQUIRED_VERSION@
+FREETYPE2_REQUIRED_VERSION = @FREETYPE2_REQUIRED_VERSION@
+FREETYPE_CFLAGS = @FREETYPE_CFLAGS@
+FREETYPE_LIBS = @FREETYPE_LIBS@
+GDBUS_CODEGEN = @GDBUS_CODEGEN@
+GDK_PIXBUF_CFLAGS = @GDK_PIXBUF_CFLAGS@
+GDK_PIXBUF_CSOURCE = @GDK_PIXBUF_CSOURCE@
+GDK_PIXBUF_LIBS = @GDK_PIXBUF_LIBS@
+GDK_PIXBUF_REQUIRED_VERSION = @GDK_PIXBUF_REQUIRED_VERSION@
+GEGL = @GEGL@
+GEGL_CFLAGS = @GEGL_CFLAGS@
+GEGL_LIBS = @GEGL_LIBS@
+GEGL_MAJOR_MINOR_VERSION = @GEGL_MAJOR_MINOR_VERSION@
+GEGL_REQUIRED_VERSION = @GEGL_REQUIRED_VERSION@
+GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
+GEXIV2_CFLAGS = @GEXIV2_CFLAGS@
+GEXIV2_LIBS = @GEXIV2_LIBS@
+GEXIV2_REQUIRED_VERSION = @GEXIV2_REQUIRED_VERSION@
+GIMP_API_VERSION = @GIMP_API_VERSION@
+GIMP_APP_VERSION = @GIMP_APP_VERSION@
+GIMP_BINARY_AGE = @GIMP_BINARY_AGE@
+GIMP_COMMAND = @GIMP_COMMAND@
+GIMP_DATA_VERSION = @GIMP_DATA_VERSION@
+GIMP_FULL_NAME = @GIMP_FULL_NAME@
+GIMP_INTERFACE_AGE = @GIMP_INTERFACE_AGE@
+GIMP_MAJOR_VERSION = @GIMP_MAJOR_VERSION@
+GIMP_MICRO_VERSION = @GIMP_MICRO_VERSION@
+GIMP_MINOR_VERSION = @GIMP_MINOR_VERSION@
+GIMP_MKENUMS = @GIMP_MKENUMS@
+GIMP_MODULES = @GIMP_MODULES@
+GIMP_PACKAGE_REVISION = @GIMP_PACKAGE_REVISION@
+GIMP_PKGCONFIG_VERSION = @GIMP_PKGCONFIG_VERSION@
+GIMP_PLUGINS = @GIMP_PLUGINS@
+GIMP_PLUGIN_VERSION = @GIMP_PLUGIN_VERSION@
+GIMP_REAL_VERSION = @GIMP_REAL_VERSION@
+GIMP_SYSCONF_VERSION = @GIMP_SYSCONF_VERSION@
+GIMP_TOOL_VERSION = @GIMP_TOOL_VERSION@
+GIMP_UNSTABLE = @GIMP_UNSTABLE@
+GIMP_USER_VERSION = @GIMP_USER_VERSION@
+GIMP_VERSION = @GIMP_VERSION@
+GIO_CFLAGS = @GIO_CFLAGS@
+GIO_LIBS = @GIO_LIBS@
+GIO_UNIX_CFLAGS = @GIO_UNIX_CFLAGS@
+GIO_UNIX_LIBS = @GIO_UNIX_LIBS@
+GIO_WINDOWS_CFLAGS = @GIO_WINDOWS_CFLAGS@
+GIO_WINDOWS_LIBS = @GIO_WINDOWS_LIBS@
+GLIB_CFLAGS = @GLIB_CFLAGS@
+GLIB_COMPILE_RESOURCES = @GLIB_COMPILE_RESOURCES@
+GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
+GLIB_LIBS = @GLIB_LIBS@
+GLIB_MKENUMS = @GLIB_MKENUMS@
+GLIB_REQUIRED_VERSION = @GLIB_REQUIRED_VERSION@
+GMODULE_NO_EXPORT_CFLAGS = @GMODULE_NO_EXPORT_CFLAGS@
+GMODULE_NO_EXPORT_LIBS = @GMODULE_NO_EXPORT_LIBS@
+GMOFILES = @GMOFILES@
+GMSGFMT = @GMSGFMT@
+GOBJECT_QUERY = @GOBJECT_QUERY@
+GREP = @GREP@
+GS_LIBS = @GS_LIBS@
+GTKDOC_CHECK = @GTKDOC_CHECK@
+GTKDOC_CHECK_PATH = @GTKDOC_CHECK_PATH@
+GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@
+GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@
+GTKDOC_MKPDF = @GTKDOC_MKPDF@
+GTKDOC_REBASE = @GTKDOC_REBASE@
+GTK_CFLAGS = @GTK_CFLAGS@
+GTK_LIBS = @GTK_LIBS@
+GTK_MAC_INTEGRATION_CFLAGS = @GTK_MAC_INTEGRATION_CFLAGS@
+GTK_MAC_INTEGRATION_LIBS = @GTK_MAC_INTEGRATION_LIBS@
+GTK_REQUIRED_VERSION = @GTK_REQUIRED_VERSION@
+GTK_UPDATE_ICON_CACHE = @GTK_UPDATE_ICON_CACHE@
+GUDEV_CFLAGS = @GUDEV_CFLAGS@
+GUDEV_LIBS = @GUDEV_LIBS@
+HARFBUZZ_CFLAGS = @HARFBUZZ_CFLAGS@
+HARFBUZZ_LIBS = @HARFBUZZ_LIBS@
+HARFBUZZ_REQUIRED_VERSION = @HARFBUZZ_REQUIRED_VERSION@
+HAVE_CXX14 = @HAVE_CXX14@
+HAVE_FINITE = @HAVE_FINITE@
+HAVE_ISFINITE = @HAVE_ISFINITE@
+HAVE_VFORK = @HAVE_VFORK@
+HOST_GLIB_COMPILE_RESOURCES = @HOST_GLIB_COMPILE_RESOURCES@
+HTML_DIR = @HTML_DIR@
+INSTALL = @INSTALL@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+INSTOBJEXT = @INSTOBJEXT@
+INTLLIBS = @INTLLIBS@
+INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@
+INTLTOOL_MERGE = @INTLTOOL_MERGE@
+INTLTOOL_PERL = @INTLTOOL_PERL@
+INTLTOOL_REQUIRED_VERSION = @INTLTOOL_REQUIRED_VERSION@
+INTLTOOL_UPDATE = @INTLTOOL_UPDATE@
+INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@
+INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@
+INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@
+INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@
+INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
+ISO_CODES_LOCALEDIR = @ISO_CODES_LOCALEDIR@
+ISO_CODES_LOCATION = @ISO_CODES_LOCATION@
+JPEG_LIBS = @JPEG_LIBS@
+JSON_GLIB_CFLAGS = @JSON_GLIB_CFLAGS@
+JSON_GLIB_LIBS = @JSON_GLIB_LIBS@
+LCMS_CFLAGS = @LCMS_CFLAGS@
+LCMS_LIBS = @LCMS_LIBS@
+LCMS_REQUIRED_VERSION = @LCMS_REQUIRED_VERSION@
+LD = @LD@
+LDFLAGS = @LDFLAGS@
+LDFLAGS_FOR_BUILD = @LDFLAGS_FOR_BUILD@
+LIBBACKTRACE_LIBS = @LIBBACKTRACE_LIBS@
+LIBHEIF_CFLAGS = @LIBHEIF_CFLAGS@
+LIBHEIF_LIBS = @LIBHEIF_LIBS@
+LIBHEIF_REQUIRED_VERSION = @LIBHEIF_REQUIRED_VERSION@
+LIBLZMA_REQUIRED_VERSION = @LIBLZMA_REQUIRED_VERSION@
+LIBMYPAINT_CFLAGS = @LIBMYPAINT_CFLAGS@
+LIBMYPAINT_LIBS = @LIBMYPAINT_LIBS@
+LIBMYPAINT_REQUIRED_VERSION = @LIBMYPAINT_REQUIRED_VERSION@
+LIBOBJS = @LIBOBJS@
+LIBPNG_REQUIRED_VERSION = @LIBPNG_REQUIRED_VERSION@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LIBUNWIND_CFLAGS = @LIBUNWIND_CFLAGS@
+LIBUNWIND_LIBS = @LIBUNWIND_LIBS@
+LIBUNWIND_REQUIRED_VERSION = @LIBUNWIND_REQUIRED_VERSION@
+LIPO = @LIPO@
+LN_S = @LN_S@
+LTLIBOBJS = @LTLIBOBJS@
+LT_CURRENT_MINUS_AGE = @LT_CURRENT_MINUS_AGE@
+LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
+LT_VERSION_INFO = @LT_VERSION_INFO@
+LZMA_CFLAGS = @LZMA_CFLAGS@
+LZMA_LIBS = @LZMA_LIBS@
+MAIL = @MAIL@
+MAINT = @MAINT@
+MAKEINFO = @MAKEINFO@
+MANIFEST_TOOL = @MANIFEST_TOOL@
+MIME_INFO_CFLAGS = @MIME_INFO_CFLAGS@
+MIME_INFO_LIBS = @MIME_INFO_LIBS@
+MIME_TYPES = @MIME_TYPES@
+MKDIR_P = @MKDIR_P@
+MKINSTALLDIRS = @MKINSTALLDIRS@
+MMX_EXTRA_CFLAGS = @MMX_EXTRA_CFLAGS@
+MNG_CFLAGS = @MNG_CFLAGS@
+MNG_LIBS = @MNG_LIBS@
+MSGFMT = @MSGFMT@
+MSGFMT_OPTS = @MSGFMT_OPTS@
+MSGMERGE = @MSGMERGE@
+MYPAINT_BRUSHES_CFLAGS = @MYPAINT_BRUSHES_CFLAGS@
+MYPAINT_BRUSHES_LIBS = @MYPAINT_BRUSHES_LIBS@
+NATIVE_GLIB_CFLAGS = @NATIVE_GLIB_CFLAGS@
+NATIVE_GLIB_LIBS = @NATIVE_GLIB_LIBS@
+NM = @NM@
+NMEDIT = @NMEDIT@
+OBJDUMP = @OBJDUMP@
+OBJEXT = @OBJEXT@
+OPENEXR_CFLAGS = @OPENEXR_CFLAGS@
+OPENEXR_LIBS = @OPENEXR_LIBS@
+OPENEXR_REQUIRED_VERSION = @OPENEXR_REQUIRED_VERSION@
+OPENJPEG_CFLAGS = @OPENJPEG_CFLAGS@
+OPENJPEG_LIBS = @OPENJPEG_LIBS@
+OPENJPEG_REQUIRED_VERSION = @OPENJPEG_REQUIRED_VERSION@
+OTOOL = @OTOOL@
+OTOOL64 = @OTOOL64@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_URL = @PACKAGE_URL@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PANGOCAIRO_CFLAGS = @PANGOCAIRO_CFLAGS@
+PANGOCAIRO_LIBS = @PANGOCAIRO_LIBS@
+PANGOCAIRO_REQUIRED_VERSION = @PANGOCAIRO_REQUIRED_VERSION@
+PATHSEP = @PATHSEP@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PERL = @PERL@
+PERL_REQUIRED_VERSION = @PERL_REQUIRED_VERSION@
+PERL_VERSION = @PERL_VERSION@
+PKG_CONFIG = @PKG_CONFIG@
+PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
+PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
+PNG_CFLAGS = @PNG_CFLAGS@
+PNG_LIBS = @PNG_LIBS@
+POFILES = @POFILES@
+POPPLER_CFLAGS = @POPPLER_CFLAGS@
+POPPLER_DATA_CFLAGS = @POPPLER_DATA_CFLAGS@
+POPPLER_DATA_LIBS = @POPPLER_DATA_LIBS@
+POPPLER_DATA_REQUIRED_VERSION = @POPPLER_DATA_REQUIRED_VERSION@
+POPPLER_LIBS = @POPPLER_LIBS@
+POPPLER_REQUIRED_VERSION = @POPPLER_REQUIRED_VERSION@
+POSUB = @POSUB@
+PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@
+PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@
+PYBIN_PATH = @PYBIN_PATH@
+PYCAIRO_CFLAGS = @PYCAIRO_CFLAGS@
+PYCAIRO_LIBS = @PYCAIRO_LIBS@
+PYGIMP_EXTRA_CFLAGS = @PYGIMP_EXTRA_CFLAGS@
+PYGTK_CFLAGS = @PYGTK_CFLAGS@
+PYGTK_CODEGEN = @PYGTK_CODEGEN@
+PYGTK_DEFSDIR = @PYGTK_DEFSDIR@
+PYGTK_LIBS = @PYGTK_LIBS@
+PYLINK_LIBS = @PYLINK_LIBS@
+PYTHON = @PYTHON@
+PYTHON2_REQUIRED_VERSION = @PYTHON2_REQUIRED_VERSION@
+PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@
+PYTHON_INCLUDES = @PYTHON_INCLUDES@
+PYTHON_PLATFORM = @PYTHON_PLATFORM@
+PYTHON_PREFIX = @PYTHON_PREFIX@
+PYTHON_VERSION = @PYTHON_VERSION@
+RANLIB = @RANLIB@
+RSVG_REQUIRED_VERSION = @RSVG_REQUIRED_VERSION@
+RT_LIBS = @RT_LIBS@
+SCREENSHOT_LIBS = @SCREENSHOT_LIBS@
+SED = @SED@
+SENDMAIL = @SENDMAIL@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+SOCKET_LIBS = @SOCKET_LIBS@
+SSE2_EXTRA_CFLAGS = @SSE2_EXTRA_CFLAGS@
+SSE4_1_EXTRA_CFLAGS = @SSE4_1_EXTRA_CFLAGS@
+SSE_EXTRA_CFLAGS = @SSE_EXTRA_CFLAGS@
+STRIP = @STRIP@
+SVG_CFLAGS = @SVG_CFLAGS@
+SVG_LIBS = @SVG_LIBS@
+SYMPREFIX = @SYMPREFIX@
+TIFF_LIBS = @TIFF_LIBS@
+USE_NLS = @USE_NLS@
+VERSION = @VERSION@
+WEBKIT_CFLAGS = @WEBKIT_CFLAGS@
+WEBKIT_LIBS = @WEBKIT_LIBS@
+WEBKIT_REQUIRED_VERSION = @WEBKIT_REQUIRED_VERSION@
+WEBPDEMUX_CFLAGS = @WEBPDEMUX_CFLAGS@
+WEBPDEMUX_LIBS = @WEBPDEMUX_LIBS@
+WEBPMUX_CFLAGS = @WEBPMUX_CFLAGS@
+WEBPMUX_LIBS = @WEBPMUX_LIBS@
+WEBP_CFLAGS = @WEBP_CFLAGS@
+WEBP_LIBS = @WEBP_LIBS@
+WEBP_REQUIRED_VERSION = @WEBP_REQUIRED_VERSION@
+WEB_PAGE = @WEB_PAGE@
+WIN32_LARGE_ADDRESS_AWARE = @WIN32_LARGE_ADDRESS_AWARE@
+WINDRES = @WINDRES@
+WMF_CFLAGS = @WMF_CFLAGS@
+WMF_CONFIG = @WMF_CONFIG@
+WMF_LIBS = @WMF_LIBS@
+WMF_REQUIRED_VERSION = @WMF_REQUIRED_VERSION@
+XDG_EMAIL = @XDG_EMAIL@
+XFIXES_CFLAGS = @XFIXES_CFLAGS@
+XFIXES_LIBS = @XFIXES_LIBS@
+XGETTEXT = @XGETTEXT@
+XGETTEXT_REQUIRED_VERSION = @XGETTEXT_REQUIRED_VERSION@
+XMC_CFLAGS = @XMC_CFLAGS@
+XMC_LIBS = @XMC_LIBS@
+XMKMF = @XMKMF@
+XMLLINT = @XMLLINT@
+XMU_LIBS = @XMU_LIBS@
+XPM_LIBS = @XPM_LIBS@
+XSLTPROC = @XSLTPROC@
+XVFB_RUN = @XVFB_RUN@
+X_CFLAGS = @X_CFLAGS@
+X_EXTRA_LIBS = @X_EXTRA_LIBS@
+X_LIBS = @X_LIBS@
+X_PRE_LIBS = @X_PRE_LIBS@
+Z_LIBS = @Z_LIBS@
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
+ac_ct_AR = @ac_ct_AR@
+ac_ct_CC = @ac_ct_CC@
+ac_ct_CC_FOR_BUILD = @ac_ct_CC_FOR_BUILD@
+ac_ct_CXX = @ac_ct_CXX@
+ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
+am__include = @am__include@
+am__leading_dot = @am__leading_dot@
+am__quote = @am__quote@
+am__tar = @am__tar@
+am__untar = @am__untar@
+bindir = @bindir@
+build = @build@
+build_alias = @build_alias@
+build_cpu = @build_cpu@
+build_os = @build_os@
+build_vendor = @build_vendor@
+builddir = @builddir@
+datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
+exec_prefix = @exec_prefix@
+gimpdatadir = @gimpdatadir@
+gimpdir = @gimpdir@
+gimplocaledir = @gimplocaledir@
+gimpplugindir = @gimpplugindir@
+gimpsysconfdir = @gimpsysconfdir@
+host = @host@
+host_alias = @host_alias@
+host_cpu = @host_cpu@
+host_os = @host_os@
+host_vendor = @host_vendor@
+htmldir = @htmldir@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+intltool__v_merge_options_ = @intltool__v_merge_options_@
+intltool__v_merge_options_0 = @intltool__v_merge_options_0@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = @localedir@
+localstatedir = @localstatedir@
+mandir = @mandir@
+manpage_gimpdir = @manpage_gimpdir@
+mkdir_p = @mkdir_p@
+ms_librarian = @ms_librarian@
+mypaint_brushes_dir = @mypaint_brushes_dir@
+oldincludedir = @oldincludedir@
+pdfdir = @pdfdir@
+pkgpyexecdir = @pkgpyexecdir@
+pkgpythondir = @pkgpythondir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+psdir = @psdir@
+pyexecdir = @pyexecdir@
+pythondir = @pythondir@
+runstatedir = @runstatedir@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+srcdir = @srcdir@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
+top_build_prefix = @top_build_prefix@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
+@OS_WIN32_TRUE@mwindows = -mwindows
+@OS_WIN32_FALSE@libm = -lm
+libgimpbase = $(top_builddir)/libgimpbase/libgimpbase-$(GIMP_API_VERSION).la
+libgimpcolor = $(top_builddir)/libgimpcolor/libgimpcolor-$(GIMP_API_VERSION).la
+libgimpconfig = $(top_builddir)/libgimpconfig/libgimpconfig-$(GIMP_API_VERSION).la
+libgimpmath = $(top_builddir)/libgimpmath/libgimpmath-$(GIMP_API_VERSION).la $(libm)
+libgimpmodule = $(top_builddir)/libgimpmodule/libgimpmodule-$(GIMP_API_VERSION).la
+libgimpwidgets = $(top_builddir)/libgimpwidgets/libgimpwidgets-$(GIMP_API_VERSION).la
+AM_CPPFLAGS = \
+ $(GTK_CFLAGS) \
+ -DTOP_SRCDIR=\"$(top_srcdir)\" \
+ -I$(top_srcdir) \
+ $(GEGL_CFLAGS)
+
+AM_LDFLAGS = $(mwindows)
+@ENABLE_GTK_DOC_TRUE@noinst_PROGRAMS = $(DOC_SHOOTER)
+doc_shooter_SOURCES = \
+ shadow.c \
+ shadow.h \
+ shooter.c \
+ units.c \
+ units.h \
+ widgets.c \
+ widgets.h
+
+doc_shooter_LDADD = \
+ $(libgimpwidgets) \
+ $(libgimpconfig) \
+ $(libgimpmodule) \
+ $(libgimpmath) \
+ $(libgimpcolor) \
+ $(libgimpbase) \
+ $(GTK_LIBS) \
+ $(X_LIBS) -lX11 -lXext
+
+EXTRA_DIST = README.shooter
+all: all-am
+
+.SUFFIXES:
+.SUFFIXES: .c .lo .o .obj
+$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
+ @for dep in $?; do \
+ case '$(am__configure_deps)' in \
+ *$$dep*) \
+ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
+ && { if test -f $@; then exit 0; else break; fi; }; \
+ exit 1;; \
+ esac; \
+ done; \
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu devel-docs/tools/Makefile'; \
+ $(am__cd) $(top_srcdir) && \
+ $(AUTOMAKE) --gnu devel-docs/tools/Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+ @case '$?' in \
+ *config.status*) \
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+ *) \
+ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
+ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
+ esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(am__aclocal_m4_deps):
+
+clean-noinstPROGRAMS:
+ @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \
+ echo " rm -f" $$list; \
+ rm -f $$list || exit $$?; \
+ test -n "$(EXEEXT)" || exit 0; \
+ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
+ echo " rm -f" $$list; \
+ rm -f $$list
+
+doc-shooter$(EXEEXT): $(doc_shooter_OBJECTS) $(doc_shooter_DEPENDENCIES) $(EXTRA_doc_shooter_DEPENDENCIES)
+ @rm -f doc-shooter$(EXEEXT)
+ $(AM_V_CCLD)$(LINK) $(doc_shooter_OBJECTS) $(doc_shooter_LDADD) $(LIBS)
+
+mostlyclean-compile:
+ -rm -f *.$(OBJEXT)
+
+distclean-compile:
+ -rm -f *.tab.c
+
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/shadow.Po@am__quote@ # am--include-marker
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/shooter.Po@am__quote@ # am--include-marker
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/units.Po@am__quote@ # am--include-marker
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/widgets.Po@am__quote@ # am--include-marker
+
+$(am__depfiles_remade):
+ @$(MKDIR_P) $(@D)
+ @echo '# dummy' >$@-t && $(am__mv) $@-t $@
+
+am--depfiles: $(am__depfiles_remade)
+
+.c.o:
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<
+
+.c.obj:
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
+
+.c.lo:
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $<
+
+mostlyclean-libtool:
+ -rm -f *.lo
+
+clean-libtool:
+ -rm -rf .libs _libs
+
+ID: $(am__tagged_files)
+ $(am__define_uniq_tagged_files); mkid -fID $$unique
+tags: tags-am
+TAGS: tags
+
+tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
+ set x; \
+ here=`pwd`; \
+ $(am__define_uniq_tagged_files); \
+ shift; \
+ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
+ test -n "$$unique" || unique=$$empty_fix; \
+ if test $$# -gt 0; then \
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+ "$$@" $$unique; \
+ else \
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+ $$unique; \
+ fi; \
+ fi
+ctags: ctags-am
+
+CTAGS: ctags
+ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
+ $(am__define_uniq_tagged_files); \
+ test -z "$(CTAGS_ARGS)$$unique" \
+ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
+ $$unique
+
+GTAGS:
+ here=`$(am__cd) $(top_builddir) && pwd` \
+ && $(am__cd) $(top_srcdir) \
+ && gtags -i $(GTAGS_ARGS) "$$here"
+cscopelist: cscopelist-am
+
+cscopelist-am: $(am__tagged_files)
+ list='$(am__tagged_files)'; \
+ case "$(srcdir)" in \
+ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
+ *) sdir=$(subdir)/$(srcdir) ;; \
+ esac; \
+ for i in $$list; do \
+ if test -f "$$i"; then \
+ echo "$(subdir)/$$i"; \
+ else \
+ echo "$$sdir/$$i"; \
+ fi; \
+ done >> $(top_builddir)/cscope.files
+
+distclean-tags:
+ -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
+
+distdir: $(BUILT_SOURCES)
+ $(MAKE) $(AM_MAKEFLAGS) distdir-am
+
+distdir-am: $(DISTFILES)
+ @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ list='$(DISTFILES)'; \
+ dist_files=`for file in $$list; do echo $$file; done | \
+ sed -e "s|^$$srcdirstrip/||;t" \
+ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+ case $$dist_files in \
+ */*) $(MKDIR_P) `echo "$$dist_files" | \
+ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+ sort -u` ;; \
+ esac; \
+ for file in $$dist_files; do \
+ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+ if test -d $$d/$$file; then \
+ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+ if test -d "$(distdir)/$$file"; then \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+ fi; \
+ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+ fi; \
+ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
+ else \
+ test -f "$(distdir)/$$file" \
+ || cp -p $$d/$$file "$(distdir)/$$file" \
+ || exit 1; \
+ fi; \
+ done
+check-am: all-am
+check: check-am
+all-am: Makefile $(PROGRAMS)
+installdirs:
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+ if test -z '$(STRIP)'; then \
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ install; \
+ else \
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
+ fi
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+ -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
+
+maintainer-clean-generic:
+ @echo "This command is intended for maintainers to use"
+ @echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-generic clean-libtool clean-local clean-noinstPROGRAMS \
+ mostlyclean-am
+
+distclean: distclean-am
+ -rm -f ./$(DEPDIR)/shadow.Po
+ -rm -f ./$(DEPDIR)/shooter.Po
+ -rm -f ./$(DEPDIR)/units.Po
+ -rm -f ./$(DEPDIR)/widgets.Po
+ -rm -f Makefile
+distclean-am: clean-am distclean-compile distclean-generic \
+ distclean-tags
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+html-am:
+
+info: info-am
+
+info-am:
+
+install-data-am:
+
+install-dvi: install-dvi-am
+
+install-dvi-am:
+
+install-exec-am:
+
+install-html: install-html-am
+
+install-html-am:
+
+install-info: install-info-am
+
+install-info-am:
+
+install-man:
+
+install-pdf: install-pdf-am
+
+install-pdf-am:
+
+install-ps: install-ps-am
+
+install-ps-am:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+ -rm -f ./$(DEPDIR)/shadow.Po
+ -rm -f ./$(DEPDIR)/shooter.Po
+ -rm -f ./$(DEPDIR)/units.Po
+ -rm -f ./$(DEPDIR)/widgets.Po
+ -rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-compile mostlyclean-generic \
+ mostlyclean-libtool
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am:
+
+.MAKE: install-am install-strip
+
+.PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-am clean \
+ clean-generic clean-libtool clean-local clean-noinstPROGRAMS \
+ cscopelist-am ctags ctags-am distclean distclean-compile \
+ distclean-generic distclean-libtool distclean-tags distdir dvi \
+ dvi-am html html-am info info-am install install-am \
+ install-data install-data-am install-dvi install-dvi-am \
+ install-exec install-exec-am install-html install-html-am \
+ install-info install-info-am install-man install-pdf \
+ install-pdf-am install-ps install-ps-am install-strip \
+ installcheck installcheck-am installdirs maintainer-clean \
+ maintainer-clean-generic mostlyclean mostlyclean-compile \
+ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
+ tags tags-am uninstall uninstall-am
+
+.PRECIOUS: Makefile
+
+
+clean-local:
+ rm -f *.png
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/devel-docs/tools/README.shooter b/devel-docs/tools/README.shooter
new file mode 100644
index 0000000..53a905c
--- /dev/null
+++ b/devel-docs/tools/README.shooter
@@ -0,0 +1,13 @@
+The doc-shooter is a small utility used to create screenshots of
+widgets for the GIMP API reference manuals. This utility is X11
+specific, so it should only be built when GIMP is being compiled
+for the X11 GDK backend.
+
+Taking the screenshots is not part of the docs build.
+Instead, the images are created, and then copied by hand into
+devel-docs/libgimpwidgets/images. Ideally, the images should be
+taken once a release, and all images should be updated at the
+same time. A simple theme should be used to take the screenshots.
+
+The GTK+ docs team came up with the idea for this utility as
+well as some of the code to implement it.
diff --git a/devel-docs/tools/shadow.c b/devel-docs/tools/shadow.c
new file mode 100644
index 0000000..cf292c9
--- /dev/null
+++ b/devel-docs/tools/shadow.c
@@ -0,0 +1,149 @@
+#include "shadow.h"
+#include <math.h>
+
+#define BLUR_RADIUS 5
+#define SHADOW_OFFSET (BLUR_RADIUS * 4 / 5)
+#define SHADOW_OPACITY 0.75
+
+typedef struct {
+ int size;
+ double *data;
+} ConvFilter;
+
+static double
+gaussian (double x, double y, double r)
+{
+ return ((1 / (2 * M_PI * r)) *
+ exp ((- (x * x + y * y)) / (2 * r * r)));
+}
+
+static ConvFilter *
+create_blur_filter (int radius)
+{
+ ConvFilter *filter;
+ int x, y;
+ double sum;
+
+ filter = g_new0 (ConvFilter, 1);
+ filter->size = radius * 2 + 1;
+ filter->data = g_new (double, filter->size * filter->size);
+
+ sum = 0.0;
+
+ for (y = 0 ; y < filter->size; y++)
+ {
+ for (x = 0 ; x < filter->size; x++)
+ {
+ sum += filter->data[y * filter->size + x] = gaussian (x - (filter->size >> 1),
+ y - (filter->size >> 1),
+ radius);
+ }
+ }
+
+ for (y = 0; y < filter->size; y++)
+ {
+ for (x = 0; x < filter->size; x++)
+ {
+ filter->data[y * filter->size + x] /= sum;
+ }
+ }
+
+ return filter;
+
+}
+
+static GdkPixbuf *
+create_shadow (GdkPixbuf *src)
+{
+ int x, y, i, j;
+ int width, height;
+ GdkPixbuf *dest;
+ static ConvFilter *filter = NULL;
+ int src_rowstride, dest_rowstride;
+ int src_bpp, dest_bpp;
+
+ guchar *src_pixels, *dest_pixels;
+
+ if (!filter)
+ filter = create_blur_filter (BLUR_RADIUS);
+
+ width = gdk_pixbuf_get_width (src) + BLUR_RADIUS * 2 + SHADOW_OFFSET;
+ height = gdk_pixbuf_get_height (src) + BLUR_RADIUS * 2 + SHADOW_OFFSET;
+
+ dest = gdk_pixbuf_new (gdk_pixbuf_get_colorspace (src),
+ gdk_pixbuf_get_has_alpha (src),
+ gdk_pixbuf_get_bits_per_sample (src),
+ width, height);
+ gdk_pixbuf_fill (dest, 0);
+ src_pixels = gdk_pixbuf_get_pixels (src);
+ src_rowstride = gdk_pixbuf_get_rowstride (src);
+ src_bpp = gdk_pixbuf_get_has_alpha (src) ? 4 : 3;
+
+ dest_pixels = gdk_pixbuf_get_pixels (dest);
+ dest_rowstride = gdk_pixbuf_get_rowstride (dest);
+ dest_bpp = gdk_pixbuf_get_has_alpha (dest) ? 4 : 3;
+
+ for (y = 0; y < height; y++)
+ {
+ for (x = 0; x < width; x++)
+ {
+ int sumr = 0, sumg = 0, sumb = 0, suma = 0;
+
+ for (i = 0; i < filter->size; i++)
+ {
+ for (j = 0; j < filter->size; j++)
+ {
+ int src_x, src_y;
+
+ src_y = -(BLUR_RADIUS + SHADOW_OFFSET) + y - (filter->size >> 1) + i;
+ src_x = -(BLUR_RADIUS + SHADOW_OFFSET) + x - (filter->size >> 1) + j;
+
+ if (src_y < 0 || src_y > gdk_pixbuf_get_height (src) ||
+ src_x < 0 || src_x > gdk_pixbuf_get_width (src))
+ continue;
+
+ sumr += src_pixels [src_y * src_rowstride +
+ src_x * src_bpp + 0] *
+ filter->data [i * filter->size + j];
+ sumg += src_pixels [src_y * src_rowstride +
+ src_x * src_bpp + 1] *
+ filter->data [i * filter->size + j];
+
+ sumb += src_pixels [src_y * src_rowstride +
+ src_x * src_bpp + 2] *
+ filter->data [i * filter->size + j];
+
+ if (src_bpp == 4)
+ suma += src_pixels [src_y * src_rowstride +
+ src_x * src_bpp + 3] *
+ filter->data [i * filter->size + j];
+
+
+ }
+ }
+
+ if (dest_bpp == 4)
+ dest_pixels [y * dest_rowstride +
+ x * dest_bpp + 3] = suma * SHADOW_OPACITY;
+
+ }
+ }
+
+ return dest;
+}
+
+GdkPixbuf *
+create_shadowed_pixbuf (GdkPixbuf *src)
+{
+ GdkPixbuf *dest;
+
+ dest = create_shadow (src);
+
+ gdk_pixbuf_composite (src, dest,
+ BLUR_RADIUS, BLUR_RADIUS,
+ gdk_pixbuf_get_width (src),
+ gdk_pixbuf_get_height (src),
+ BLUR_RADIUS, BLUR_RADIUS, 1.0, 1.0,
+ GDK_INTERP_NEAREST, 255);
+ return dest;
+}
diff --git a/devel-docs/tools/shadow.h b/devel-docs/tools/shadow.h
new file mode 100644
index 0000000..2f569cc
--- /dev/null
+++ b/devel-docs/tools/shadow.h
@@ -0,0 +1,8 @@
+#ifndef __SHADOW_H__
+#define __SHADOW_H__
+
+#include <gdk-pixbuf/gdk-pixbuf.h>
+
+GdkPixbuf *create_shadowed_pixbuf (GdkPixbuf *src);
+
+#endif /* __SHADOW_H__ */
diff --git a/devel-docs/tools/shooter.c b/devel-docs/tools/shooter.c
new file mode 100644
index 0000000..ecfa18f
--- /dev/null
+++ b/devel-docs/tools/shooter.c
@@ -0,0 +1,298 @@
+
+#include "config.h"
+
+#include <stdlib.h>
+
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+
+#include <gegl.h>
+#include <gdk/gdkx.h>
+#include <gtk/gtk.h>
+
+#include <X11/extensions/shape.h>
+
+#include "libgimpbase/gimpbase.h"
+#include "libgimpconfig/gimpconfig.h"
+#include "libgimpmodule/gimpmodule.h"
+#include "libgimpwidgets/gimpwidgets.h"
+#include "libgimpwidgets/gimpwidgets-private.h"
+
+#include "shadow.h"
+#include "units.h"
+#include "widgets.h"
+
+
+static Window
+find_toplevel_window (Display *display,
+ Window xid)
+{
+ Window root, parent, *children;
+ guint nchildren;
+
+ do
+ {
+ if (XQueryTree (display, xid,
+ &root, &parent, &children, &nchildren) == 0)
+ {
+ g_warning ("Couldn't find window manager window");
+ return 0;
+ }
+
+ if (root == parent)
+ return xid;
+
+ xid = parent;
+ }
+ while (TRUE);
+}
+
+static GdkPixbuf *
+add_border_to_shot (GdkPixbuf *pixbuf)
+{
+ GdkPixbuf *retval;
+
+ retval = gdk_pixbuf_new (GDK_COLORSPACE_RGB, TRUE, 8,
+ gdk_pixbuf_get_width (pixbuf) + 2,
+ gdk_pixbuf_get_height (pixbuf) + 2);
+
+ /* Fill with solid black */
+ gdk_pixbuf_fill (retval, 0x000000FF);
+
+ gdk_pixbuf_copy_area (pixbuf,
+ 0, 0,
+ gdk_pixbuf_get_width (pixbuf),
+ gdk_pixbuf_get_height (pixbuf),
+ retval, 1, 1);
+
+ return retval;
+}
+
+static GdkPixbuf *
+remove_shaped_area (GdkPixbuf *pixbuf,
+ Window window)
+{
+ Display *display;
+ GdkPixbuf *retval;
+ XRectangle *rectangles;
+ gint rectangle_count, rectangle_order;
+ gint i;
+
+ retval = gdk_pixbuf_new (GDK_COLORSPACE_RGB, TRUE, 8,
+ gdk_pixbuf_get_width (pixbuf),
+ gdk_pixbuf_get_height (pixbuf));
+
+ gdk_pixbuf_fill (retval, 0);
+
+ display = gdk_x11_display_get_xdisplay (gdk_display_get_default ());
+
+ rectangles = XShapeGetRectangles (display, window, ShapeBounding,
+ &rectangle_count, &rectangle_order);
+
+ for (i = 0; i < rectangle_count; i++)
+ {
+ int y, x;
+
+ for (y = rectangles[i].y;
+ y < rectangles[i].y + rectangles[i].height;
+ y++)
+ {
+ const guchar *src_pixels;
+ guchar *dest_pixels;
+
+ src_pixels = gdk_pixbuf_get_pixels (pixbuf) +
+ y * gdk_pixbuf_get_rowstride (pixbuf) +
+ rectangles[i].x * (gdk_pixbuf_get_has_alpha (pixbuf) ? 4 : 3);
+
+ dest_pixels = gdk_pixbuf_get_pixels (retval) +
+ y * gdk_pixbuf_get_rowstride (retval) +
+ rectangles[i].x * 4;
+
+ for (x = rectangles[i].x;
+ x < rectangles[i].x + rectangles[i].width;
+ x++)
+ {
+ *dest_pixels++ = *src_pixels ++;
+ *dest_pixels++ = *src_pixels ++;
+ *dest_pixels++ = *src_pixels ++;
+ *dest_pixels++ = 255;
+
+ if (gdk_pixbuf_get_has_alpha (pixbuf))
+ src_pixels++;
+ }
+ }
+ }
+
+ return retval;
+}
+
+static GdkPixbuf *
+take_window_shot (Window child,
+ gboolean include_decoration)
+{
+ GdkDisplay *display;
+ GdkScreen *screen;
+ GdkWindow *window;
+ Window xid;
+ gint x_orig, y_orig;
+ gint x = 0, y = 0;
+ gint width, height;
+ GdkPixbuf *tmp, *tmp2;
+ GdkPixbuf *retval;
+
+ display = gdk_display_get_default ();
+ screen = gdk_screen_get_default ();
+
+ if (include_decoration)
+ xid = find_toplevel_window (gdk_x11_display_get_xdisplay (display), child);
+ else
+ xid = child;
+
+ window = gdk_x11_window_foreign_new_for_display (display, xid);
+
+ width = gdk_window_get_width (window);
+ height = gdk_window_get_height (window);
+ gdk_window_get_origin (window, &x_orig, &y_orig);
+
+ if (x_orig < 0)
+ {
+ x = - x_orig;
+ width = width + x_orig;
+ x_orig = 0;
+ }
+
+ if (y_orig < 0)
+ {
+ y = - y_orig;
+ height = height + y_orig;
+ y_orig = 0;
+ }
+
+ if (x_orig + width > gdk_screen_get_width (screen))
+ width = gdk_screen_get_width (screen) - x_orig;
+
+ if (y_orig + height > gdk_screen_get_height (screen))
+ height = gdk_screen_get_height (screen) - y_orig;
+
+ tmp = gdk_pixbuf_get_from_drawable (NULL, window, NULL,
+ x, y, 0, 0, width, height);
+
+ if (include_decoration)
+ tmp2 = remove_shaped_area (tmp, xid);
+ else
+ tmp2 = add_border_to_shot (tmp);
+
+ retval = create_shadowed_pixbuf (tmp2);
+
+ g_object_unref (tmp);
+ g_object_unref (tmp2);
+
+ return retval;
+}
+
+static gboolean
+shooter_get_foreground (GimpRGB *color)
+{
+ color->r = color->g = color->b = 0.0;
+ color->a = 1.0;
+ return TRUE;
+}
+
+static gboolean
+shooter_get_background (GimpRGB *color)
+{
+ color->r = color->g = color->b = 1.0;
+ color->a = 1.0;
+ return TRUE;
+}
+
+static void
+shooter_standard_help (const gchar *help_id,
+ gpointer help_data)
+{
+}
+
+static void
+shooter_ensure_modules (void)
+{
+ static GimpModuleDB *module_db = NULL;
+
+ if (! module_db)
+ {
+ gchar *config = gimp_config_build_plug_in_path ("modules");
+ gchar *path = gimp_config_path_expand (config, TRUE, NULL);
+
+ module_db = gimp_module_db_new (FALSE);
+ gimp_module_db_load (module_db, path);
+
+ g_free (path);
+ g_free (config);
+ }
+}
+
+int
+main (int argc, char **argv)
+{
+ GdkPixbuf *screenshot = NULL;
+ GList *toplevels;
+ GList *node;
+
+ g_set_application_name ("GIMP documentation shooter");
+
+ /* If there's no DISPLAY, we silently error out.
+ * We don't want to break headless builds.
+ */
+ if (! gtk_init_check (&argc, &argv))
+ return EXIT_SUCCESS;
+
+ gtk_rc_add_default_file (gimp_gtkrc ());
+
+ units_init ();
+
+ gimp_widgets_init (shooter_standard_help,
+ shooter_get_foreground,
+ shooter_get_background,
+ shooter_ensure_modules);
+
+ toplevels = get_all_widgets ();
+
+ for (node = toplevels; node; node = g_list_next (node))
+ {
+ GdkWindow *window;
+ WidgetInfo *info;
+ XID xid;
+ gchar *filename;
+
+ info = node->data;
+
+ gtk_widget_show (info->window);
+
+ window = gtk_widget_get_window (info->window);
+
+ gtk_widget_show_now (info->window);
+ gtk_widget_queue_draw (info->window);
+
+ while (gtk_events_pending ())
+ {
+ gtk_main_iteration ();
+ }
+ sleep (1);
+
+ while (gtk_events_pending ())
+ {
+ gtk_main_iteration ();
+ }
+
+ xid = gdk_x11_drawable_get_xid (GDK_DRAWABLE (window));
+ screenshot = take_window_shot (xid, info->include_decorations);
+
+ filename = g_strdup_printf ("%s.png", info->name);
+ gdk_pixbuf_save (screenshot, filename, "png", NULL, NULL);
+ g_free(filename);
+
+ gtk_widget_hide (info->window);
+ }
+
+ return EXIT_SUCCESS;
+}
diff --git a/devel-docs/tools/units.c b/devel-docs/tools/units.c
new file mode 100644
index 0000000..ed5db39
--- /dev/null
+++ b/devel-docs/tools/units.c
@@ -0,0 +1,102 @@
+
+#include "config.h"
+
+#include <gio/gio.h>
+
+#include "libgimpbase/gimpbase.h"
+#include "libgimpbase/gimpbase-private.h"
+
+#include "units.h"
+
+
+typedef struct
+{
+ gdouble factor;
+ gint digits;
+ const gchar *identifier;
+ const gchar *symbol;
+ const gchar *abbreviation;
+ const gchar *singular;
+ const gchar *plural;
+} GimpUnitDef;
+
+static const GimpUnitDef unit_defs[] =
+{
+ { 0.0, 0, "pixels", "px", "px", "pixel", "pixels" },
+ { 1.0, 2, "inches", "''", "in", "inch", "inches" },
+ { 25.4, 1, "millimeters", "mm", "mm", "millimeter", "millimeters" }
+};
+
+
+static gint
+units_get_number_of_units (void)
+{
+ return G_N_ELEMENTS (unit_defs);
+}
+
+static gint
+units_get_number_of_built_in_units (void)
+{
+ return G_N_ELEMENTS (unit_defs);
+}
+
+static gdouble
+units_unit_get_factor (GimpUnit unit)
+{
+ return unit_defs[unit].factor;
+}
+
+static gint
+units_unit_get_digits (GimpUnit unit)
+{
+ return unit_defs[unit].digits;
+}
+
+static const gchar *
+units_unit_get_identifier (GimpUnit unit)
+{
+ return unit_defs[unit].identifier;
+}
+
+static const gchar *
+units_unit_get_symbol (GimpUnit unit)
+{
+ return unit_defs[unit].symbol;
+}
+
+static const gchar *
+units_unit_get_abbreviation (GimpUnit unit)
+{
+ return unit_defs[unit].abbreviation;
+}
+
+static const gchar *
+units_unit_get_singular (GimpUnit unit)
+{
+ return unit_defs[unit].singular;
+}
+
+static const gchar *
+units_unit_get_plural (GimpUnit unit)
+{
+ return unit_defs[unit].plural;
+}
+
+void
+units_init (void)
+{
+ GimpUnitVtable vtable;
+
+ vtable.unit_get_number_of_units = units_get_number_of_units;
+ vtable.unit_get_number_of_built_in_units = units_get_number_of_built_in_units;
+ vtable.unit_new = NULL;
+ vtable.unit_get_factor = units_unit_get_factor;
+ vtable.unit_get_digits = units_unit_get_digits;
+ vtable.unit_get_identifier = units_unit_get_identifier;
+ vtable.unit_get_symbol = units_unit_get_symbol;
+ vtable.unit_get_abbreviation = units_unit_get_abbreviation;
+ vtable.unit_get_singular = units_unit_get_singular;
+ vtable.unit_get_plural = units_unit_get_plural;
+
+ gimp_base_init (&vtable);
+}
diff --git a/devel-docs/tools/units.h b/devel-docs/tools/units.h
new file mode 100644
index 0000000..8875e8a
--- /dev/null
+++ b/devel-docs/tools/units.h
@@ -0,0 +1,8 @@
+#ifndef __UNITS_H__
+#define __UNITS_H__
+
+
+void units_init (void);
+
+
+#endif /* __UNITS_H__ */
diff --git a/devel-docs/tools/widgets.c b/devel-docs/tools/widgets.c
new file mode 100644
index 0000000..6d17f9c
--- /dev/null
+++ b/devel-docs/tools/widgets.c
@@ -0,0 +1,756 @@
+
+#include "config.h"
+
+#include <gegl.h>
+
+#include <gdk/gdkx.h>
+#include <gtk/gtk.h>
+
+#undef GIMP_DISABLE_DEPRECATED
+
+#include "libgimpbase/gimpbase.h"
+#include "libgimpconfig/gimpconfig.h"
+#include "libgimpcolor/gimpcolor.h"
+#include "libgimpwidgets/gimpwidgets.h"
+#include "libgimpwidgets/gimpwidgets-private.h"
+
+
+#include "widgets.h"
+
+
+#define SMALL_WIDTH 240
+#define SMALL_HEIGHT 75
+#define MEDIUM_WIDTH 240
+#define MEDIUM_HEIGHT 165
+#define LARGE_WIDTH 240
+#define LARGE_HEIGHT 240
+
+
+static gboolean
+adjust_size_callback (WidgetInfo *info)
+{
+ Window toplevel;
+ Window root;
+ gint tx;
+ gint ty;
+ guint twidth;
+ guint theight;
+ guint tborder_width;
+ guint tdepth;
+ guint target_width = 0;
+ guint target_height = 0;
+
+ toplevel = GDK_WINDOW_XWINDOW (gtk_widget_get_window (info->window));
+ XGetGeometry (GDK_WINDOW_XDISPLAY (gtk_widget_get_window (info->window)),
+ toplevel,
+ &root, &tx, &ty, &twidth, &theight, &tborder_width, &tdepth);
+
+ switch (info->size)
+ {
+ case SMALL:
+ target_width = SMALL_WIDTH;
+ target_height = SMALL_HEIGHT;
+ break;
+ case MEDIUM:
+ target_width = MEDIUM_WIDTH;
+ target_height = MEDIUM_HEIGHT;
+ break;
+ case LARGE:
+ target_width = LARGE_WIDTH;
+ target_height = LARGE_HEIGHT;
+ break;
+ case ASIS:
+ target_width = twidth;
+ target_height = theight;
+ break;
+ }
+
+ if (twidth > target_width ||
+ theight > target_height)
+ {
+ gtk_widget_set_size_request (info->window,
+ 2 + target_width - (twidth - target_width), /* Dunno why I need the +2 fudge factor; */
+ 2 + target_height - (theight - target_height));
+ }
+ return FALSE;
+}
+
+static void
+realize_callback (WidgetInfo *info)
+{
+ g_timeout_add (500, (GSourceFunc)adjust_size_callback, info);
+}
+
+static WidgetInfo *
+new_widget_info (const char *name,
+ GtkWidget *widget,
+ WidgetSize size)
+{
+ WidgetInfo *info;
+
+ info = g_new0 (WidgetInfo, 1);
+
+ info->name = g_strdup (name);
+ info->size = size;
+ info->no_focus = TRUE;
+
+ if (GTK_IS_WINDOW (widget))
+ {
+ info->window = widget;
+
+ gtk_window_set_resizable (GTK_WINDOW (info->window), FALSE);
+ g_signal_connect_swapped (info->window, "realize",
+ G_CALLBACK (realize_callback), info);
+ }
+ else
+ {
+ info->window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
+
+ gtk_window_set_accept_focus (GTK_WINDOW (info->window), FALSE);
+
+ gtk_container_set_border_width (GTK_CONTAINER (info->window), 12);
+ gtk_container_add (GTK_CONTAINER (info->window), widget);
+ gtk_widget_show_all (widget);
+ }
+
+ gtk_window_set_skip_taskbar_hint (GTK_WINDOW (info->window), TRUE);
+
+ gtk_widget_set_app_paintable (info->window, TRUE);
+ g_signal_connect (info->window, "focus", G_CALLBACK (gtk_true), NULL);
+
+ switch (size)
+ {
+ case SMALL:
+ gtk_widget_set_size_request (info->window, SMALL_WIDTH, SMALL_HEIGHT);
+ break;
+ case MEDIUM:
+ gtk_widget_set_size_request (info->window, MEDIUM_WIDTH, MEDIUM_HEIGHT);
+ break;
+ case LARGE:
+ gtk_widget_set_size_request (info->window, LARGE_WIDTH, LARGE_HEIGHT);
+ break;
+ default:
+ break;
+ }
+
+ return info;
+}
+
+static void
+color_init (GimpRGB *rgb)
+{
+ gimp_rgb_parse_name (rgb, "goldenrod", -1);
+ gimp_rgb_set_alpha (rgb, 0.7);
+}
+
+static GdkPixbuf *
+load_image (const gchar *name)
+{
+ GdkPixbuf *pixbuf;
+ gchar *filename;
+
+ filename = g_build_filename (TOP_SRCDIR, "data", "images", name, NULL);
+
+ pixbuf = gdk_pixbuf_new_from_file (filename, NULL);
+
+ g_free (filename);
+
+ return pixbuf;
+}
+
+static WidgetInfo *
+create_browser (void)
+{
+ GtkWidget *vbox;
+ GtkWidget *align;
+ GtkWidget *browser;
+
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
+ align = gtk_alignment_new (0.5, 0.5, 1.0, 1.0);
+ browser = gimp_browser_new ();
+ gtk_box_pack_start (GTK_BOX (GIMP_BROWSER (browser)->left_vbox),
+ gtk_label_new ("TreeView goes here"), TRUE, TRUE, 0);
+ gtk_container_add (GTK_CONTAINER (align), browser);
+ gtk_box_pack_start (GTK_BOX (vbox), align, TRUE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox),
+ gtk_label_new ("Browser"), FALSE, FALSE, 0);
+
+ return new_widget_info ("gimp-widget-browser", vbox, MEDIUM);
+}
+
+static WidgetInfo *
+create_button (void)
+{
+ GtkWidget *widget;
+ GtkWidget *align;
+
+ widget = gimp_button_new ();
+ gtk_container_add (GTK_CONTAINER (widget),
+ gtk_label_new_with_mnemonic ("_Button"));
+ align = gtk_alignment_new (0.5, 0.5, 0.0, 0.0);
+ gtk_container_add (GTK_CONTAINER (align), widget);
+
+ return new_widget_info ("gimp-widget-button", align, SMALL);
+}
+
+static WidgetInfo *
+create_chain_button (void)
+{
+ GtkWidget *vbox;
+ GtkWidget *align;
+ GtkWidget *table;
+ GtkWidget *label;
+ GtkWidget *chain;
+ GtkWidget *separator;
+
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
+ align = gtk_alignment_new (0.5, 0.5, 0.0, 0.8);
+ gtk_box_pack_start (GTK_BOX (vbox), align, TRUE, TRUE, 0);
+ table = gtk_table_new (2, 5, FALSE);
+ gtk_table_set_row_spacings (GTK_TABLE (table), 6);
+ gtk_table_set_col_spacings (GTK_TABLE (table), 6);
+ gtk_container_add (GTK_CONTAINER (align), table);
+ chain = gimp_chain_button_new (GIMP_CHAIN_LEFT);
+ gimp_chain_button_set_active (GIMP_CHAIN_BUTTON (chain), TRUE);
+ gtk_table_attach (GTK_TABLE (table), chain, 0,1, 0,2,
+ GTK_SHRINK | GTK_FILL, GTK_EXPAND | GTK_FILL, 0, 0);
+ label = gtk_label_new ("Linked ");
+ gtk_table_attach (GTK_TABLE (table), label, 1,2, 0,1,
+ GTK_SHRINK | GTK_FILL, GTK_EXPAND | GTK_FILL, 0, 0);
+ label = gtk_label_new ("Linked ");
+ gtk_table_attach (GTK_TABLE (table), label, 1,2, 1,2,
+ GTK_SHRINK | GTK_FILL, GTK_EXPAND | GTK_FILL, 0, 0);
+ separator = gtk_separator_new (GTK_ORIENTATION_VERTICAL);
+ gtk_table_attach (GTK_TABLE (table), separator, 2,3, 0,2,
+ GTK_SHRINK | GTK_FILL, GTK_EXPAND | GTK_FILL, 0, 0);
+ label = gtk_label_new (" Unlinked");
+ gtk_table_attach (GTK_TABLE (table), label, 3,4, 0,1,
+ GTK_SHRINK | GTK_FILL, GTK_EXPAND | GTK_FILL, 0, 0);
+ label = gtk_label_new (" Unlinked");
+ gtk_table_attach (GTK_TABLE (table), label, 3,4, 1,2,
+ GTK_SHRINK | GTK_FILL, GTK_EXPAND | GTK_FILL, 0, 0);
+ chain = gimp_chain_button_new (GIMP_CHAIN_RIGHT);
+ gimp_chain_button_set_active (GIMP_CHAIN_BUTTON (chain), FALSE);
+ gtk_table_attach (GTK_TABLE (table), chain, 4,5, 0,2,
+ GTK_SHRINK | GTK_FILL, GTK_EXPAND | GTK_FILL, 0, 0);
+
+ gtk_box_pack_end (GTK_BOX (vbox), gtk_label_new ("Chain Button"),
+ TRUE, TRUE, 0);
+
+ return new_widget_info ("gimp-widget-chain-button", vbox, MEDIUM);
+}
+
+static WidgetInfo *
+create_color_area (void)
+{
+ GtkWidget *vbox;
+ GtkWidget *area;
+ GtkWidget *align;
+ GimpRGB color;
+
+ color_init (&color);
+
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
+ align = gtk_alignment_new (0.5, 0.5, 0.5, 1.0);
+ area = gimp_color_area_new (&color, GIMP_COLOR_AREA_SMALL_CHECKS, 0);
+ gimp_color_area_set_draw_border (GIMP_COLOR_AREA (area), TRUE);
+ gtk_widget_set_size_request (area, -1, 25);
+ gtk_container_add (GTK_CONTAINER (align), area);
+ gtk_box_pack_start (GTK_BOX (vbox), align, TRUE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox),
+ gtk_label_new ("Color Area"), FALSE, FALSE, 0);
+
+ return new_widget_info ("gimp-widget-color-area", vbox, SMALL);
+}
+
+static WidgetInfo *
+create_color_button (void)
+{
+ GtkWidget *vbox;
+ GtkWidget *button;
+ GtkWidget *align;
+ GimpRGB color;
+
+ color_init (&color);
+
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
+ align = gtk_alignment_new (0.5, 0.5, 0.5, 1.0);
+ button = gimp_color_button_new ("Color Button",
+ 80, 20, &color,
+ GIMP_COLOR_AREA_SMALL_CHECKS);
+ gtk_container_add (GTK_CONTAINER (align), button);
+ gtk_box_pack_start (GTK_BOX (vbox), align, TRUE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox),
+ gtk_label_new ("Color Button"), FALSE, FALSE, 0);
+
+ return new_widget_info ("gimp-widget-color-button", vbox, SMALL);
+}
+
+static WidgetInfo *
+create_color_hex_entry (void)
+{
+ GtkWidget *vbox;
+ GtkWidget *entry;
+ GtkWidget *align;
+ GimpRGB color;
+
+ color_init (&color);
+
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
+ align = gtk_alignment_new (0.5, 0.5, 0.5, 0.0);
+ entry = gimp_color_hex_entry_new ();
+ gimp_color_hex_entry_set_color (GIMP_COLOR_HEX_ENTRY (entry), &color);
+ gtk_container_add (GTK_CONTAINER (align), entry);
+ gtk_box_pack_start (GTK_BOX (vbox), align, TRUE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox),
+ gtk_label_new ("Color Hex Entry"), FALSE, FALSE, 0);
+
+ return new_widget_info ("gimp-widget-color-hex-entry", vbox, SMALL);
+}
+
+static WidgetInfo *
+create_color_profile_combo_box (void)
+{
+ GtkWidget *vbox;
+ GtkWidget *combo;
+ GtkWidget *align;
+
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
+ align = gtk_alignment_new (0.5, 0.5, 0.5, 0.0);
+ combo = gimp_color_profile_combo_box_new (gtk_dialog_new (), NULL);
+ gimp_color_profile_combo_box_add_file (GIMP_COLOR_PROFILE_COMBO_BOX (combo),
+ NULL, "sRGB");
+ gtk_combo_box_set_active (GTK_COMBO_BOX (combo), 0);
+ gtk_container_add (GTK_CONTAINER (align), combo);
+ gtk_box_pack_start (GTK_BOX (vbox), align, TRUE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox),
+ gtk_label_new ("Color Profile Combo Box"),
+ FALSE, FALSE, 0);
+
+ return new_widget_info ("gimp-widget-color-profile-combo-box", vbox, SMALL);
+}
+
+static WidgetInfo *
+create_color_scale (void)
+{
+ GtkWidget *vbox;
+ GtkWidget *scale;
+ GtkWidget *align;
+ GimpRGB rgb;
+ GimpHSV hsv;
+
+ color_init (&rgb);
+ gimp_rgb_to_hsv (&rgb, &hsv);
+
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
+ align = gtk_alignment_new (0.5, 0.5, 0.8, 0.0);
+ scale = gimp_color_scale_new (GTK_ORIENTATION_HORIZONTAL,
+ GIMP_COLOR_SELECTOR_HUE);
+ gimp_color_scale_set_color (GIMP_COLOR_SCALE (scale), &rgb, &hsv);
+ gtk_range_set_value (GTK_RANGE (scale), 40);
+ gtk_container_add (GTK_CONTAINER (align), scale);
+ gtk_box_pack_start (GTK_BOX (vbox), align, TRUE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox),
+ gtk_label_new ("Color Scale"), FALSE, FALSE, 0);
+
+ return new_widget_info ("gimp-widget-color-scale", vbox, SMALL);
+}
+
+static WidgetInfo *
+create_color_selection (void)
+{
+ GtkWidget *vbox;
+ GtkWidget *selection;
+ GtkWidget *align;
+ GimpRGB color;
+
+ color_init (&color);
+
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
+ align = gtk_alignment_new (0.5, 0.5, 0.0, 0.0);
+ selection = gimp_color_selection_new ();
+ gimp_color_selection_set_show_alpha(GIMP_COLOR_SELECTION (selection), TRUE);
+ gimp_color_selection_set_color (GIMP_COLOR_SELECTION (selection), &color);
+ gtk_widget_set_size_request (selection, 400, -1);
+ gtk_container_add (GTK_CONTAINER (align), selection);
+ gtk_box_pack_start (GTK_BOX (vbox), align, TRUE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox),
+ gtk_label_new ("Color Selection"), FALSE, FALSE, 0);
+
+ return new_widget_info ("gimp-widget-color-selection", vbox, ASIS);
+}
+
+static WidgetInfo *
+create_dialog (void)
+{
+ WidgetInfo *info;
+ GtkWidget *widget;
+ GtkWidget *content;
+ GtkWidget *label;
+
+ widget = gimp_dialog_new ("Gimp Dialog",
+ "gimp-widget-dialog",
+ NULL, 0, NULL, NULL,
+ "_Cancel", GTK_RESPONSE_CANCEL,
+ "_OK", GTK_RESPONSE_OK,
+
+ NULL);
+
+ label = gtk_label_new ("Gimp Dialog");
+ content = gtk_dialog_get_content_area (GTK_DIALOG (widget));
+ gtk_container_add (GTK_CONTAINER (content), label);
+ gtk_widget_show (label);
+ info = new_widget_info ("gimp-widget-dialog", widget, MEDIUM);
+ info->include_decorations = TRUE;
+
+ return info;
+}
+
+static WidgetInfo *
+create_enum_combo_box (void)
+{
+ GtkWidget *vbox;
+ GtkWidget *combo;
+ GtkWidget *align;
+
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
+ align = gtk_alignment_new (0.5, 0.5, 0.5, 0.0);
+ combo = gimp_enum_combo_box_new (GIMP_TYPE_CHANNEL_TYPE);
+ gimp_int_combo_box_set_active (GIMP_INT_COMBO_BOX (combo), GIMP_BLUE_CHANNEL);
+ gtk_container_add (GTK_CONTAINER (align), combo);
+ gtk_box_pack_start (GTK_BOX (vbox), align, TRUE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox),
+ gtk_label_new ("Enum Combo Box"), FALSE, FALSE, 0);
+
+ return new_widget_info ("gimp-widget-enum-combo-box", vbox, SMALL);
+}
+
+static WidgetInfo *
+create_enum_label (void)
+{
+ GtkWidget *vbox;
+ GtkWidget *label;
+ GtkWidget *align;
+
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
+ align = gtk_alignment_new (0.5, 0.5, 0.5, 0.0);
+ label = gimp_enum_label_new (GIMP_TYPE_IMAGE_BASE_TYPE, GIMP_RGB);
+ gtk_container_add (GTK_CONTAINER (align), label);
+ gtk_box_pack_start (GTK_BOX (vbox), align, TRUE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox),
+ gtk_label_new ("Enum Label"), FALSE, FALSE, 0);
+
+ return new_widget_info ("gimp-widget-enum-label", vbox, SMALL);
+}
+
+static WidgetInfo *
+create_file_entry (void)
+{
+ GtkWidget *vbox;
+ GtkWidget *entry;
+ GtkWidget *align;
+
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
+ align = gtk_alignment_new (0.5, 0.5, 0.5, 0.0);
+ entry = gimp_file_entry_new ("File Entry",
+ "wilber.png",
+ FALSE, TRUE);
+ gtk_container_add (GTK_CONTAINER (align), entry);
+ gtk_box_pack_start (GTK_BOX (vbox), align, TRUE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox),
+ gtk_label_new ("File Entry"), FALSE, FALSE, 0);
+
+ return new_widget_info ("gimp-widget-file-entry", vbox, SMALL);
+}
+
+static WidgetInfo *
+create_frame (void)
+{
+ GtkWidget *frame;
+ GtkWidget *content;
+
+ frame = gimp_frame_new ("Frame");
+ content = gtk_label_new ("Frame Content\nThis Frame is HIG compliant");
+ gtk_label_set_xalign (GTK_LABEL (content), 0.0);
+ gtk_label_set_yalign (GTK_LABEL (content), 0.0);
+ gtk_container_add (GTK_CONTAINER (frame), content);
+
+ return new_widget_info ("gimp-widget-frame", frame, MEDIUM);
+}
+
+static WidgetInfo *
+create_hint_box (void)
+{
+ GtkWidget *box = gimp_hint_box_new ("This is a user hint.");
+
+ return new_widget_info ("gimp-widget-hint-box", box, MEDIUM);
+}
+
+static WidgetInfo *
+create_number_pair_entry (void)
+{
+ GtkWidget *vbox;
+ GtkWidget *entry;
+ GtkWidget *align;
+
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
+ align = gtk_alignment_new (0.5, 0.5, 0.5, 0.0);
+ entry = gimp_number_pair_entry_new (":/", TRUE, 0.001, GIMP_MAX_IMAGE_SIZE);
+ gimp_number_pair_entry_set_values (GIMP_NUMBER_PAIR_ENTRY (entry), 4, 3);
+ gtk_container_add (GTK_CONTAINER (align), entry);
+ gtk_box_pack_start (GTK_BOX (vbox), align, TRUE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox),
+ gtk_label_new ("Number Pair Entry"), FALSE, FALSE, 0);
+
+ return new_widget_info ("gimp-widget-number-pair-entry", vbox, SMALL);
+}
+
+static WidgetInfo *
+create_int_combo_box (void)
+{
+ GtkWidget *vbox;
+ GtkWidget *combo;
+ GtkWidget *align;
+
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
+ align = gtk_alignment_new (0.5, 0.5, 0.5, 0.0);
+ combo = gimp_int_combo_box_new ("Sobel", 1,
+ "Prewitt", 2,
+ "Gradient", 3,
+ "Roberts", 4,
+ "Differential", 5,
+ "Laplace", 6,
+ NULL);
+ gimp_int_combo_box_set_active (GIMP_INT_COMBO_BOX (combo), 1);
+
+ gtk_container_add (GTK_CONTAINER (align), combo);
+ gtk_box_pack_start (GTK_BOX (vbox), align, TRUE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox),
+ gtk_label_new ("Int Combo Box"), FALSE, FALSE, 0);
+
+ return new_widget_info ("gimp-widget-int-combo-box", vbox, SMALL);
+}
+
+static WidgetInfo *
+create_memsize_entry (void)
+{
+ GtkWidget *vbox;
+ GtkWidget *entry;
+ GtkWidget *align;
+
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
+ align = gtk_alignment_new (0.5, 0.5, 0.0, 0.0);
+ entry = gimp_memsize_entry_new ((3 * 1024 + 512) * 1024,
+ 0, 1024 * 1024 * 1024);
+ gtk_container_add (GTK_CONTAINER (align), entry);
+ gtk_box_pack_start (GTK_BOX (vbox), align, TRUE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox),
+ gtk_label_new ("Memsize Entry"), FALSE, FALSE, 0);
+
+ return new_widget_info ("gimp-widget-memsize-entry", vbox, SMALL);
+}
+
+static WidgetInfo *
+create_offset_area (void)
+{
+ GtkWidget *vbox;
+ GtkWidget *frame;
+ GtkWidget *area;
+ GtkWidget *align;
+
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
+ align = gtk_alignment_new (0.5, 0.5, 0.0, 0.0);
+ frame = gtk_frame_new (NULL);
+ gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_IN);
+ gtk_container_add (GTK_CONTAINER (align), frame);
+ area = gimp_offset_area_new (100, 100);
+ gimp_offset_area_set_size (GIMP_OFFSET_AREA (area), 180, 160);
+ gimp_offset_area_set_offsets (GIMP_OFFSET_AREA (area), 30, 30);
+ gtk_container_add (GTK_CONTAINER (frame), area);
+ gtk_box_pack_start (GTK_BOX (vbox), align, TRUE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox),
+ gtk_label_new ("Offset Area"), FALSE, FALSE, 0);
+
+ return new_widget_info ("gimp-widget-offset-area", vbox, LARGE);
+}
+
+static WidgetInfo *
+create_page_selector (void)
+{
+ GtkWidget *vbox;
+ GtkWidget *selector;
+
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
+ selector = gimp_page_selector_new ();
+ gtk_widget_set_size_request (selector, -1, 240);
+ gimp_page_selector_set_n_pages (GIMP_PAGE_SELECTOR (selector), 16);
+ gimp_page_selector_select_range (GIMP_PAGE_SELECTOR (selector),
+ "1,3,7-9,12-15");
+ gtk_box_pack_start (GTK_BOX (vbox), selector, TRUE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox),
+ gtk_label_new ("Page Selector"), FALSE, FALSE, 0);
+
+ return new_widget_info ("gimp-widget-page-selector", vbox, ASIS);
+}
+
+static WidgetInfo *
+create_path_editor (void)
+{
+ GtkWidget *vbox;
+ GtkWidget *editor;
+ GtkWidget *align;
+ gchar *config = gimp_config_build_data_path ("patterns");
+ gchar *path = gimp_config_path_expand (config, TRUE, NULL);
+
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
+ align = gtk_alignment_new (0.5, 0.5, 0.0, 0.0);
+ editor = gimp_path_editor_new ("Path Editor", path);
+ gtk_widget_set_size_request (editor, -1, 240);
+ gtk_container_add (GTK_CONTAINER (align), editor);
+ gtk_box_pack_start (GTK_BOX (vbox), align, TRUE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox),
+ gtk_label_new ("Path Editor"), FALSE, FALSE, 0);
+
+ g_free (path);
+ g_free (config);
+
+ return new_widget_info ("gimp-widget-path-editor", vbox, ASIS);
+}
+
+static WidgetInfo *
+create_pick_button (void)
+{
+ GtkWidget *vbox;
+ GtkWidget *button;
+ GtkWidget *align;
+
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
+ align = gtk_alignment_new (0.5, 0.5, 0.5, 1.0);
+ button = gimp_pick_button_new ();
+ gtk_container_add (GTK_CONTAINER (align), button);
+ gtk_box_pack_start (GTK_BOX (vbox), align, TRUE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox),
+ gtk_label_new ("Pick Button"), FALSE, FALSE, 0);
+
+ return new_widget_info ("gimp-widget-pick-button", vbox, SMALL);
+}
+
+static gboolean
+area_realize (GimpPreviewArea *area)
+{
+ GdkPixbuf *pixbuf;
+
+ pixbuf = load_image ("wilber-wizard.png");
+ gimp_preview_area_draw (GIMP_PREVIEW_AREA (area), 0, 0,
+ gdk_pixbuf_get_width (pixbuf),
+ gdk_pixbuf_get_height (pixbuf),
+ GIMP_RGBA_IMAGE,
+ gdk_pixbuf_get_pixels (pixbuf),
+ gdk_pixbuf_get_rowstride (pixbuf));
+ g_object_unref (pixbuf);
+
+ return FALSE;
+}
+
+static WidgetInfo *
+create_preview_area (void)
+{
+ GtkWidget *vbox;
+ GtkWidget *area;
+ GtkWidget *align;
+ GdkPixbuf *pixbuf;
+
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
+ align = gtk_alignment_new (0.5, 0.5, 0.0, 0.0);
+ area = gimp_preview_area_new ();
+ g_signal_connect (area, "realize",
+ G_CALLBACK (area_realize), NULL);
+ gtk_container_add (GTK_CONTAINER (align), area);
+ pixbuf = load_image ("wilber-wizard.png");
+ gtk_widget_set_size_request (area,
+ gdk_pixbuf_get_width (pixbuf),
+ gdk_pixbuf_get_height (pixbuf));
+ g_object_unref (pixbuf);
+ gtk_box_pack_start (GTK_BOX (vbox), align, TRUE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox),
+ gtk_label_new ("Preview Area"), FALSE, FALSE, 0);
+
+ return new_widget_info ("gimp-widget-preview-area", vbox, MEDIUM);
+}
+
+static WidgetInfo *
+create_string_combo_box (void)
+{
+ GtkWidget *vbox;
+ GtkWidget *combo;
+ GtkWidget *align;
+ GtkListStore *store;
+
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
+ align = gtk_alignment_new (0.5, 0.5, 0.5, 0.0);
+ store = gtk_list_store_new (1, G_TYPE_STRING);
+ gtk_list_store_insert_with_values (store, NULL, 0, 0, "Foo", -1);
+ gtk_list_store_insert_with_values (store, NULL, 1, 0, "Bar", -1);
+ combo = gimp_string_combo_box_new (GTK_TREE_MODEL (store), 0, 0);
+ g_object_unref (store);
+ gimp_string_combo_box_set_active (GIMP_STRING_COMBO_BOX (combo), "Foo");
+
+ gtk_container_add (GTK_CONTAINER (align), combo);
+ gtk_box_pack_start (GTK_BOX (vbox), align, TRUE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox),
+ gtk_label_new ("String Combo Box"), FALSE, FALSE, 0);
+
+ return new_widget_info ("gimp-widget-string-combo-box", vbox, SMALL);
+}
+
+static WidgetInfo *
+create_unit_menu (void)
+{
+ GtkWidget *vbox;
+ GtkWidget *menu;
+ GtkWidget *align;
+
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
+ align = gtk_alignment_new (0.5, 0.5, 0.5, 0.0);
+ menu = gimp_unit_menu_new ("%p", GIMP_UNIT_MM, TRUE, FALSE, FALSE);
+ gtk_container_add (GTK_CONTAINER (align), menu);
+ gtk_box_pack_start (GTK_BOX (vbox), align, TRUE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox),
+ gtk_label_new ("Unit Menu"), FALSE, FALSE, 0);
+
+ return new_widget_info ("gimp-widget-unit-menu", vbox, SMALL);
+}
+
+GList *
+get_all_widgets (void)
+{
+ GList *retval = NULL;
+
+ retval = g_list_append (retval, create_browser ());
+ retval = g_list_append (retval, create_button ());
+ retval = g_list_append (retval, create_chain_button ());
+ retval = g_list_append (retval, create_color_area ());
+ retval = g_list_append (retval, create_color_button ());
+ retval = g_list_append (retval, create_color_hex_entry ());
+ retval = g_list_append (retval, create_color_profile_combo_box ());
+ retval = g_list_append (retval, create_color_scale ());
+ retval = g_list_append (retval, create_color_selection ());
+ retval = g_list_append (retval, create_dialog ());
+ retval = g_list_append (retval, create_enum_combo_box ());
+ retval = g_list_append (retval, create_enum_label ());
+ retval = g_list_append (retval, create_file_entry ());
+ retval = g_list_append (retval, create_frame ());
+ retval = g_list_append (retval, create_hint_box ());
+ retval = g_list_append (retval, create_int_combo_box ());
+ retval = g_list_append (retval, create_memsize_entry ());
+ retval = g_list_append (retval, create_number_pair_entry ());
+ retval = g_list_append (retval, create_offset_area ());
+ retval = g_list_append (retval, create_page_selector ());
+ retval = g_list_append (retval, create_path_editor ());
+ retval = g_list_append (retval, create_pick_button ());
+ retval = g_list_append (retval, create_preview_area ());
+ retval = g_list_append (retval, create_string_combo_box ());
+ retval = g_list_append (retval, create_unit_menu ());
+
+ return retval;
+}
diff --git a/devel-docs/tools/widgets.h b/devel-docs/tools/widgets.h
new file mode 100644
index 0000000..53925cb
--- /dev/null
+++ b/devel-docs/tools/widgets.h
@@ -0,0 +1,25 @@
+#ifndef __WIDGETS_H__
+#define __WIDGETS_H__
+
+
+typedef enum
+{
+ SMALL,
+ MEDIUM,
+ LARGE,
+ ASIS
+} WidgetSize;
+
+typedef struct WidgetInfo
+{
+ GtkWidget *window;
+ gchar *name;
+ gboolean no_focus;
+ gboolean include_decorations;
+ WidgetSize size;
+} WidgetInfo;
+
+GList * get_all_widgets (void);
+
+
+#endif /* __WIDGETS_H__ */