[monet] Add template gtk-engine from Benjamin Berg <benjamin sipsolutions net>
- From: Thomas Wood <thos src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [monet] Add template gtk-engine from Benjamin Berg <benjamin sipsolutions net>
- Date: Sun, 1 Nov 2009 11:08:56 +0000 (UTC)
commit f1ef80b05edc2c6396c0bf6451f035f233e40c1b
Author: Thomas Wood <thos gnome org>
Date: Sun Nov 1 10:52:30 2009 +0000
Add template gtk-engine from Benjamin Berg <benjamin sipsolutions net>
monet-gtk/AUTHORS | 2 +
monet-gtk/COPYING | 481 +++++++++++++++++++++++
monet-gtk/INSTALL | 229 +++++++++++
monet-gtk/Makefile.am | 4 +
monet-gtk/Makefile.in | 591 ++++++++++++++++++++++++++++
monet-gtk/autogen.sh | 19 +
monet-gtk/configure.ac | 38 ++
monet-gtk/src/Makefile.am | 15 +
monet-gtk/src/Makefile.in | 472 +++++++++++++++++++++++
monet-gtk/src/main.c | 61 +++
monet-gtk/src/rcstyle.c | 126 ++++++
monet-gtk/src/rcstyle.h | 54 +++
monet-gtk/src/style.c | 375 ++++++++++++++++++
monet-gtk/src/style.h | 46 +++
monet-gtk/test/Makefile.am | 116 ++++++
monet-gtk/test/Makefile.in | 628 ++++++++++++++++++++++++++++++
monet-gtk/test/exported | 25 ++
monet-gtk/test/gtkrcs/buildin | 12 +
monet-gtk/test/gtkrcs/noop | 12 +
monet-gtk/test/runinx | 42 ++
monet-gtk/test/torture | 62 +++
monet-gtk/test/torturetest.c | 706 ++++++++++++++++++++++++++++++++++
monet-gtk/test/valgrind-suppressions | 57 +++
23 files changed, 4173 insertions(+), 0 deletions(-)
---
diff --git a/monet-gtk/AUTHORS b/monet-gtk/AUTHORS
new file mode 100644
index 0000000..7381fd6
--- /dev/null
+++ b/monet-gtk/AUTHORS
@@ -0,0 +1,2 @@
+Template by:
+ Benjamin Berg <benjamin sipsolutions net>
\ No newline at end of file
diff --git a/monet-gtk/COPYING b/monet-gtk/COPYING
new file mode 100644
index 0000000..f503049
--- /dev/null
+++ b/monet-gtk/COPYING
@@ -0,0 +1,481 @@
+ GNU LIBRARY GENERAL PUBLIC LICENSE
+ Version 2, June 1991
+
+ Copyright (C) 1991 Free Software Foundation, Inc.
+ 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+[This is the first released version of the library GPL. It is
+ numbered 2 because it goes with version 2 of the ordinary GPL.]
+
+ Preamble
+
+ The licenses for most software are designed to take away your
+freedom to share and change it. By contrast, the GNU General Public
+Licenses are intended to guarantee your freedom to share and change
+free software--to make sure the software is free for all its users.
+
+ This license, the Library General Public License, applies to some
+specially designated Free Software Foundation software, and to any
+other libraries whose authors decide to use it. You can use it for
+your libraries, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+this service if you wish), that you receive source code or can get it
+if you want it, that you can change the software or use pieces of it
+in new free programs; and that you know you can do these things.
+
+ To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if
+you distribute copies of the library, or if you modify it.
+
+ For example, if you distribute copies of the library, whether gratis
+or for a fee, you must give the recipients all the rights that we gave
+you. You must make sure that they, too, receive or can get the source
+code. If you link a program with the library, you must provide
+complete object files to the recipients so that they can relink them
+with the library, after making changes to the library and recompiling
+it. And you must show them these terms so they know their rights.
+
+ Our method of protecting your rights has two steps: (1) copyright
+the library, and (2) offer you this license which gives you legal
+permission to copy, distribute and/or modify the library.
+
+ Also, for each distributor's protection, we want to make certain
+that everyone understands that there is no warranty for this free
+library. If the library is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original
+version, so that any problems introduced by others will not reflect on
+the original authors' reputations.
+
+ Finally, any free program is threatened constantly by software
+patents. We wish to avoid the danger that companies distributing free
+software will individually obtain patent licenses, thus in effect
+transforming the program into proprietary software. To prevent this,
+we have made it clear that any patent must be licensed for everyone's
+free use or not licensed at all.
+
+ Most GNU software, including some libraries, is covered by the ordinary
+GNU General Public License, which was designed for utility programs. This
+license, the GNU Library General Public License, applies to certain
+designated libraries. This license is quite different from the ordinary
+one; be sure to read it in full, and don't assume that anything in it is
+the same as in the ordinary license.
+
+ The reason we have a separate public license for some libraries is that
+they blur the distinction we usually make between modifying or adding to a
+program and simply using it. Linking a program with a library, without
+changing the library, is in some sense simply using the library, and is
+analogous to running a utility program or application program. However, in
+a textual and legal sense, the linked executable is a combined work, a
+derivative of the original library, and the ordinary General Public License
+treats it as such.
+
+ Because of this blurred distinction, using the ordinary General
+Public License for libraries did not effectively promote software
+sharing, because most developers did not use the libraries. We
+concluded that weaker conditions might promote sharing better.
+
+ However, unrestricted linking of non-free programs would deprive the
+users of those programs of all benefit from the free status of the
+libraries themselves. This Library General Public License is intended to
+permit developers of non-free programs to use free libraries, while
+preserving your freedom as a user of such programs to change the free
+libraries that are incorporated in them. (We have not seen how to achieve
+this as regards changes in header files, but we have achieved it as regards
+changes in the actual functions of the Library.) The hope is that this
+will lead to faster development of free libraries.
+
+ The precise terms and conditions for copying, distribution and
+modification follow. Pay close attention to the difference between a
+"work based on the library" and a "work that uses the library". The
+former contains code derived from the library, while the latter only
+works together with the library.
+
+ Note that it is possible for a library to be covered by the ordinary
+General Public License rather than by this special one.
+
+ GNU LIBRARY GENERAL PUBLIC LICENSE
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+ 0. This License Agreement applies to any software library which
+contains a notice placed by the copyright holder or other authorized
+party saying it may be distributed under the terms of this Library
+General Public License (also called "this License"). Each licensee is
+addressed as "you".
+
+ A "library" means a collection of software functions and/or data
+prepared so as to be conveniently linked with application programs
+(which use some of those functions and data) to form executables.
+
+ The "Library", below, refers to any such software library or work
+which has been distributed under these terms. A "work based on the
+Library" means either the Library or any derivative work under
+copyright law: that is to say, a work containing the Library or a
+portion of it, either verbatim or with modifications and/or translated
+straightforwardly into another language. (Hereinafter, translation is
+included without limitation in the term "modification".)
+
+ "Source code" for a work means the preferred form of the work for
+making modifications to it. For a library, complete source code means
+all the source code for all modules it contains, plus any associated
+interface definition files, plus the scripts used to control compilation
+and installation of the library.
+
+ Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope. The act of
+running a program using the Library is not restricted, and output from
+such a program is covered only if its contents constitute a work based
+on the Library (independent of the use of the Library in a tool for
+writing it). Whether that is true depends on what the Library does
+and what the program that uses the Library does.
+
+ 1. You may copy and distribute verbatim copies of the Library's
+complete source code as you receive it, in any medium, provided that
+you conspicuously and appropriately publish on each copy an
+appropriate copyright notice and disclaimer of warranty; keep intact
+all the notices that refer to this License and to the absence of any
+warranty; and distribute a copy of this License along with the
+Library.
+
+ You may charge a fee for the physical act of transferring a copy,
+and you may at your option offer warranty protection in exchange for a
+fee.
+
+ 2. You may modify your copy or copies of the Library or any portion
+of it, thus forming a work based on the Library, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+ a) The modified work must itself be a software library.
+
+ b) You must cause the files modified to carry prominent notices
+ stating that you changed the files and the date of any change.
+
+ c) You must cause the whole of the work to be licensed at no
+ charge to all third parties under the terms of this License.
+
+ d) If a facility in the modified Library refers to a function or a
+ table of data to be supplied by an application program that uses
+ the facility, other than as an argument passed when the facility
+ is invoked, then you must make a good faith effort to ensure that,
+ in the event an application does not supply such function or
+ table, the facility still operates, and performs whatever part of
+ its purpose remains meaningful.
+
+ (For example, a function in a library to compute square roots has
+ a purpose that is entirely well-defined independent of the
+ application. Therefore, Subsection 2d requires that any
+ application-supplied function or table used by this function must
+ be optional: if the application does not supply it, the square
+ root function must still compute square roots.)
+
+These requirements apply to the modified work as a whole. If
+identifiable sections of that work are not derived from the Library,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works. But when you
+distribute the same sections as part of a whole which is a work based
+on the Library, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote
+it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Library.
+
+In addition, mere aggregation of another work not based on the Library
+with the Library (or with a work based on the Library) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+ 3. You may opt to apply the terms of the ordinary GNU General Public
+License instead of this License to a given copy of the Library. To do
+this, you must alter all the notices that refer to this License, so
+that they refer to the ordinary GNU General Public License, version 2,
+instead of to this License. (If a newer version than version 2 of the
+ordinary GNU General Public License has appeared, then you can specify
+that version instead if you wish.) Do not make any other change in
+these notices.
+
+ Once this change is made in a given copy, it is irreversible for
+that copy, so the ordinary GNU General Public License applies to all
+subsequent copies and derivative works made from that copy.
+
+ This option is useful when you wish to copy part of the code of
+the Library into a program that is not a library.
+
+ 4. You may copy and distribute the Library (or a portion or
+derivative of it, under Section 2) in object code or executable form
+under the terms of Sections 1 and 2 above provided that you accompany
+it with the complete corresponding machine-readable source code, which
+must be distributed under the terms of Sections 1 and 2 above on a
+medium customarily used for software interchange.
+
+ If distribution of object code is made by offering access to copy
+from a designated place, then offering equivalent access to copy the
+source code from the same place satisfies the requirement to
+distribute the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+ 5. A program that contains no derivative of any portion of the
+Library, but is designed to work with the Library by being compiled or
+linked with it, is called a "work that uses the Library". Such a
+work, in isolation, is not a derivative work of the Library, and
+therefore falls outside the scope of this License.
+
+ However, linking a "work that uses the Library" with the Library
+creates an executable that is a derivative of the Library (because it
+contains portions of the Library), rather than a "work that uses the
+library". The executable is therefore covered by this License.
+Section 6 states terms for distribution of such executables.
+
+ When a "work that uses the Library" uses material from a header file
+that is part of the Library, the object code for the work may be a
+derivative work of the Library even though the source code is not.
+Whether this is true is especially significant if the work can be
+linked without the Library, or if the work is itself a library. The
+threshold for this to be true is not precisely defined by law.
+
+ If such an object file uses only numerical parameters, data
+structure layouts and accessors, and small macros and small inline
+functions (ten lines or less in length), then the use of the object
+file is unrestricted, regardless of whether it is legally a derivative
+work. (Executables containing this object code plus portions of the
+Library will still fall under Section 6.)
+
+ Otherwise, if the work is a derivative of the Library, you may
+distribute the object code for the work under the terms of Section 6.
+Any executables containing that work also fall under Section 6,
+whether or not they are linked directly with the Library itself.
+
+ 6. As an exception to the Sections above, you may also compile or
+link a "work that uses the Library" with the Library to produce a
+work containing portions of the Library, and distribute that work
+under terms of your choice, provided that the terms permit
+modification of the work for the customer's own use and reverse
+engineering for debugging such modifications.
+
+ You must give prominent notice with each copy of the work that the
+Library is used in it and that the Library and its use are covered by
+this License. You must supply a copy of this License. If the work
+during execution displays copyright notices, you must include the
+copyright notice for the Library among them, as well as a reference
+directing the user to the copy of this License. Also, you must do one
+of these things:
+
+ a) Accompany the work with the complete corresponding
+ machine-readable source code for the Library including whatever
+ changes were used in the work (which must be distributed under
+ Sections 1 and 2 above); and, if the work is an executable linked
+ with the Library, with the complete machine-readable "work that
+ uses the Library", as object code and/or source code, so that the
+ user can modify the Library and then relink to produce a modified
+ executable containing the modified Library. (It is understood
+ that the user who changes the contents of definitions files in the
+ Library will not necessarily be able to recompile the application
+ to use the modified definitions.)
+
+ b) Accompany the work with a written offer, valid for at
+ least three years, to give the same user the materials
+ specified in Subsection 6a, above, for a charge no more
+ than the cost of performing this distribution.
+
+ c) If distribution of the work is made by offering access to copy
+ from a designated place, offer equivalent access to copy the above
+ specified materials from the same place.
+
+ d) Verify that the user has already received a copy of these
+ materials or that you have already sent this user a copy.
+
+ For an executable, the required form of the "work that uses the
+Library" must include any data and utility programs needed for
+reproducing the executable from it. However, as a special exception,
+the source code distributed need not include anything that is normally
+distributed (in either source or binary form) with the major
+components (compiler, kernel, and so on) of the operating system on
+which the executable runs, unless that component itself accompanies
+the executable.
+
+ It may happen that this requirement contradicts the license
+restrictions of other proprietary libraries that do not normally
+accompany the operating system. Such a contradiction means you cannot
+use both them and the Library together in an executable that you
+distribute.
+
+ 7. You may place library facilities that are a work based on the
+Library side-by-side in a single library together with other library
+facilities not covered by this License, and distribute such a combined
+library, provided that the separate distribution of the work based on
+the Library and of the other library facilities is otherwise
+permitted, and provided that you do these two things:
+
+ a) Accompany the combined library with a copy of the same work
+ based on the Library, uncombined with any other library
+ facilities. This must be distributed under the terms of the
+ Sections above.
+
+ b) Give prominent notice with the combined library of the fact
+ that part of it is a work based on the Library, and explaining
+ where to find the accompanying uncombined form of the same work.
+
+ 8. You may not copy, modify, sublicense, link with, or distribute
+the Library except as expressly provided under this License. Any
+attempt otherwise to copy, modify, sublicense, link with, or
+distribute the Library is void, and will automatically terminate your
+rights under this License. However, parties who have received copies,
+or rights, from you under this License will not have their licenses
+terminated so long as such parties remain in full compliance.
+
+ 9. You are not required to accept this License, since you have not
+signed it. However, nothing else grants you permission to modify or
+distribute the Library or its derivative works. These actions are
+prohibited by law if you do not accept this License. Therefore, by
+modifying or distributing the Library (or any work based on the
+Library), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Library or works based on it.
+
+ 10. Each time you redistribute the Library (or any work based on the
+Library), the recipient automatically receives a license from the
+original licensor to copy, distribute, link with or modify the Library
+subject to these terms and conditions. You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties to
+this License.
+
+ 11. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Library at all. For example, if a patent
+license would not permit royalty-free redistribution of the Library by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Library.
+
+If any portion of this section is held invalid or unenforceable under any
+particular circumstance, the balance of the section is intended to apply,
+and the section as a whole is intended to apply in other circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system which is
+implemented by public license practices. Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+ 12. If the distribution and/or use of the Library is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Library under this License may add
+an explicit geographical distribution limitation excluding those countries,
+so that distribution is permitted only in or among countries not thus
+excluded. In such case, this License incorporates the limitation as if
+written in the body of this License.
+
+ 13. The Free Software Foundation may publish revised and/or new
+versions of the Library General Public License from time to time.
+Such new versions will be similar in spirit to the present version,
+but may differ in detail to address new problems or concerns.
+
+Each version is given a distinguishing version number. If the Library
+specifies a version number of this License which applies to it and
+"any later version", you have the option of following the terms and
+conditions either of that version or of any later version published by
+the Free Software Foundation. If the Library does not specify a
+license version number, you may choose any version ever published by
+the Free Software Foundation.
+
+ 14. If you wish to incorporate parts of the Library into other free
+programs whose distribution conditions are incompatible with these,
+write to the author to ask for permission. For software which is
+copyrighted by the Free Software Foundation, write to the Free
+Software Foundation; we sometimes make exceptions for this. Our
+decision will be guided by the two goals of preserving the free status
+of all derivatives of our free software and of promoting the sharing
+and reuse of software generally.
+
+ NO WARRANTY
+
+ 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
+WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
+EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
+OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
+KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
+LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
+THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+ 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
+WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
+AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
+FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
+CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
+LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
+RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
+FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
+SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+DAMAGES.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Libraries
+
+ If you develop a new library, and you want it to be of the greatest
+possible use to the public, we recommend making it free software that
+everyone can redistribute and change. You can do so by permitting
+redistribution under these terms (or, alternatively, under the terms of the
+ordinary General Public License).
+
+ To apply these terms, attach the following notices to the library. It is
+safest to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least the
+"copyright" line and a pointer to where the full notice is found.
+
+ <one line to give the library's name and a brief idea of what it does.>
+ Copyright (C) <year> <name of author>
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Library General Public
+ License as published by the Free Software Foundation; either
+ version 2 of the License, or (at your option) any later version.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Library General Public License for more details.
+
+ You should have received a copy of the GNU Library General Public
+ License along with this library; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
+Also add information on how to contact you by electronic and paper mail.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the library, if
+necessary. Here is a sample; alter the names:
+
+ Yoyodyne, Inc., hereby disclaims all copyright interest in the
+ library `Frob' (a library for tweaking knobs) written by James Random Hacker.
+
+ <signature of Ty Coon>, 1 April 1990
+ Ty Coon, President of Vice
+
+That's all there is to it!
diff --git a/monet-gtk/ChangeLog b/monet-gtk/ChangeLog
new file mode 100644
index 0000000..e69de29
diff --git a/monet-gtk/INSTALL b/monet-gtk/INSTALL
new file mode 100644
index 0000000..54caf7c
--- /dev/null
+++ b/monet-gtk/INSTALL
@@ -0,0 +1,229 @@
+Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002 Free Software
+Foundation, Inc.
+
+ This file is free documentation; the Free Software Foundation gives
+unlimited permission to copy, distribute and modify it.
+
+Basic Installation
+==================
+
+ These are generic installation instructions.
+
+ The `configure' shell script attempts to guess correct values for
+various system-dependent variables used during compilation. It uses
+those values to create a `Makefile' in each directory of the package.
+It may also create one or more `.h' files containing system-dependent
+definitions. Finally, it creates a shell script `config.status' that
+you can run in the future to recreate the current configuration, and a
+file `config.log' containing compiler output (useful mainly for
+debugging `configure').
+
+ It can also use an optional file (typically called `config.cache'
+and enabled with `--cache-file=config.cache' or simply `-C') that saves
+the results of its tests to speed up reconfiguring. (Caching is
+disabled by default to prevent problems with accidental use of stale
+cache files.)
+
+ If you need to do unusual things to compile the package, please try
+to figure out how `configure' could check whether to do them, and mail
+diffs or instructions to the address given in the `README' so they can
+be considered for the next release. If you are using the cache, and at
+some point `config.cache' contains results you don't want to keep, you
+may remove or edit it.
+
+ The file `configure.ac' (or `configure.in') is used to create
+`configure' by a program called `autoconf'. You only need
+`configure.ac' if you want to change it or regenerate `configure' using
+a newer version of `autoconf'.
+
+The simplest way to compile this package is:
+
+ 1. `cd' to the directory containing the package's source code and type
+ `./configure' to configure the package for your system. If you're
+ using `csh' on an old version of System V, you might need to type
+ `sh ./configure' instead to prevent `csh' from trying to execute
+ `configure' itself.
+
+ Running `configure' takes awhile. While running, it prints some
+ messages telling which features it is checking for.
+
+ 2. Type `make' to compile the package.
+
+ 3. Optionally, type `make check' to run any self-tests that come with
+ the package.
+
+ 4. Type `make install' to install the programs and any data files and
+ documentation.
+
+ 5. You can remove the program binaries and object files from the
+ source code directory by typing `make clean'. To also remove the
+ files that `configure' created (so you can compile the package for
+ a different kind of computer), type `make distclean'. There is
+ also a `make maintainer-clean' target, but that is intended mainly
+ for the package's developers. If you use it, you may have to get
+ all sorts of other programs in order to regenerate files that came
+ with the distribution.
+
+Compilers and Options
+=====================
+
+ Some systems require unusual options for compilation or linking that
+the `configure' script does not know about. Run `./configure --help'
+for details on some of the pertinent environment variables.
+
+ You can give `configure' initial values for configuration parameters
+by setting variables in the command line or in the environment. Here
+is an example:
+
+ ./configure CC=c89 CFLAGS=-O2 LIBS=-lposix
+
+ *Note Defining Variables::, for more details.
+
+Compiling For Multiple Architectures
+====================================
+
+ You can compile the package for more than one kind of computer at the
+same time, by placing the object files for each architecture in their
+own directory. To do this, you must use a version of `make' that
+supports the `VPATH' variable, such as GNU `make'. `cd' to the
+directory where you want the object files and executables to go and run
+the `configure' script. `configure' automatically checks for the
+source code in the directory that `configure' is in and in `..'.
+
+ If you have to use a `make' that does not support the `VPATH'
+variable, you have to compile the package for one architecture at a
+time in the source code directory. After you have installed the
+package for one architecture, use `make distclean' before reconfiguring
+for another architecture.
+
+Installation Names
+==================
+
+ By default, `make install' will install the package's files in
+`/usr/local/bin', `/usr/local/man', etc. You can specify an
+installation prefix other than `/usr/local' by giving `configure' the
+option `--prefix=PATH'.
+
+ You can specify separate installation prefixes for
+architecture-specific files and architecture-independent files. If you
+give `configure' the option `--exec-prefix=PATH', the package will use
+PATH as the prefix for installing programs and libraries.
+Documentation and other data files will still use the regular prefix.
+
+ In addition, if you use an unusual directory layout you can give
+options like `--bindir=PATH' to specify different values for particular
+kinds of files. Run `configure --help' for a list of the directories
+you can set and what kinds of files go in them.
+
+ If the package supports it, you can cause programs to be installed
+with an extra prefix or suffix on their names by giving `configure' the
+option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
+
+Optional Features
+=================
+
+ Some packages pay attention to `--enable-FEATURE' options to
+`configure', where FEATURE indicates an optional part of the package.
+They may also pay attention to `--with-PACKAGE' options, where PACKAGE
+is something like `gnu-as' or `x' (for the X Window System). The
+`README' should mention any `--enable-' and `--with-' options that the
+package recognizes.
+
+ For packages that use the X Window System, `configure' can usually
+find the X include and library files automatically, but if it doesn't,
+you can use the `configure' options `--x-includes=DIR' and
+`--x-libraries=DIR' to specify their locations.
+
+Specifying the System Type
+==========================
+
+ There may be some features `configure' cannot figure out
+automatically, but needs to determine by the type of machine the package
+will run on. Usually, assuming the package is built to be run on the
+_same_ architectures, `configure' can figure that out, but if it prints
+a message saying it cannot guess the machine type, give it the
+`--build=TYPE' option. TYPE can either be a short name for the system
+type, such as `sun4', or a canonical name which has the form:
+
+ CPU-COMPANY-SYSTEM
+
+where SYSTEM can have one of these forms:
+
+ OS KERNEL-OS
+
+ See the file `config.sub' for the possible values of each field. If
+`config.sub' isn't included in this package, then this package doesn't
+need to know the machine type.
+
+ If you are _building_ compiler tools for cross-compiling, you should
+use the `--target=TYPE' option to select the type of system they will
+produce code for.
+
+ If you want to _use_ a cross compiler, that generates code for a
+platform different from the build platform, you should specify the
+"host" platform (i.e., that on which the generated programs will
+eventually be run) with `--host=TYPE'.
+
+Sharing Defaults
+================
+
+ If you want to set default values for `configure' scripts to share,
+you can create a site shell script called `config.site' that gives
+default values for variables like `CC', `cache_file', and `prefix'.
+`configure' looks for `PREFIX/share/config.site' if it exists, then
+`PREFIX/etc/config.site' if it exists. Or, you can set the
+`CONFIG_SITE' environment variable to the location of the site script.
+A warning: not all `configure' scripts look for a site script.
+
+Defining Variables
+==================
+
+ Variables not defined in a site shell script can be set in the
+environment passed to `configure'. However, some packages may run
+configure again during the build, and the customized values of these
+variables may be lost. In order to avoid this problem, you should set
+them in the `configure' command line, using `VAR=value'. For example:
+
+ ./configure CC=/usr/local2/bin/gcc
+
+will cause the specified gcc to be used as the C compiler (unless it is
+overridden in the site shell script).
+
+`configure' Invocation
+======================
+
+ `configure' recognizes the following options to control how it
+operates.
+
+`--help'
+`-h'
+ Print a summary of the options to `configure', and exit.
+
+`--version'
+`-V'
+ Print the version of Autoconf used to generate the `configure'
+ script, and exit.
+
+`--cache-file=FILE'
+ Enable the cache: use and save the results of the tests in FILE,
+ traditionally `config.cache'. FILE defaults to `/dev/null' to
+ disable caching.
+
+`--config-cache'
+`-C'
+ Alias for `--cache-file=config.cache'.
+
+`--quiet'
+`--silent'
+`-q'
+ Do not print messages saying which checks are being made. To
+ suppress all normal output, redirect it to `/dev/null' (any error
+ messages will still be shown).
+
+`--srcdir=DIR'
+ Look for the package's source code in directory DIR. Usually
+ `configure' can determine that directory automatically.
+
+`configure' also accepts some other, not widely useful, options. Run
+`configure --help' for more details.
+
diff --git a/monet-gtk/Makefile.am b/monet-gtk/Makefile.am
new file mode 100644
index 0000000..0518ee4
--- /dev/null
+++ b/monet-gtk/Makefile.am
@@ -0,0 +1,4 @@
+SUBDIRS = src test
+
+test: all
+ cd test && $(MAKE) $(AM_MAKEFLAGS) test
diff --git a/monet-gtk/Makefile.in b/monet-gtk/Makefile.in
new file mode 100644
index 0000000..84bf336
--- /dev/null
+++ b/monet-gtk/Makefile.in
@@ -0,0 +1,591 @@
+# Makefile.in generated by automake 1.8.5 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004 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@
+srcdir = @srcdir@
+top_srcdir = @top_srcdir@
+VPATH = @srcdir@
+pkgdatadir = $(datadir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+top_builddir = .
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+INSTALL = @INSTALL@
+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 = :
+host_triplet = @host@
+DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
+ $(srcdir)/Makefile.in $(top_srcdir)/configure AUTHORS COPYING \
+ ChangeLog INSTALL NEWS TODO ac-helpers/compile \
+ ac-helpers/config.guess ac-helpers/config.sub \
+ ac-helpers/depcomp ac-helpers/install-sh ac-helpers/ltmain.sh \
+ ac-helpers/missing
+subdir = .
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+ $(ACLOCAL_M4)
+am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
+ configure.lineno configure.status.lineno
+mkinstalldirs = $(mkdir_p)
+CONFIG_CLEAN_FILES =
+SOURCES =
+DIST_SOURCES =
+RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
+ html-recursive info-recursive install-data-recursive \
+ install-exec-recursive install-info-recursive \
+ install-recursive installcheck-recursive installdirs-recursive \
+ pdf-recursive ps-recursive uninstall-info-recursive \
+ uninstall-recursive
+ETAGS = etags
+CTAGS = ctags
+DIST_SUBDIRS = $(SUBDIRS)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+distdir = $(PACKAGE)-$(VERSION)
+top_distdir = $(distdir)
+am__remove_distdir = \
+ { test ! -d $(distdir) \
+ || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
+ && rm -fr $(distdir); }; }
+DIST_ARCHIVES = $(distdir).tar.gz
+GZIP_ENV = --best
+distuninstallcheck_listfiles = find . -type f -print
+distcleancheck_listfiles = find . -type f -print
+ACLOCAL = @ACLOCAL@
+AMDEP_FALSE = @AMDEP_FALSE@
+AMDEP_TRUE = @AMDEP_TRUE@
+AMTAR = @AMTAR@
+AR = @AR@
+AS = @AS@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+CC = @CC@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CXX = @CXX@
+CXXCPP = @CXXCPP@
+CXXDEPMODE = @CXXDEPMODE@
+CXXFLAGS = @CXXFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+DLLTOOL = @DLLTOOL@
+ECHO = @ECHO@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+EXEEXT = @EXEEXT@
+F77 = @F77@
+FFLAGS = @FFLAGS@
+GREP = @GREP@
+GTK_CFLAGS = @GTK_CFLAGS@
+GTK_LIBS = @GTK_LIBS@
+GTK_VERSION = @GTK_VERSION@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+LDFLAGS = @LDFLAGS@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LN_S = @LN_S@
+LTLIBOBJS = @LTLIBOBJS@
+MAKEINFO = @MAKEINFO@
+OBJDUMP = @OBJDUMP@
+OBJEXT = @OBJEXT@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PKG_CONFIG = @PKG_CONFIG@
+RANLIB = @RANLIB@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+STRIP = @STRIP@
+VERSION = @VERSION@
+YACC = @YACC@
+YFLAGS = @YFLAGS@
+ac_ct_CC = @ac_ct_CC@
+ac_ct_CXX = @ac_ct_CXX@
+ac_ct_F77 = @ac_ct_F77@
+am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
+am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
+am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
+am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
+am__include = @am__include@
+am__leading_dot = @am__leading_dot@
+am__quote = @am__quote@
+bindir = @bindir@
+build = @build@
+build_alias = @build_alias@
+build_cpu = @build_cpu@
+build_os = @build_os@
+build_vendor = @build_vendor@
+datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
+exec_prefix = @exec_prefix@
+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@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = @localedir@
+localstatedir = @localstatedir@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+oldincludedir = @oldincludedir@
+pdfdir = @pdfdir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+psdir = @psdir@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
+SUBDIRS = src test
+all: all-recursive
+
+.SUFFIXES:
+am--refresh:
+ @:
+$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
+ @for dep in $?; do \
+ case '$(am__configure_deps)' in \
+ *$$dep*) \
+ echo ' cd $(srcdir) && $(AUTOMAKE) --gnu '; \
+ cd $(srcdir) && $(AUTOMAKE) --gnu \
+ && exit 0; \
+ exit 1;; \
+ esac; \
+ done; \
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
+ cd $(top_srcdir) && \
+ $(AUTOMAKE) --gnu Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+ @case '$?' in \
+ *config.status*) \
+ echo ' $(SHELL) ./config.status'; \
+ $(SHELL) ./config.status;; \
+ *) \
+ echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
+ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
+ esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+ $(SHELL) ./config.status --recheck
+
+$(top_srcdir)/configure: $(am__configure_deps)
+ cd $(srcdir) && $(AUTOCONF)
+$(ACLOCAL_M4): $(am__aclocal_m4_deps)
+ cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
+
+mostlyclean-libtool:
+ -rm -f *.lo
+
+clean-libtool:
+ -rm -rf .libs _libs
+
+distclean-libtool:
+ -rm -f libtool
+uninstall-info-am:
+
+# This directory's subdirectories are mostly independent; you can cd
+# into them and run `make' without going through this Makefile.
+# To change the values of `make' variables: instead of editing Makefiles,
+# (1) if the variable is set in `config.status', edit `config.status'
+# (which will cause the Makefiles to be regenerated when you run `make');
+# (2) otherwise, pass the desired values on the `make' command line.
+$(RECURSIVE_TARGETS):
+ @set fnord $$MAKEFLAGS; amf=$$2; \
+ dot_seen=no; \
+ target=`echo $@ | sed s/-recursive//`; \
+ list='$(SUBDIRS)'; for subdir in $$list; do \
+ echo "Making $$target in $$subdir"; \
+ if test "$$subdir" = "."; then \
+ dot_seen=yes; \
+ local_target="$$target-am"; \
+ else \
+ local_target="$$target"; \
+ fi; \
+ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
+ || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
+ done; \
+ if test "$$dot_seen" = "no"; then \
+ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
+ fi; test -z "$$fail"
+
+mostlyclean-recursive clean-recursive distclean-recursive \
+maintainer-clean-recursive:
+ @set fnord $$MAKEFLAGS; amf=$$2; \
+ dot_seen=no; \
+ case "$@" in \
+ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
+ *) list='$(SUBDIRS)' ;; \
+ esac; \
+ rev=''; for subdir in $$list; do \
+ if test "$$subdir" = "."; then :; else \
+ rev="$$subdir $$rev"; \
+ fi; \
+ done; \
+ rev="$$rev ."; \
+ target=`echo $@ | sed s/-recursive//`; \
+ for subdir in $$rev; do \
+ echo "Making $$target in $$subdir"; \
+ if test "$$subdir" = "."; then \
+ local_target="$$target-am"; \
+ else \
+ local_target="$$target"; \
+ fi; \
+ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
+ || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
+ done && test -z "$$fail"
+tags-recursive:
+ list='$(SUBDIRS)'; for subdir in $$list; do \
+ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
+ done
+ctags-recursive:
+ list='$(SUBDIRS)'; for subdir in $$list; do \
+ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
+ done
+
+ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) ' { files[$$0] = 1; } \
+ END { for (i in files) print i; }'`; \
+ mkid -fID $$unique
+tags: TAGS
+
+TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
+ $(TAGS_FILES) $(LISP)
+ tags=; \
+ here=`pwd`; \
+ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
+ include_option=--etags-include; \
+ empty_fix=.; \
+ else \
+ include_option=--include; \
+ empty_fix=; \
+ fi; \
+ list='$(SUBDIRS)'; for subdir in $$list; do \
+ if test "$$subdir" = .; then :; else \
+ test ! -f $$subdir/TAGS || \
+ tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
+ fi; \
+ done; \
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) ' { files[$$0] = 1; } \
+ END { for (i in files) print i; }'`; \
+ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
+ test -n "$$unique" || unique=$$empty_fix; \
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+ $$tags $$unique; \
+ fi
+ctags: CTAGS
+CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
+ $(TAGS_FILES) $(LISP)
+ tags=; \
+ here=`pwd`; \
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) ' { files[$$0] = 1; } \
+ END { for (i in files) print i; }'`; \
+ test -z "$(CTAGS_ARGS)$$tags$$unique" \
+ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
+ $$tags $$unique
+
+GTAGS:
+ here=`$(am__cd) $(top_builddir) && pwd` \
+ && cd $(top_srcdir) \
+ && gtags -i $(GTAGS_ARGS) $$here
+
+distclean-tags:
+ -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
+
+distdir: $(DISTFILES)
+ $(am__remove_distdir)
+ mkdir $(distdir)
+ $(mkdir_p) $(distdir)/ac-helpers
+ @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
+ list='$(DISTFILES)'; for file in $$list; do \
+ case $$file in \
+ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
+ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
+ esac; \
+ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
+ if test "$$dir" != "$$file" && test "$$dir" != "."; then \
+ dir="/$$dir"; \
+ $(mkdir_p) "$(distdir)$$dir"; \
+ else \
+ dir=''; \
+ fi; \
+ if test -d $$d/$$file; then \
+ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
+ fi; \
+ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
+ else \
+ test -f $(distdir)/$$file \
+ || cp -p $$d/$$file $(distdir)/$$file \
+ || exit 1; \
+ fi; \
+ done
+ list='$(SUBDIRS)'; for subdir in $$list; do \
+ if test "$$subdir" = .; then :; else \
+ test -d "$(distdir)/$$subdir" \
+ || mkdir "$(distdir)/$$subdir" \
+ || exit 1; \
+ (cd $$subdir && \
+ $(MAKE) $(AM_MAKEFLAGS) \
+ top_distdir="../$(top_distdir)" \
+ distdir="../$(distdir)/$$subdir" \
+ distdir) \
+ || exit 1; \
+ fi; \
+ done
+ -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
+ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
+ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
+ ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
+ || chmod -R a+r $(distdir)
+dist-gzip: distdir
+ $(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
+ $(am__remove_distdir)
+
+dist-bzip2: distdir
+ $(AMTAR) chof - $(distdir) | bzip2 -9 -c >$(distdir).tar.bz2
+ $(am__remove_distdir)
+
+dist-tarZ: distdir
+ $(AMTAR) chof - $(distdir) | compress -c >$(distdir).tar.Z
+ $(am__remove_distdir)
+
+dist-shar: distdir
+ shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
+ $(am__remove_distdir)
+
+dist-zip: distdir
+ -rm -f $(distdir).zip
+ zip -rq $(distdir).zip $(distdir)
+ $(am__remove_distdir)
+
+dist dist-all: distdir
+ $(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
+ $(am__remove_distdir)
+
+# This target untars the dist file and tries a VPATH configuration. Then
+# it guarantees that the distribution is self-contained by making another
+# tarfile.
+distcheck: dist
+ case '$(DIST_ARCHIVES)' in \
+ *.tar.gz*) \
+ GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(AMTAR) xf - ;;\
+ *.tar.bz2*) \
+ bunzip2 -c $(distdir).tar.bz2 | $(AMTAR) xf - ;;\
+ *.tar.Z*) \
+ uncompress -c $(distdir).tar.Z | $(AMTAR) xf - ;;\
+ *.shar.gz*) \
+ GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
+ *.zip*) \
+ unzip $(distdir).zip ;;\
+ esac
+ chmod -R a-w $(distdir); chmod a+w $(distdir)
+ mkdir $(distdir)/_build
+ mkdir $(distdir)/_inst
+ chmod a-w $(distdir)
+ dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
+ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
+ && cd $(distdir)/_build \
+ && ../configure --srcdir=.. --prefix="$$dc_install_base" \
+ $(DISTCHECK_CONFIGURE_FLAGS) \
+ && $(MAKE) $(AM_MAKEFLAGS) \
+ && $(MAKE) $(AM_MAKEFLAGS) dvi \
+ && $(MAKE) $(AM_MAKEFLAGS) check \
+ && $(MAKE) $(AM_MAKEFLAGS) install \
+ && $(MAKE) $(AM_MAKEFLAGS) installcheck \
+ && $(MAKE) $(AM_MAKEFLAGS) uninstall \
+ && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
+ distuninstallcheck \
+ && chmod -R a-w "$$dc_install_base" \
+ && ({ \
+ (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
+ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
+ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
+ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
+ distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
+ } || { rm -rf "$$dc_destdir"; exit 1; }) \
+ && rm -rf "$$dc_destdir" \
+ && $(MAKE) $(AM_MAKEFLAGS) dist \
+ && rm -rf $(DIST_ARCHIVES) \
+ && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
+ $(am__remove_distdir)
+ @(echo "$(distdir) archives ready for distribution: "; \
+ list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
+ sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}'
+distuninstallcheck:
+ @cd $(distuninstallcheck_dir) \
+ && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
+ || { echo "ERROR: files left after uninstall:" ; \
+ if test -n "$(DESTDIR)"; then \
+ echo " (check DESTDIR support)"; \
+ fi ; \
+ $(distuninstallcheck_listfiles) ; \
+ exit 1; } >&2
+distcleancheck: distclean
+ @if test '$(srcdir)' = . ; then \
+ echo "ERROR: distcleancheck can only run from a VPATH build" ; \
+ exit 1 ; \
+ fi
+ @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
+ || { echo "ERROR: files left in build directory after distclean:" ; \
+ $(distcleancheck_listfiles) ; \
+ exit 1; } >&2
+check-am: all-am
+check: check-recursive
+all-am: Makefile
+installdirs: installdirs-recursive
+installdirs-am:
+install: install-recursive
+install-exec: install-exec-recursive
+install-data: install-data-recursive
+uninstall: uninstall-recursive
+
+install-am: all-am
+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-recursive
+install-strip:
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ `test -z '$(STRIP)' || \
+ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+ -rm -f $(CONFIG_CLEAN_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-recursive
+
+clean-am: clean-generic clean-libtool mostlyclean-am
+
+distclean: distclean-recursive
+ -rm -f $(am__CONFIG_DISTCLEAN_FILES)
+ -rm -f Makefile
+distclean-am: clean-am distclean-generic distclean-libtool \
+ distclean-tags
+
+dvi: dvi-recursive
+
+dvi-am:
+
+html: html-recursive
+
+info: info-recursive
+
+info-am:
+
+install-data-am:
+
+install-exec-am:
+
+install-info: install-info-recursive
+
+install-man:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-recursive
+ -rm -f $(am__CONFIG_DISTCLEAN_FILES)
+ -rm -rf $(top_srcdir)/autom4te.cache
+ -rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-recursive
+
+mostlyclean-am: mostlyclean-generic mostlyclean-libtool
+
+pdf: pdf-recursive
+
+pdf-am:
+
+ps: ps-recursive
+
+ps-am:
+
+uninstall-am: uninstall-info-am
+
+uninstall-info: uninstall-info-recursive
+
+.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am am--refresh check \
+ check-am clean clean-generic clean-libtool clean-recursive \
+ ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \
+ dist-shar dist-tarZ dist-zip distcheck distclean \
+ distclean-generic distclean-libtool distclean-recursive \
+ distclean-tags distcleancheck distdir distuninstallcheck dvi \
+ dvi-am html html-am info info-am install install-am \
+ install-data install-data-am install-exec install-exec-am \
+ install-info install-info-am install-man install-strip \
+ installcheck installcheck-am installdirs installdirs-am \
+ maintainer-clean maintainer-clean-generic \
+ maintainer-clean-recursive mostlyclean mostlyclean-generic \
+ mostlyclean-libtool mostlyclean-recursive pdf pdf-am ps ps-am \
+ tags tags-recursive uninstall uninstall-am uninstall-info-am
+
+
+test: all
+ cd test && $(MAKE) $(AM_MAKEFLAGS) test
+# 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/monet-gtk/NEWS b/monet-gtk/NEWS
new file mode 100644
index 0000000..e69de29
diff --git a/monet-gtk/README b/monet-gtk/README
new file mode 100644
index 0000000..e69de29
diff --git a/monet-gtk/TODO b/monet-gtk/TODO
new file mode 100644
index 0000000..e69de29
diff --git a/monet-gtk/autogen.sh b/monet-gtk/autogen.sh
new file mode 100755
index 0000000..577aa05
--- /dev/null
+++ b/monet-gtk/autogen.sh
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+if ! [ -d 'ac-helpers' ] ; then
+ if ! mkdir 'ac-helpers' ; then
+ echo "failed to create ac-helpers directory" >&2
+ exit 1
+ fi
+fi
+
+
+aclocal-1.8
+
+autoconf
+libtoolize --copy --force
+automake-1.8 -a --copy
+
+rm -rf autom4te.cache
+
+./configure "$@"
diff --git a/monet-gtk/configure.ac b/monet-gtk/configure.ac
new file mode 100644
index 0000000..007ef76
--- /dev/null
+++ b/monet-gtk/configure.ac
@@ -0,0 +1,38 @@
+AC_INIT
+AC_CONFIG_SRCDIR([configure.ac])
+
+#put ac helpers into ac-helpers
+AC_CONFIG_AUX_DIR([ac-helpers])
+
+#information on package
+AM_INIT_AUTOMAKE(gtk-engine-noop, 0.0.1)
+
+
+#checks for programs
+AC_PROG_CC
+AC_PROG_INSTALL
+AC_PROG_MAKE_SET
+AC_PROG_YACC
+
+AM_DISABLE_STATIC
+AC_LIBTOOL_WIN32_DLL
+AM_PROG_LIBTOOL
+AC_PROG_LIBTOOL
+
+PKG_CHECK_MODULES(GTK, gtk+-2.0 >= 2.6.0 gdk-pixbuf-2.0)
+
+AC_C_CONST
+AC_TYPE_SIZE_T
+
+AC_SUBST(GTK_CFLAGS)
+AC_SUBST(GTK_LIBS)
+
+GTK_VERSION="`$PKG_CONFIG --variable=gtk_binary_version gtk+-2.0`"
+AC_SUBST(GTK_VERSION)
+
+CFLAGS="$CFLAGS -Wall -g -Wmissing-prototypes"
+
+AC_CONFIG_FILES([Makefile
+src/Makefile
+test/Makefile])
+AC_OUTPUT
diff --git a/monet-gtk/src/Makefile.am b/monet-gtk/src/Makefile.am
new file mode 100644
index 0000000..e6e62c1
--- /dev/null
+++ b/monet-gtk/src/Makefile.am
@@ -0,0 +1,15 @@
+INCLUDES = $(GTK_CFLAGS)
+
+enginedir = $(libdir)/gtk-2.0/$(GTK_VERSION)/engines
+
+engine_LTLIBRARIES = libnoop.la
+
+libnoop_la_SOURCES = \
+ main.c \
+ rcstyle.c \
+ rcstyle.h \
+ style.c \
+ style.h
+
+libnoop_la_LDFLAGS = -avoid-version -module -no-undefined
+libnoop_la_LIBADD = $(GTK_LIBS)
diff --git a/monet-gtk/src/Makefile.in b/monet-gtk/src/Makefile.in
new file mode 100644
index 0000000..a43d34a
--- /dev/null
+++ b/monet-gtk/src/Makefile.in
@@ -0,0 +1,472 @@
+# Makefile.in generated by automake 1.8.5 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004 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@
+
+SOURCES = $(libnoop_la_SOURCES)
+
+srcdir = @srcdir@
+top_srcdir = @top_srcdir@
+VPATH = @srcdir@
+pkgdatadir = $(datadir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+top_builddir = ..
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+INSTALL = @INSTALL@
+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 = :
+host_triplet = @host@
+subdir = src
+DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+ $(ACLOCAL_M4)
+mkinstalldirs = $(mkdir_p)
+CONFIG_CLEAN_FILES =
+am__installdirs = "$(DESTDIR)$(enginedir)"
+engineLTLIBRARIES_INSTALL = $(INSTALL)
+LTLIBRARIES = $(engine_LTLIBRARIES)
+am__DEPENDENCIES_1 =
+libnoop_la_DEPENDENCIES = $(am__DEPENDENCIES_1)
+am_libnoop_la_OBJECTS = main.lo rcstyle.lo style.lo
+libnoop_la_OBJECTS = $(am_libnoop_la_OBJECTS)
+DEFAULT_INCLUDES = -I. -I$(srcdir)
+depcomp = $(SHELL) $(top_srcdir)/ac-helpers/depcomp
+am__depfiles_maybe = depfiles
+ AMDEP_TRUE@DEP_FILES = ./$(DEPDIR)/main.Plo ./$(DEPDIR)/rcstyle.Plo \
+ AMDEP_TRUE@ ./$(DEPDIR)/style.Plo
+COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
+ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) \
+ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
+ $(AM_CFLAGS) $(CFLAGS)
+CCLD = $(CC)
+LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
+ $(AM_LDFLAGS) $(LDFLAGS) -o $@
+SOURCES = $(libnoop_la_SOURCES)
+DIST_SOURCES = $(libnoop_la_SOURCES)
+ETAGS = etags
+CTAGS = ctags
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = @ACLOCAL@
+AMDEP_FALSE = @AMDEP_FALSE@
+AMDEP_TRUE = @AMDEP_TRUE@
+AMTAR = @AMTAR@
+AR = @AR@
+AS = @AS@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+CC = @CC@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CXX = @CXX@
+CXXCPP = @CXXCPP@
+CXXDEPMODE = @CXXDEPMODE@
+CXXFLAGS = @CXXFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+DLLTOOL = @DLLTOOL@
+ECHO = @ECHO@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+EXEEXT = @EXEEXT@
+F77 = @F77@
+FFLAGS = @FFLAGS@
+GREP = @GREP@
+GTK_CFLAGS = @GTK_CFLAGS@
+GTK_LIBS = @GTK_LIBS@
+GTK_VERSION = @GTK_VERSION@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+LDFLAGS = @LDFLAGS@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LN_S = @LN_S@
+LTLIBOBJS = @LTLIBOBJS@
+MAKEINFO = @MAKEINFO@
+OBJDUMP = @OBJDUMP@
+OBJEXT = @OBJEXT@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PKG_CONFIG = @PKG_CONFIG@
+RANLIB = @RANLIB@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+STRIP = @STRIP@
+VERSION = @VERSION@
+YACC = @YACC@
+YFLAGS = @YFLAGS@
+ac_ct_CC = @ac_ct_CC@
+ac_ct_CXX = @ac_ct_CXX@
+ac_ct_F77 = @ac_ct_F77@
+am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
+am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
+am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
+am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
+am__include = @am__include@
+am__leading_dot = @am__leading_dot@
+am__quote = @am__quote@
+bindir = @bindir@
+build = @build@
+build_alias = @build_alias@
+build_cpu = @build_cpu@
+build_os = @build_os@
+build_vendor = @build_vendor@
+datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
+exec_prefix = @exec_prefix@
+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@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = @localedir@
+localstatedir = @localstatedir@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+oldincludedir = @oldincludedir@
+pdfdir = @pdfdir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+psdir = @psdir@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
+INCLUDES = $(GTK_CFLAGS)
+enginedir = $(libdir)/gtk-2.0/$(GTK_VERSION)/engines
+engine_LTLIBRARIES = libnoop.la
+libnoop_la_SOURCES = \
+ main.c \
+ rcstyle.c \
+ rcstyle.h \
+ style.c \
+ style.h
+
+libnoop_la_LDFLAGS = -avoid-version -module -no-undefined
+libnoop_la_LIBADD = $(GTK_LIBS)
+all: all-am
+
+.SUFFIXES:
+.SUFFIXES: .c .lo .o .obj
+$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
+ @for dep in $?; do \
+ case '$(am__configure_deps)' in \
+ *$$dep*) \
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
+ && exit 0; \
+ exit 1;; \
+ esac; \
+ done; \
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \
+ cd $(top_srcdir) && \
+ $(AUTOMAKE) --gnu src/Makefile
+.PRECIOUS: 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__depfiles_maybe)'; \
+ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+ esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure: $(am__configure_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4): $(am__aclocal_m4_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+install-engineLTLIBRARIES: $(engine_LTLIBRARIES)
+ @$(NORMAL_INSTALL)
+ test -z "$(enginedir)" || $(mkdir_p) "$(DESTDIR)$(enginedir)"
+ @list='$(engine_LTLIBRARIES)'; for p in $$list; do \
+ if test -f $$p; then \
+ f="`echo $$p | sed -e 's|^.*/||'`"; \
+ echo " $(LIBTOOL) --mode=install $(engineLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(enginedir)/$$f'"; \
+ $(LIBTOOL) --mode=install $(engineLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(enginedir)/$$f"; \
+ else :; fi; \
+ done
+
+uninstall-engineLTLIBRARIES:
+ @$(NORMAL_UNINSTALL)
+ @list='$(engine_LTLIBRARIES)'; for p in $$list; do \
+ p="`echo $$p | sed -e 's|^.*/||'`"; \
+ echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(enginedir)/$$p'"; \
+ $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(enginedir)/$$p"; \
+ done
+
+clean-engineLTLIBRARIES:
+ -test -z "$(engine_LTLIBRARIES)" || rm -f $(engine_LTLIBRARIES)
+ @list='$(engine_LTLIBRARIES)'; for p in $$list; do \
+ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
+ test "$$dir" != "$$p" || dir=.; \
+ echo "rm -f \"$${dir}/so_locations\""; \
+ rm -f "$${dir}/so_locations"; \
+ done
+libnoop.la: $(libnoop_la_OBJECTS) $(libnoop_la_DEPENDENCIES)
+ $(LINK) -rpath $(enginedir) $(libnoop_la_LDFLAGS) $(libnoop_la_OBJECTS) $(libnoop_la_LIBADD) $(LIBS)
+
+mostlyclean-compile:
+ -rm -f *.$(OBJEXT)
+
+distclean-compile:
+ -rm -f *.tab.c
+
+ AMDEP_TRUE@@am__include@ @am__quote /$(DEPDIR)/main Plo am__quote@
+ AMDEP_TRUE@@am__include@ @am__quote /$(DEPDIR)/rcstyle Plo am__quote@
+ AMDEP_TRUE@@am__include@ @am__quote /$(DEPDIR)/style Plo am__quote@
+
+.c.o:
+ am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
+ am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
+ AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+ AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
+ AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+ am__fastdepCC_FALSE@ $(COMPILE) -c $<
+
+.c.obj:
+ am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
+ am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
+ AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+ AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
+ AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+ am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
+
+.c.lo:
+ am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
+ am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
+ AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
+ AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Plo' tmpdepfile='$(DEPDIR)/$*.TPlo' @AMDEPBACKSLASH@
+ AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+ am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
+
+mostlyclean-libtool:
+ -rm -f *.lo
+
+clean-libtool:
+ -rm -rf .libs _libs
+
+distclean-libtool:
+ -rm -f libtool
+uninstall-info-am:
+
+ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) ' { files[$$0] = 1; } \
+ END { for (i in files) print i; }'`; \
+ mkid -fID $$unique
+tags: TAGS
+
+TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
+ $(TAGS_FILES) $(LISP)
+ tags=; \
+ here=`pwd`; \
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) ' { files[$$0] = 1; } \
+ END { for (i in files) print i; }'`; \
+ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
+ test -n "$$unique" || unique=$$empty_fix; \
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+ $$tags $$unique; \
+ fi
+ctags: CTAGS
+CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
+ $(TAGS_FILES) $(LISP)
+ tags=; \
+ here=`pwd`; \
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) ' { files[$$0] = 1; } \
+ END { for (i in files) print i; }'`; \
+ test -z "$(CTAGS_ARGS)$$tags$$unique" \
+ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
+ $$tags $$unique
+
+GTAGS:
+ here=`$(am__cd) $(top_builddir) && pwd` \
+ && cd $(top_srcdir) \
+ && gtags -i $(GTAGS_ARGS) $$here
+
+distclean-tags:
+ -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
+
+distdir: $(DISTFILES)
+ @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
+ list='$(DISTFILES)'; for file in $$list; do \
+ case $$file in \
+ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
+ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
+ esac; \
+ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
+ if test "$$dir" != "$$file" && test "$$dir" != "."; then \
+ dir="/$$dir"; \
+ $(mkdir_p) "$(distdir)$$dir"; \
+ else \
+ dir=''; \
+ fi; \
+ if test -d $$d/$$file; then \
+ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
+ fi; \
+ cp -pR $$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 $(LTLIBRARIES)
+installdirs:
+ for dir in "$(DESTDIR)$(enginedir)"; do \
+ test -z "$$dir" || $(mkdir_p) "$$dir"; \
+ done
+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:
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ `test -z '$(STRIP)' || \
+ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+ -rm -f $(CONFIG_CLEAN_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-engineLTLIBRARIES clean-generic clean-libtool \
+ mostlyclean-am
+
+distclean: distclean-am
+ -rm -rf ./$(DEPDIR)
+ -rm -f Makefile
+distclean-am: clean-am distclean-compile distclean-generic \
+ distclean-libtool distclean-tags
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+info: info-am
+
+info-am:
+
+install-data-am: install-engineLTLIBRARIES
+
+install-exec-am:
+
+install-info: install-info-am
+
+install-man:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+ -rm -rf ./$(DEPDIR)
+ -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: uninstall-engineLTLIBRARIES uninstall-info-am
+
+.PHONY: CTAGS GTAGS all all-am check check-am clean \
+ clean-engineLTLIBRARIES clean-generic clean-libtool ctags \
+ 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-engineLTLIBRARIES install-exec \
+ install-exec-am install-info install-info-am install-man \
+ 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 uninstall uninstall-am \
+ uninstall-engineLTLIBRARIES uninstall-info-am
+
+# 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/monet-gtk/src/main.c b/monet-gtk/src/main.c
new file mode 100644
index 0000000..44cadbc
--- /dev/null
+++ b/monet-gtk/src/main.c
@@ -0,0 +1,61 @@
+/* Noop GTK engine: main.c
+ *
+ * Copyright (C) 2008 Benjamin Berg <benjamin sipsolutions net>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+*/
+
+#include <stdlib.h>
+#include <gmodule.h>
+#include <gtk/gtk.h>
+
+#include "style.h"
+#include "rcstyle.h"
+
+G_MODULE_EXPORT void theme_init (GTypeModule *module);
+G_MODULE_EXPORT void theme_exit (void);
+G_MODULE_EXPORT GtkRcStyle * theme_create_rc_style (void);
+G_MODULE_EXPORT const gchar* g_module_check_init (GModule *module);
+
+G_MODULE_EXPORT void
+theme_init (GTypeModule *module)
+{
+ noop_rc_style_register_type (module);
+ noop_style_register_type (module);
+}
+
+G_MODULE_EXPORT void
+theme_exit (void)
+{
+ /* Called when the engine is unloaded again. */
+}
+
+G_MODULE_EXPORT GtkRcStyle *
+theme_create_rc_style (void)
+{
+ return GTK_RC_STYLE (g_object_new (NOOP_TYPE_RC_STYLE, NULL));
+}
+
+/* The following function will be called by GTK+ when the module
+ * is loaded and checks to see if we are compatible with the
+ * version of GTK+ that loads us.
+ */
+const gchar*
+g_module_check_init (GModule *module)
+{
+ return gtk_check_version (GTK_MAJOR_VERSION,
+ GTK_MINOR_VERSION,
+ GTK_MICRO_VERSION - GTK_INTERFACE_AGE);
+}
diff --git a/monet-gtk/src/rcstyle.c b/monet-gtk/src/rcstyle.c
new file mode 100644
index 0000000..89198d0
--- /dev/null
+++ b/monet-gtk/src/rcstyle.c
@@ -0,0 +1,126 @@
+/* Noop GTK engine: rcstyle.c
+ *
+ * Copyright (C) 2008 Benjamin Berg <benjamin sipsolutions net>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+*/
+
+
+#include <gdk/gdk.h>
+#include <glib.h>
+#include "style.h"
+#include "rcstyle.h"
+
+static void noop_rc_style_init (NoopRcStyle *style);
+static void noop_rc_style_class_init (NoopRcStyleClass *klass);
+static GtkStyle *noop_rc_style_create_style (GtkRcStyle *rc_style);
+
+static GtkRcStyleClass *parent_class;
+
+GType noop_type_rc_style = 0;
+
+void
+noop_rc_style_register_type (GTypeModule *module)
+{
+ if (!noop_type_rc_style) {
+ static const GTypeInfo object_info =
+ {
+ sizeof (NoopRcStyleClass),
+ (GBaseInitFunc) NULL,
+ (GBaseFinalizeFunc) NULL,
+ (GClassInitFunc) noop_rc_style_class_init,
+ NULL, /* class_finalize */
+ NULL, /* class_data */
+ sizeof (NoopRcStyle),
+ 0, /* n_preallocs */
+ (GInstanceInitFunc) noop_rc_style_init,
+ NULL
+ };
+
+ noop_type_rc_style = g_type_module_register_type (module,
+ GTK_TYPE_RC_STYLE,
+ "NoopRcStyle",
+ &object_info, 0);
+ }
+}
+
+static void
+noop_rc_style_init (NoopRcStyle *style)
+{
+ /* Initilize any variables of the NoopRcStyle object here */
+}
+
+static void
+noop_rc_style_finalize (NoopRcStyle *style)
+{
+ /* Clean up any data from the RC style in here. */
+}
+
+static void
+noop_rc_style_merge (GtkRcStyle *dest, GtkRcStyle *src)
+{
+ parent_class->merge (dest, src);
+
+ if (!NOOP_IS_RC_STYLE (src))
+ return;
+
+ /* This function "merges" two RC styles. All matched styles from the
+ * gtkrc are merged together to form the final style.
+ *
+ * Note about the order: The merging happens in REVERSE
+ * (at least to what I woulde expect).
+ * Often one will want to keep track of where an option has been set
+ * and use the version that was set last. For this one needs a bitfield
+ * and some code to copy when neccessary. (You can refere to eg. Clearlooks
+ * or other engines in gtk-engines of how this can be handled.) */
+}
+
+static guint
+noop_rc_style_parse (GtkRcStyle *rc_style,
+ GtkSettings *settings,
+ GScanner *scanner)
+{
+ NoopRcStyle *noop_rc_style = NOOP_RC_STYLE (rc_style);
+
+ return G_TOKEN_NONE;
+}
+
+static void
+noop_rc_style_class_init (NoopRcStyleClass *klass)
+{
+ GtkRcStyleClass *rc_style_class = GTK_RC_STYLE_CLASS (klass);
+ GObjectClass *g_object_class = G_OBJECT_CLASS (klass);
+
+ parent_class = g_type_class_peek_parent (klass);
+
+ /* These are the functions we override from the GtkRcStyle class.
+ * We need to override at least create_style. (Uncomment the other
+ * two to override them) */
+ rc_style_class->create_style = noop_rc_style_create_style;
+ /*rc_style_class->merge = noop_rc_style_merge;
+ rc_style_class->parse = noop_rc_style_parse;
+
+ g_object_class->finalize = noop_rc_style_finalize;*/
+}
+
+/* Create an empty style suitable to this RC style
+ */
+static GtkStyle *
+noop_rc_style_create_style (GtkRcStyle *rc_style)
+{
+ return GTK_STYLE (g_object_new (NOOP_TYPE_STYLE, NULL));
+}
+
+
diff --git a/monet-gtk/src/rcstyle.h b/monet-gtk/src/rcstyle.h
new file mode 100644
index 0000000..00288c6
--- /dev/null
+++ b/monet-gtk/src/rcstyle.h
@@ -0,0 +1,54 @@
+/* Noop GTK engine: rcstyle.h
+ *
+ * Copyright (C) 2008 Benjamin Berg <benjamin sipsolutions net>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Publi License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+*/
+
+#ifndef __RCSTYLE_H
+#define __RCSTYLE_H
+
+#include <gtk/gtk.h>
+#include <gtk/gtkrc.h>
+
+typedef struct _NoopRcStyle NoopRcStyle;
+typedef struct _NoopRcStyleClass NoopRcStyleClass;
+
+
+GType noop_type_rc_style G_GNUC_INTERNAL;
+
+#define NOOP_TYPE_RC_STYLE noop_type_rc_style
+#define NOOP_RC_STYLE(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), NOOP_TYPE_RC_STYLE, NoopRcStyle))
+#define NOOP_RC_STYLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), NOOP_TYPE_RC_STYLE, NoopRcStyleClass))
+#define NOOP_IS_RC_STYLE(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), NOOP_TYPE_RC_STYLE))
+#define NOOP_IS_RC_STYLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), NOOP_TYPE_RC_STYLE))
+#define NOOP_RC_STYLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), NOOP_TYPE_RC_STYLE, NoopRcStyleClass))
+
+struct _NoopRcStyle
+{
+ GtkRcStyle parent_instance;
+};
+
+struct _NoopRcStyleClass
+{
+ GtkRcStyleClass parent_class;
+};
+
+void noop_rc_style_register_type (GTypeModule *module) G_GNUC_INTERNAL;
+void noop_rc_style_load_groups (NoopRcStyle * rcstyle) G_GNUC_INTERNAL;
+
+void noop_cleanup_everything (void) G_GNUC_INTERNAL;
+
+#endif /* __RCSTYLE_H */
diff --git a/monet-gtk/src/style.c b/monet-gtk/src/style.c
new file mode 100644
index 0000000..628a0eb
--- /dev/null
+++ b/monet-gtk/src/style.c
@@ -0,0 +1,375 @@
+/* Noop GTK engine: style.c
+ *
+ * Copyright (C) 2008 Benjamin Berg <benjamin sipsolutions net>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+*/
+
+#include <string.h>
+#include <gtk/gtk.h>
+#include "style.h"
+
+static GtkStyleClass *noop_style_parent_class;
+
+static void
+noop_draw_hline (GtkStyle *style,
+ GdkWindow *window,
+ GtkStateType state_type,
+ GdkRectangle *area,
+ GtkWidget *widget,
+ const gchar *detail,
+ gint x1,
+ gint x2,
+ gint y)
+{
+ noop_style_parent_class->draw_vline (style, window, state_type, area, widget, detail, x1, x2, y);
+}
+/*##################################*/
+
+static void
+noop_draw_vline (GtkStyle *style,
+ GdkWindow *window,
+ GtkStateType state_type,
+ GdkRectangle *area,
+ GtkWidget *widget,
+ const gchar *detail,
+ gint y1,
+ gint y2,
+ gint x)
+{
+ noop_style_parent_class->draw_vline (style, window, state_type, area, widget, detail, y1, y2, x);
+}
+/*##################################*/
+
+static void
+noop_draw_shadow (GtkStyle *style,
+ GdkWindow *window,
+ GtkStateType state_type,
+ GtkShadowType shadow_type,
+ GdkRectangle *area,
+ GtkWidget *widget,
+ const gchar *detail,
+ gint x,
+ gint y,
+ gint width,
+ gint height)
+{
+ noop_style_parent_class->draw_shadow (style, window, state_type, shadow_type, area, widget, detail, x, y, width, height);
+}
+/*##################################*/
+
+static void
+noop_draw_arrow (GtkStyle *style,
+ GdkWindow *window,
+ GtkStateType state_type,
+ GtkShadowType shadow_type,
+ GdkRectangle *area,
+ GtkWidget *widget,
+ const gchar *detail,
+ GtkArrowType arrow_type,
+ gboolean fill,
+ gint x,
+ gint y,
+ gint width,
+ gint height)
+{
+ noop_style_parent_class->draw_arrow (style, window, state_type, shadow_type, area, widget, detail, arrow_type, fill, x, y, width, height);
+}
+
+/*##################################*/
+
+static void
+noop_draw_box (GtkStyle *style,
+ GdkWindow *window,
+ GtkStateType state_type,
+ GtkShadowType shadow_type,
+ GdkRectangle *area,
+ GtkWidget *widget,
+ const gchar *detail,
+ gint x,
+ gint y,
+ gint width,
+ gint height)
+{
+ noop_style_parent_class->draw_box (style, window, state_type, shadow_type, area, widget, detail, x, y, width, height);
+}
+/*##################################*/
+
+static void
+noop_draw_flat_box (GtkStyle *style,
+ GdkWindow *window,
+ GtkStateType state_type,
+ GtkShadowType shadow_type,
+ GdkRectangle *area,
+ GtkWidget *widget,
+ const gchar *detail,
+ gint x,
+ gint y,
+ gint width,
+ gint height)
+{
+ noop_style_parent_class->draw_flat_box (style, window, state_type, shadow_type, area, widget, detail, x, y, width, height);
+}
+/*##################################*/
+
+static void
+noop_draw_check (GtkStyle *style,
+ GdkWindow *window,
+ GtkStateType state_type,
+ GtkShadowType shadow_type,
+ GdkRectangle *area,
+ GtkWidget *widget,
+ const gchar *detail,
+ gint x,
+ gint y,
+ gint width,
+ gint height)
+{
+ noop_style_parent_class->draw_check (style, window, state_type, shadow_type, area, widget, detail, x, y, width, height);
+}
+/*##################################*/
+
+static void
+noop_draw_option (GtkStyle *style,
+ GdkWindow *window,
+ GtkStateType state_type,
+ GtkShadowType shadow_type,
+ GdkRectangle *area,
+ GtkWidget *widget,
+ const gchar *detail,
+ gint x,
+ gint y,
+ gint width,
+ gint height)
+{
+ noop_style_parent_class->draw_option (style, window, state_type, shadow_type, area, widget, detail, x, y, width, height);
+}
+/*##################################*/
+
+static void
+noop_draw_tab (GtkStyle *style,
+ GdkWindow *window,
+ GtkStateType state_type,
+ GtkShadowType shadow_type,
+ GdkRectangle *area,
+ GtkWidget *widget,
+ const gchar *detail,
+ gint x,
+ gint y,
+ gint width,
+ gint height)
+{
+ noop_style_parent_class->draw_tab (style, window, state_type, shadow_type, area, widget, detail, x, y, width, height);
+}
+/*##################################*/
+
+static void
+noop_draw_shadow_gap (GtkStyle *style,
+ GdkWindow *window,
+ GtkStateType state_type,
+ GtkShadowType shadow_type,
+ GdkRectangle *area,
+ GtkWidget *widget,
+ const gchar *detail,
+ gint x,
+ gint y,
+ gint width,
+ gint height,
+ GtkPositionType gap_side,
+ gint gap_x,
+ gint gap_width)
+{
+ noop_style_parent_class->draw_shadow_gap (style, window, state_type, shadow_type, area, widget, detail, x, y, width, height, gap_side, gap_x, gap_width);
+}
+/*##################################*/
+
+static void
+noop_draw_box_gap(GtkStyle *style,
+ GdkWindow *window,
+ GtkStateType state_type,
+ GtkShadowType shadow_type,
+ GdkRectangle *area,
+ GtkWidget *widget,
+ const gchar *detail,
+ gint x,
+ gint y,
+ gint width,
+ gint height,
+ GtkPositionType gap_side,
+ gint gap_x,
+ gint gap_width)
+{
+ noop_style_parent_class->draw_shadow_gap (style, window, state_type, shadow_type, area, widget, detail, x, y, width, height, gap_side, gap_x, gap_width);
+}
+/*##################################*/
+
+static void
+noop_draw_extension (GtkStyle *style,
+ GdkWindow *window,
+ GtkStateType state_type,
+ GtkShadowType shadow_type,
+ GdkRectangle *area,
+ GtkWidget *widget,
+ const gchar *detail,
+ gint x,
+ gint y,
+ gint width,
+ gint height,
+ GtkPositionType gap_side)
+{
+ noop_style_parent_class->draw_extension (style, window, state_type, shadow_type, area, widget, detail, x, y, width, height, gap_side);
+}
+/*##################################*/
+
+static void
+noop_draw_focus (GtkStyle *style,
+ GdkWindow *window,
+ GtkStateType state_type,
+ GdkRectangle *area,
+ GtkWidget *widget,
+ const gchar *detail,
+ gint x,
+ gint y,
+ gint width,
+ gint height)
+{
+ noop_style_parent_class->draw_focus (style, window, state_type, area, widget, detail, x, y, width, height);
+}
+/*##################################*/
+
+static void
+noop_draw_slider (GtkStyle *style,
+ GdkWindow *window,
+ GtkStateType state_type,
+ GtkShadowType shadow_type,
+ GdkRectangle *area,
+ GtkWidget *widget,
+ const gchar *detail,
+ gint x,
+ gint y,
+ gint width,
+ gint height,
+ GtkOrientation orientation)
+{
+ noop_style_parent_class->draw_slider (style, window, state_type, shadow_type, area, widget, detail, x, y, width, height, orientation);
+}
+/*##################################*/
+
+static void
+noop_draw_handle (GtkStyle *style,
+ GdkWindow *window,
+ GtkStateType state_type,
+ GtkShadowType shadow_type,
+ GdkRectangle *area,
+ GtkWidget *widget,
+ const gchar *detail,
+ gint x,
+ gint y,
+ gint width,
+ gint height,
+ GtkOrientation orientation)
+{
+ noop_style_parent_class->draw_handle (style, window, state_type, shadow_type, area, widget, detail, x, y, width, height, orientation);
+}
+/*##################################*/
+
+static void
+noop_draw_expander (GtkStyle *style,
+ GdkWindow *window,
+ GtkStateType state_type,
+ GdkRectangle *area,
+ GtkWidget *widget,
+ const gchar *detail,
+ gint x,
+ gint y,
+ GtkExpanderStyle expander_style)
+{
+ noop_style_parent_class->draw_expander (style, window, state_type, area, widget, detail, x, y, expander_style);
+}
+/*##################################*/
+
+static void
+noop_draw_resize_grip (GtkStyle *style,
+ GdkWindow *window,
+ GtkStateType state_type,
+ GdkRectangle *area,
+ GtkWidget *widget,
+ const gchar *detail,
+ GdkWindowEdge edge,
+ gint x,
+ gint y,
+ gint width,
+ gint height)
+{
+ noop_style_parent_class->draw_resize_grip (style, window, state_type, area, widget, detail, edge, x, y, width, height);
+}
+
+
+static void
+noop_style_class_init (NoopStyleClass * klass)
+{
+ GtkStyleClass *style_class = GTK_STYLE_CLASS (klass);
+
+ noop_style_parent_class = g_type_class_peek_parent (klass);
+
+ /* All functions that have prototypes here are not commented out. */
+ style_class->draw_hline = noop_draw_hline;
+ style_class->draw_vline = noop_draw_vline;
+ style_class->draw_shadow = noop_draw_shadow;
+ style_class->draw_arrow = noop_draw_arrow;
+ style_class->draw_box = noop_draw_box;
+ style_class->draw_flat_box = noop_draw_flat_box;
+ style_class->draw_check = noop_draw_check;
+ style_class->draw_option = noop_draw_option;
+ style_class->draw_tab = noop_draw_tab;
+ style_class->draw_shadow_gap = noop_draw_shadow_gap;
+ style_class->draw_box_gap = noop_draw_box_gap;
+ style_class->draw_extension = noop_draw_extension;
+ style_class->draw_focus = noop_draw_focus;
+ style_class->draw_slider = noop_draw_slider;
+ style_class->draw_handle = noop_draw_handle;
+ style_class->draw_expander = noop_draw_expander;
+ style_class->draw_resize_grip = noop_draw_resize_grip;
+ /*style_class->render_icon = noop_render_icon;
+ style_class->draw_layout = noop_draw_layout; */
+
+ /* There are some more functions in GtkStyleClass that may be overridden.
+ * See gtkstyle.h in the GTK+ sources for a list and help for most of them. */
+}
+
+void
+noop_style_register_type (GTypeModule * module)
+{
+ if (!noop_type_style) {
+ static const GTypeInfo object_info =
+ {
+ sizeof (NoopStyleClass),
+ (GBaseInitFunc) NULL,
+ (GBaseFinalizeFunc) NULL,
+ (GClassInitFunc) noop_style_class_init,
+ NULL, /* class_finalize */
+ NULL, /* class_data */
+ sizeof (NoopStyle),
+ 0, /* n_preallocs */
+ (GInstanceInitFunc) NULL,
+ NULL
+ };
+
+ noop_type_style = g_type_module_register_type (module,
+ GTK_TYPE_STYLE,
+ "NoopStyle",
+ &object_info, 0);
+ }
+}
diff --git a/monet-gtk/src/style.h b/monet-gtk/src/style.h
new file mode 100644
index 0000000..ae7abd7
--- /dev/null
+++ b/monet-gtk/src/style.h
@@ -0,0 +1,46 @@
+/* noop GTK engine: style.h
+ *
+ * Copyright (C) 2008 Benjamin Berg <benjamin sipsolutions net>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+*/
+
+#include <gtk/gtkstyle.h>
+
+typedef struct _NoopStyle NoopStyle;
+typedef struct _NoopStyleClass NoopStyleClass;
+
+
+GType noop_type_style G_GNUC_INTERNAL;
+
+#define NOOP_TYPE_STYLE noop_type_style
+#define NOOP_STYLE(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), NOOP_TYPE_STYLE, NoopStyle))
+#define NOOP_STYLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), NOOP_TYPE_STYLE, NoopStyleClass))
+#define NOOP_IS_STYLE(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), NOOP_TYPE_STYLE))
+#define NOOP_IS_STYLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), NOOP_TYPE_STYLE))
+#define NOOP_STYLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), NOOP_TYPE_STYLE, NoopStyleClass))
+
+struct _NoopStyle
+{
+ GtkStyle parent_instance;
+};
+
+struct _NoopStyleClass
+{
+ GtkStyleClass parent_class;
+};
+
+void noop_style_register_type (GTypeModule *module) G_GNUC_INTERNAL;
+
diff --git a/monet-gtk/test/Makefile.am b/monet-gtk/test/Makefile.am
new file mode 100644
index 0000000..44e33e6
--- /dev/null
+++ b/monet-gtk/test/Makefile.am
@@ -0,0 +1,116 @@
+# This is mostly the Makefile.am from gtk-engines, but modified in some places
+# The name of the engine we want to test.
+# This can be anything really, but needs to fit with the gtkrc.
+BUILD_ENGINES=noop
+
+# Also modified is the code to link the engine, the list of gtkrcs
+# and the engine filtering.
+
+# Initilize TESTS and XFAIL_TESTS
+TESTS =
+XFAIL_TESTS =
+
+GTKRCS = \
+ gtkrcs/buildin \
+ gtkrcs/noop
+
+EXTRA_DIST = exported torture runinx valgrind-suppressions $(GTKRCS)
+
+
+EXTRA_PROGRAMS = torturetest
+torturetest_CFLAGS = $(GTK_CFLAGS)
+torturetest_LDFLAGS = $(GTK_LIBS)
+
+
+
+# Setup enviroment variables for GTK+
+# ie. add $(top_builddir)/tests to the module searchpath, so that GTK+ finds
+# the engines in tests/engines
+# Also set the debug-blocks debugging of g_slice, will be overridden during the valgrind test.
+# Unset GTK_MODULES to not load a11y stuff or similar.
+TESTS_ENVIRONMENT=GTK_PATH="." G_SLICE=debug-blocks GTK_MODULES=""
+
+VALGRIND_COMMAND=valgrind --leak-resolution=high --leak-check=full --suppressions=$(srcdir)/valgrind-suppressions --num-callers=20 --log-file=valgrind-logs/THEME
+# set some flags to make glib more valgrind friendly
+VALGRIND_ENV=G_SLICE=always-malloc G_DEBUG=gc-friendly,resident-modules
+
+#################################################################
+#################################################################
+
+#############################################################
+# Exported Symbols Test - Tests all engines unconditionally
+#############################################################
+# Prefix with exported_
+EXPORTED_SYMBOLS_TESTS = $(patsubst %,exported_%,$(BUILD_ENGINES))
+
+TESTS += $(EXPORTED_SYMBOLS_TESTS)
+
+
+#############################################################
+# Torture Test
+#############################################################
+# Prefix with torture_
+TORTURE_TEST_TESTS = torture_buildin $(patsubst %,torture_%,$(BUILD_ENGINES))
+
+# Add TORTURE_TEST_ENGINES to list of tests
+TESTS += $(TORTURE_TEST_TESTS)
+
+# Possible other tests:
+# - An extensive theme switch tests that loads/unloads the engine
+# multiple times. A requirement here is that multiple rc styles need
+# to be merged. (ie. the test should find the recently fixed smooth
+# memory corruption)
+# - RC style merging? Don't think there is a way to do that.
+# - Maybe a visual test that looks for visible changes? That way one can
+# check that a modification does not break anything. (eg. when doing
+# code cleanups)
+# - I would love to have some coverage statistics for the torture test
+# anyone knows how to do that?
+
+#################################################################
+#################################################################
+
+engines:
+ -rm -rf engines
+ mkdir engines
+ cd engines; \
+ for engine in $(BUILD_ENGINES); do \
+ # Fail if the engine does not exist. \
+ # Maybe we should force a build or something? \
+ if [ ! -f ../$(top_builddir)/src/.libs/*.so ]; then \
+ exit 1; \
+ fi; \
+ ln -s ../$(top_builddir)/src/.libs/*.so lib$$engine.so ; \
+ done;
+
+CLEANFILES = \
+ torture_buildin-failed \
+ $(EXTRA_PROGRAMS)
+
+clean-local:
+ -$(RM) torture_*
+ -$(RM) exported_*
+ -$(RM) -r engines
+ -$(RM) -r valgrind-logs
+ -$(RM) -r symbols
+
+valgrind-logs:
+ -$(RM) -r valgrind-logs
+ mkdir valgrind-logs
+
+symbols:
+ mkdir symbols
+
+torture_%: torture torturetest engines
+ cp $(srcdir)/torture $@
+
+exported_%: exported engines symbols
+ cp $(srcdir)/exported $@
+
+check-valgrind: valgrind-logs
+ $(MAKE) $(AM_MAKEFLAGS) check TESTS_ENVIRONMENT="$(TESTS_ENVIRONMENT) $(VALGRIND_ENV) EXEC_WRAPPER=\"$(VALGRIND_COMMAND)\""
+
+test:
+ @$(MAKE) $(AM_MAKEFLAGS) check
+
+.PHONY: engines valgrind-logs
diff --git a/monet-gtk/test/Makefile.in b/monet-gtk/test/Makefile.in
new file mode 100644
index 0000000..376218e
--- /dev/null
+++ b/monet-gtk/test/Makefile.in
@@ -0,0 +1,628 @@
+# Makefile.in generated by automake 1.8.5 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004 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@
+SOURCES = torturetest.c
+
+srcdir = @srcdir@
+top_srcdir = @top_srcdir@
+VPATH = @srcdir@
+pkgdatadir = $(datadir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+top_builddir = ..
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+INSTALL = @INSTALL@
+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 = :
+host_triplet = @host@
+EXTRA_PROGRAMS = torturetest$(EXEEXT)
+subdir = test
+DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+ $(ACLOCAL_M4)
+mkinstalldirs = $(mkdir_p)
+CONFIG_CLEAN_FILES =
+torturetest_SOURCES = torturetest.c
+torturetest_OBJECTS = torturetest-torturetest.$(OBJEXT)
+torturetest_LDADD = $(LDADD)
+DEFAULT_INCLUDES = -I. -I$(srcdir)
+depcomp = $(SHELL) $(top_srcdir)/ac-helpers/depcomp
+am__depfiles_maybe = depfiles
+ AMDEP_TRUE@DEP_FILES = ./$(DEPDIR)/torturetest-torturetest.Po
+COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
+ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) \
+ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
+ $(AM_CFLAGS) $(CFLAGS)
+CCLD = $(CC)
+LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
+ $(AM_LDFLAGS) $(LDFLAGS) -o $@
+SOURCES = torturetest.c
+DIST_SOURCES = torturetest.c
+ETAGS = etags
+CTAGS = ctags
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = @ACLOCAL@
+AMDEP_FALSE = @AMDEP_FALSE@
+AMDEP_TRUE = @AMDEP_TRUE@
+AMTAR = @AMTAR@
+AR = @AR@
+AS = @AS@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+CC = @CC@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CXX = @CXX@
+CXXCPP = @CXXCPP@
+CXXDEPMODE = @CXXDEPMODE@
+CXXFLAGS = @CXXFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+DLLTOOL = @DLLTOOL@
+ECHO = @ECHO@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+EXEEXT = @EXEEXT@
+F77 = @F77@
+FFLAGS = @FFLAGS@
+GREP = @GREP@
+GTK_CFLAGS = @GTK_CFLAGS@
+GTK_LIBS = @GTK_LIBS@
+GTK_VERSION = @GTK_VERSION@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+LDFLAGS = @LDFLAGS@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LN_S = @LN_S@
+LTLIBOBJS = @LTLIBOBJS@
+MAKEINFO = @MAKEINFO@
+OBJDUMP = @OBJDUMP@
+OBJEXT = @OBJEXT@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PKG_CONFIG = @PKG_CONFIG@
+RANLIB = @RANLIB@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+STRIP = @STRIP@
+VERSION = @VERSION@
+YACC = @YACC@
+YFLAGS = @YFLAGS@
+ac_ct_CC = @ac_ct_CC@
+ac_ct_CXX = @ac_ct_CXX@
+ac_ct_F77 = @ac_ct_F77@
+am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
+am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
+am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
+am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
+am__include = @am__include@
+am__leading_dot = @am__leading_dot@
+am__quote = @am__quote@
+bindir = @bindir@
+build = @build@
+build_alias = @build_alias@
+build_cpu = @build_cpu@
+build_os = @build_os@
+build_vendor = @build_vendor@
+datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
+exec_prefix = @exec_prefix@
+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@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = @localedir@
+localstatedir = @localstatedir@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+oldincludedir = @oldincludedir@
+pdfdir = @pdfdir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+psdir = @psdir@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
+
+# This is mostly the Makefile.am from gtk-engines, but modified in some places
+# The name of the engine we want to test.
+# This can be anything really, but needs to fit with the gtkrc.
+BUILD_ENGINES = noop
+
+# Also modified is the code to link the engine, the list of gtkrcs
+# and the engine filtering.
+
+# Initilize TESTS and XFAIL_TESTS
+
+# Add TORTURE_TEST_ENGINES to list of tests
+TESTS = $(EXPORTED_SYMBOLS_TESTS) $(TORTURE_TEST_TESTS)
+XFAIL_TESTS =
+GTKRCS = \
+ gtkrcs/buildin \
+ gtkrcs/noop
+
+EXTRA_DIST = exported torture runinx valgrind-suppressions $(GTKRCS)
+torturetest_CFLAGS = $(GTK_CFLAGS)
+torturetest_LDFLAGS = $(GTK_LIBS)
+
+# Setup enviroment variables for GTK+
+# ie. add $(top_builddir)/tests to the module searchpath, so that GTK+ finds
+# the engines in tests/engines
+# Also set the debug-blocks debugging of g_slice, will be overridden during the valgrind test.
+# Unset GTK_MODULES to not load a11y stuff or similar.
+TESTS_ENVIRONMENT = GTK_PATH="." G_SLICE=debug-blocks GTK_MODULES=""
+VALGRIND_COMMAND = valgrind --leak-resolution=high --leak-check=full --suppressions=$(srcdir)/valgrind-suppressions --num-callers=20 --log-file=valgrind-logs/THEME
+# set some flags to make glib more valgrind friendly
+VALGRIND_ENV = G_SLICE=always-malloc G_DEBUG=gc-friendly,resident-modules
+
+#################################################################
+#################################################################
+
+#############################################################
+# Exported Symbols Test - Tests all engines unconditionally
+#############################################################
+# Prefix with exported_
+EXPORTED_SYMBOLS_TESTS = $(patsubst %,exported_%,$(BUILD_ENGINES))
+
+#############################################################
+# Torture Test
+#############################################################
+# Prefix with torture_
+TORTURE_TEST_TESTS = torture_buildin $(patsubst %,torture_%,$(BUILD_ENGINES))
+CLEANFILES = \
+ torture_buildin-failed \
+ $(EXTRA_PROGRAMS)
+
+all: all-am
+
+.SUFFIXES:
+.SUFFIXES: .c .lo .o .obj
+$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
+ @for dep in $?; do \
+ case '$(am__configure_deps)' in \
+ *$$dep*) \
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
+ && exit 0; \
+ exit 1;; \
+ esac; \
+ done; \
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu test/Makefile'; \
+ cd $(top_srcdir) && \
+ $(AUTOMAKE) --gnu test/Makefile
+.PRECIOUS: 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__depfiles_maybe)'; \
+ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+ esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure: $(am__configure_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4): $(am__aclocal_m4_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+torturetest$(EXEEXT): $(torturetest_OBJECTS) $(torturetest_DEPENDENCIES)
+ @rm -f torturetest$(EXEEXT)
+ $(LINK) $(torturetest_LDFLAGS) $(torturetest_OBJECTS) $(torturetest_LDADD) $(LIBS)
+
+mostlyclean-compile:
+ -rm -f *.$(OBJEXT)
+
+distclean-compile:
+ -rm -f *.tab.c
+
+ AMDEP_TRUE@@am__include@ @am__quote /$(DEPDIR)/torturetest-torturetest Po am__quote@
+
+.c.o:
+ am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
+ am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
+ AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+ AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
+ AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+ am__fastdepCC_FALSE@ $(COMPILE) -c $<
+
+.c.obj:
+ am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
+ am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
+ AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+ AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
+ AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+ am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
+
+.c.lo:
+ am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
+ am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
+ AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
+ AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Plo' tmpdepfile='$(DEPDIR)/$*.TPlo' @AMDEPBACKSLASH@
+ AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+ am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
+
+torturetest-torturetest.o: torturetest.c
+ am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(torturetest_CFLAGS) $(CFLAGS) -MT torturetest-torturetest.o -MD -MP -MF "$(DEPDIR)/torturetest-torturetest.Tpo" -c -o torturetest-torturetest.o `test -f 'torturetest.c' || echo '$(srcdir)/'`torturetest.c; \
+ am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/torturetest-torturetest.Tpo" "$(DEPDIR)/torturetest-torturetest.Po"; else rm -f "$(DEPDIR)/torturetest-torturetest.Tpo"; exit 1; fi
+ AMDEP_TRUE@@am__fastdepCC_FALSE@ source='torturetest.c' object='torturetest-torturetest.o' libtool=no @AMDEPBACKSLASH@
+ AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/torturetest-torturetest.Po' tmpdepfile='$(DEPDIR)/torturetest-torturetest.TPo' @AMDEPBACKSLASH@
+ AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+ am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(torturetest_CFLAGS) $(CFLAGS) -c -o torturetest-torturetest.o `test -f 'torturetest.c' || echo '$(srcdir)/'`torturetest.c
+
+torturetest-torturetest.obj: torturetest.c
+ am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(torturetest_CFLAGS) $(CFLAGS) -MT torturetest-torturetest.obj -MD -MP -MF "$(DEPDIR)/torturetest-torturetest.Tpo" -c -o torturetest-torturetest.obj `if test -f 'torturetest.c'; then $(CYGPATH_W) 'torturetest.c'; else $(CYGPATH_W) '$(srcdir)/torturetest.c'; fi`; \
+ am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/torturetest-torturetest.Tpo" "$(DEPDIR)/torturetest-torturetest.Po"; else rm -f "$(DEPDIR)/torturetest-torturetest.Tpo"; exit 1; fi
+ AMDEP_TRUE@@am__fastdepCC_FALSE@ source='torturetest.c' object='torturetest-torturetest.obj' libtool=no @AMDEPBACKSLASH@
+ AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/torturetest-torturetest.Po' tmpdepfile='$(DEPDIR)/torturetest-torturetest.TPo' @AMDEPBACKSLASH@
+ AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+ am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(torturetest_CFLAGS) $(CFLAGS) -c -o torturetest-torturetest.obj `if test -f 'torturetest.c'; then $(CYGPATH_W) 'torturetest.c'; else $(CYGPATH_W) '$(srcdir)/torturetest.c'; fi`
+
+torturetest-torturetest.lo: torturetest.c
+ am__fastdepCC_TRUE@ if $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(torturetest_CFLAGS) $(CFLAGS) -MT torturetest-torturetest.lo -MD -MP -MF "$(DEPDIR)/torturetest-torturetest.Tpo" -c -o torturetest-torturetest.lo `test -f 'torturetest.c' || echo '$(srcdir)/'`torturetest.c; \
+ am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/torturetest-torturetest.Tpo" "$(DEPDIR)/torturetest-torturetest.Plo"; else rm -f "$(DEPDIR)/torturetest-torturetest.Tpo"; exit 1; fi
+ AMDEP_TRUE@@am__fastdepCC_FALSE@ source='torturetest.c' object='torturetest-torturetest.lo' libtool=yes @AMDEPBACKSLASH@
+ AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/torturetest-torturetest.Plo' tmpdepfile='$(DEPDIR)/torturetest-torturetest.TPlo' @AMDEPBACKSLASH@
+ AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+ am__fastdepCC_FALSE@ $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(torturetest_CFLAGS) $(CFLAGS) -c -o torturetest-torturetest.lo `test -f 'torturetest.c' || echo '$(srcdir)/'`torturetest.c
+
+mostlyclean-libtool:
+ -rm -f *.lo
+
+clean-libtool:
+ -rm -rf .libs _libs
+
+distclean-libtool:
+ -rm -f libtool
+uninstall-info-am:
+
+ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) ' { files[$$0] = 1; } \
+ END { for (i in files) print i; }'`; \
+ mkid -fID $$unique
+tags: TAGS
+
+TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
+ $(TAGS_FILES) $(LISP)
+ tags=; \
+ here=`pwd`; \
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) ' { files[$$0] = 1; } \
+ END { for (i in files) print i; }'`; \
+ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
+ test -n "$$unique" || unique=$$empty_fix; \
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+ $$tags $$unique; \
+ fi
+ctags: CTAGS
+CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
+ $(TAGS_FILES) $(LISP)
+ tags=; \
+ here=`pwd`; \
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) ' { files[$$0] = 1; } \
+ END { for (i in files) print i; }'`; \
+ test -z "$(CTAGS_ARGS)$$tags$$unique" \
+ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
+ $$tags $$unique
+
+GTAGS:
+ here=`$(am__cd) $(top_builddir) && pwd` \
+ && cd $(top_srcdir) \
+ && gtags -i $(GTAGS_ARGS) $$here
+
+distclean-tags:
+ -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
+
+check-TESTS: $(TESTS)
+ @failed=0; all=0; xfail=0; xpass=0; skip=0; \
+ srcdir=$(srcdir); export srcdir; \
+ list='$(TESTS)'; \
+ if test -n "$$list"; then \
+ for tst in $$list; do \
+ if test -f ./$$tst; then dir=./; \
+ elif test -f $$tst; then dir=; \
+ else dir="$(srcdir)/"; fi; \
+ if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
+ all=`expr $$all + 1`; \
+ case " $(XFAIL_TESTS) " in \
+ *" $$tst "*) \
+ xpass=`expr $$xpass + 1`; \
+ failed=`expr $$failed + 1`; \
+ echo "XPASS: $$tst"; \
+ ;; \
+ *) \
+ echo "PASS: $$tst"; \
+ ;; \
+ esac; \
+ elif test $$? -ne 77; then \
+ all=`expr $$all + 1`; \
+ case " $(XFAIL_TESTS) " in \
+ *" $$tst "*) \
+ xfail=`expr $$xfail + 1`; \
+ echo "XFAIL: $$tst"; \
+ ;; \
+ *) \
+ failed=`expr $$failed + 1`; \
+ echo "FAIL: $$tst"; \
+ ;; \
+ esac; \
+ else \
+ skip=`expr $$skip + 1`; \
+ echo "SKIP: $$tst"; \
+ fi; \
+ done; \
+ if test "$$failed" -eq 0; then \
+ if test "$$xfail" -eq 0; then \
+ banner="All $$all tests passed"; \
+ else \
+ banner="All $$all tests behaved as expected ($$xfail expected failures)"; \
+ fi; \
+ else \
+ if test "$$xpass" -eq 0; then \
+ banner="$$failed of $$all tests failed"; \
+ else \
+ banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \
+ fi; \
+ fi; \
+ dashes="$$banner"; \
+ skipped=""; \
+ if test "$$skip" -ne 0; then \
+ skipped="($$skip tests were not run)"; \
+ test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
+ dashes="$$skipped"; \
+ fi; \
+ report=""; \
+ if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
+ report="Please report to $(PACKAGE_BUGREPORT)"; \
+ test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
+ dashes="$$report"; \
+ fi; \
+ dashes=`echo "$$dashes" | sed s/./=/g`; \
+ echo "$$dashes"; \
+ echo "$$banner"; \
+ test -z "$$skipped" || echo "$$skipped"; \
+ test -z "$$report" || echo "$$report"; \
+ echo "$$dashes"; \
+ test "$$failed" -eq 0; \
+ else :; fi
+
+distdir: $(DISTFILES)
+ $(mkdir_p) $(distdir)/gtkrcs
+ @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
+ list='$(DISTFILES)'; for file in $$list; do \
+ case $$file in \
+ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
+ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
+ esac; \
+ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
+ if test "$$dir" != "$$file" && test "$$dir" != "."; then \
+ dir="/$$dir"; \
+ $(mkdir_p) "$(distdir)$$dir"; \
+ else \
+ dir=''; \
+ fi; \
+ if test -d $$d/$$file; then \
+ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
+ fi; \
+ cp -pR $$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
+ $(MAKE) $(AM_MAKEFLAGS) check-TESTS
+check: check-am
+all-am: Makefile
+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:
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ `test -z '$(STRIP)' || \
+ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
+mostlyclean-generic:
+
+clean-generic:
+ -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
+
+distclean-generic:
+ -rm -f $(CONFIG_CLEAN_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 mostlyclean-am
+
+distclean: distclean-am
+ -rm -rf ./$(DEPDIR)
+ -rm -f Makefile
+distclean-am: clean-am distclean-compile distclean-generic \
+ distclean-libtool distclean-tags
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+info: info-am
+
+info-am:
+
+install-data-am:
+
+install-exec-am:
+
+install-info: install-info-am
+
+install-man:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+ -rm -rf ./$(DEPDIR)
+ -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: uninstall-info-am
+
+.PHONY: CTAGS GTAGS all all-am check check-TESTS check-am clean \
+ clean-generic clean-libtool clean-local ctags 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-exec \
+ install-exec-am install-info install-info-am install-man \
+ 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 uninstall uninstall-am \
+ uninstall-info-am
+
+
+# Possible other tests:
+# - An extensive theme switch tests that loads/unloads the engine
+# multiple times. A requirement here is that multiple rc styles need
+# to be merged. (ie. the test should find the recently fixed smooth
+# memory corruption)
+# - RC style merging? Don't think there is a way to do that.
+# - Maybe a visual test that looks for visible changes? That way one can
+# check that a modification does not break anything. (eg. when doing
+# code cleanups)
+# - I would love to have some coverage statistics for the torture test
+# anyone knows how to do that?
+
+#################################################################
+#################################################################
+
+engines:
+ -rm -rf engines
+ mkdir engines
+ cd engines; \
+ for engine in $(BUILD_ENGINES); do \
+ # Fail if the engine does not exist. \
+ # Maybe we should force a build or something? \
+ if [ ! -f ../$(top_builddir)/src/.libs/*.so ]; then \
+ exit 1; \
+ fi; \
+ ln -s ../$(top_builddir)/src/.libs/*.so lib$$engine.so ; \
+ done;
+
+clean-local:
+ -$(RM) torture_*
+ -$(RM) exported_*
+ -$(RM) -r engines
+ -$(RM) -r valgrind-logs
+ -$(RM) -r symbols
+
+valgrind-logs:
+ -$(RM) -r valgrind-logs
+ mkdir valgrind-logs
+
+symbols:
+ mkdir symbols
+
+torture_%: torture torturetest engines
+ cp $(srcdir)/torture $@
+
+exported_%: exported engines symbols
+ cp $(srcdir)/exported $@
+
+check-valgrind: valgrind-logs
+ $(MAKE) $(AM_MAKEFLAGS) check TESTS_ENVIRONMENT="$(TESTS_ENVIRONMENT) $(VALGRIND_ENV) EXEC_WRAPPER=\"$(VALGRIND_COMMAND)\""
+
+test:
+ @$(MAKE) $(AM_MAKEFLAGS) check
+
+.PHONY: engines valgrind-logs
+# 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/monet-gtk/test/exported b/monet-gtk/test/exported
new file mode 100755
index 0000000..324f18f
--- /dev/null
+++ b/monet-gtk/test/exported
@@ -0,0 +1,25 @@
+#! /bin/sh
+
+ALLOWED_SYMBOLS="\(g_module_check_init\|theme_create_rc_style\|theme_exit\|theme_init\)"
+
+# exit with status 77 if nm does not exist
+which nm >/dev/null || exit 77
+
+ENGINE="`basename $0 | cut -d '_' -f 2`"
+ENGINE_FILE="engines/lib$ENGINE.so"
+
+nm -gD --defined-only $ENGINE_FILE | cut -d ' ' -f 2,3 | cut -d ' ' -f 2 | grep -v '^_' | grep -v "$ALLOWED_SYMBOLS" >symbols/$ENGINE
+
+if [ -s symbols/$ENGINE ]; then
+ exit 1;
+else
+ if [ -f symbols/$ENGINE ]; then
+ # No point in keeping an empty file around
+ rm symbols/$ENGINE
+ else
+ # Something wen't wrong, there is no file?!?
+ # This should never happen ...
+ exit 1
+ fi
+fi
+
diff --git a/monet-gtk/test/gtkrcs/buildin b/monet-gtk/test/gtkrcs/buildin
new file mode 100644
index 0000000..ba98d45
--- /dev/null
+++ b/monet-gtk/test/gtkrcs/buildin
@@ -0,0 +1,12 @@
+
+style "default"
+{
+ # Set some style properties to see if the engine reads them
+ # correctly (ie. correct memory management)
+ GtkWidget::focus-line-pattern = "\1\1"
+ GtkOptionMenu::indicator-spacing = { 1, 1, 1, 1 }
+ GtkOptionMenu::indicator-size = { 1, 1 }
+ engine "" {}
+}
+
+class "GtkWidget" style "default"
\ No newline at end of file
diff --git a/monet-gtk/test/gtkrcs/noop b/monet-gtk/test/gtkrcs/noop
new file mode 100644
index 0000000..d6c88a2
--- /dev/null
+++ b/monet-gtk/test/gtkrcs/noop
@@ -0,0 +1,12 @@
+
+style "default"
+{
+ # Set some style properties to see if the engine reads them
+ # correctly (ie. correct memory management)
+ GtkWidget::focus-line-pattern = "\1\1"
+ GtkOptionMenu::indicator-spacing = { 1, 1, 1, 1 }
+ GtkOptionMenu::indicator-size = { 1, 1 }
+ engine "noop" {}
+}
+
+class "GtkWidget" style "default"
\ No newline at end of file
diff --git a/monet-gtk/test/runinx b/monet-gtk/test/runinx
new file mode 100755
index 0000000..612caa8
--- /dev/null
+++ b/monet-gtk/test/runinx
@@ -0,0 +1,42 @@
+#! /bin/sh
+
+# This script is a wrapper to start an X server for tests.
+# there may be better ways to do this, but I don't know any ...
+
+if [ "$DISPLAY" != "" ]; then
+ # Just start everything, and exit after that
+ "$@"
+ exit $?
+fi
+
+for port in `seq 20 1000`; do
+ # Check if there is a lock file, if yes test if the server is running
+ if [ -f /tmp/.X$port-lock ]; then
+ # Test if there is anything running with the PID
+ pid="`cat /tmp/.X$port-lock | sed 's/ //g'`"
+
+ if [ "`ps -e | grep -c ^\\ *$pid`" = "0" ]; then
+ # Remove the stale lock file
+ rm -f /tmp/.X$port-lock
+ break
+ fi
+ else
+ break
+ fi
+done
+
+
+export DISPLAY=:$port
+
+# Start the Xvfb server -- try to ...
+# We need 24bpp as cairo does not support everything
+Xvfb $DISPLAY -ac -screen 0 1280x1024x24 & 2>/dev/null >/dev/null
+xvfb_pid=$!
+
+"$@"
+result="$?"
+
+kill $xvfb_pid 2>/dev/null >/dev/null
+
+exit $result
+
diff --git a/monet-gtk/test/torture b/monet-gtk/test/torture
new file mode 100755
index 0000000..f221172
--- /dev/null
+++ b/monet-gtk/test/torture
@@ -0,0 +1,62 @@
+#! /bin/sh
+
+ENGINE="`basename $0 | cut -d '_' -f 2`"
+
+# Do the test for every file starting with the prefix
+
+FAILED="0"
+
+for RC_FILE in $srcdir/gtkrcs/$ENGINE*; do
+ test -f $RC_FILE || continue
+ something_tested="1"
+
+ export GTK2_RC_FILES=$RC_FILE
+ RC_FILE_BASENAME="`basename $RC_FILE`"
+ MY_EXEC_WRAPPER="`echo "$EXEC_WRAPPER" | sed s/THEME/$RC_FILE_BASENAME/`"
+
+ ./runinx $MY_EXEC_WRAPPER ./torturetest 2>/dev/null >/dev/null
+
+ if [ "$?" != "0" ]; then
+ FAILED=1;
+ fi
+done
+
+if [ "x$something_tested" = "x" ]; then
+ echo "Failed to run test for \"$ENGINE\" because no gtkrc files were found"
+ exit 77;
+fi
+
+if [ "$FAILED" != "0" ]; then
+ # This is pretty stupid, but I don't know of a better way to handle it
+ # We need to make sure that if buildin failes, all other failures don't
+ # cause an overall test failure (ie. exit 77). I know this is stupid ...
+ # Otherwise "make check" will _always_ fail with a broken GTK+.
+ if [ "$ENGINE" = "buildin" ]; then
+ echo "WARNING: The GTK+ buildin theme failed the torture test!"
+ echo "WARNING: "
+ echo "WARNING: As the other engines may fall back to the buildin theme, other tests"
+ echo "WARNING: may fail in the buildin theme that we don't control."
+ echo "WARNING: The other tests will be run, but in case of failure SKIP instead of FAIL."
+ echo "WARNING: This way 'make check' will not fail even with a broken GTK+."
+ echo "WARNING:"
+ echo "WARNING: It may also mean that there is just no X server to run the test on."
+ echo "WARNING: (and starting an Xvfb server failed)"
+ echo
+ touch torture_buildin-failed
+ exit 77
+ else
+ # If buildin-failed, then exit with status 77
+ if [ -f torture_buildin-failed ]; then
+ exit 77
+ else
+ exit 1
+ fi
+ fi
+else
+ # Remove the torture_buildin-failed file on success
+ if [ "$ENGINE" = "buildin" ]; then
+ test -f torture_buildin-failed && rm -f torture_buildin-failed
+ fi
+
+ exit 0
+fi
diff --git a/monet-gtk/test/torturetest.c b/monet-gtk/test/torturetest.c
new file mode 100644
index 0000000..a7aef39
--- /dev/null
+++ b/monet-gtk/test/torturetest.c
@@ -0,0 +1,706 @@
+/* Torture test program for GTK+ engines.
+ *
+ * Copyright (C) 2007 Benjamin Berg <benjamin sipsolutions net>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+*/
+
+
+#include <gtk/gtk.h>
+#include <string.h>
+#include <stdlib.h>
+
+typedef enum {
+ WIDGET_NULL,
+ WIDGET_SCROLLBAR,
+ WIDGET_TOGGLE_BUTTON,
+ WIDGET_STATUS_BAR,
+ WIDGET_TREE_VIEW,
+ WIDGET_TREE_VIEW_HEADER,
+ WIDGET_SCALE,
+ WIDGET_PROGRESS_BAR,
+ WIDGET_MENUBAR,
+ WIDGET_MENUBAR_ITEM,
+ WIDGET_OPTION_MENU,
+ WIDGET_TOOLBAR,
+ WIDGET_DEFAULT_BUTTON
+} WidgetType;
+
+#define WIDGET_COUNT (WIDGET_DEFAULT_BUTTON+1)
+#define WIDGET_ALL (-1)
+
+
+GType
+widget_type_get_type (void)
+{
+ static GType type = 0;
+ if (type == 0) {
+ static const GEnumValue values[] = {
+ { WIDGET_NULL, "WIDGET_NULL", "NULL" },
+ { WIDGET_SCROLLBAR, "WIDGET_SCROLLBAR", "GtkScrollBar" },
+ { WIDGET_TOGGLE_BUTTON, "WIDGET_TOGGLE_BUTTON", "GtkToggleButton" },
+ { WIDGET_STATUS_BAR, "WIDGET_STATUS_BAR", "GtkStatusBar" },
+ { WIDGET_TREE_VIEW, "WIDGET_TREE_VIEW", "GtkTreeView" },
+ { WIDGET_TREE_VIEW_HEADER, "WIDGET_TREE_VIEW_HEADER", "GtkTreeView-header" },
+ { WIDGET_SCALE, "WIDGET_SCALE", "GtkScale" },
+ { WIDGET_PROGRESS_BAR, "WIDGET_PROGRESS_BAR", "GtkProgessBar" },
+ { WIDGET_MENUBAR, "WIDGET_MENUBAR", "GtkMenubar" },
+ { WIDGET_MENUBAR_ITEM, "WIDGET_MENUBAR_ITEM", "GtkMenubar-item" },
+ { WIDGET_OPTION_MENU, "WIDGET_OPTION_MENU", "GtkOptionMenu" },
+ { WIDGET_TOOLBAR, "WIDGET_TOOLBAR", "GtkToolbar" },
+ { WIDGET_DEFAULT_BUTTON, "WIDGET_DEFAULT_BUTTON", "GtkButton-has-default" },
+ { 0, NULL, NULL }
+ };
+ type = g_enum_register_static ("WidgeType", values);
+ }
+ return type;
+}
+
+GType
+bool_get_type (void)
+{
+ static GType type = 0;
+ if (type == 0) {
+ static const GEnumValue values[] = {
+ { 0, "BOOL_FALSE", "False" },
+ { 1, "BOOL_TRUE", "True" },
+ { 0, NULL, NULL }
+ };
+ type = g_enum_register_static ("GtkBoolDummyType", values);
+ }
+ return type;
+}
+
+
+#define WIDGET_TYPE (widget_type_get_type ())
+#define BOOL_TYPE (bool_get_type ())
+
+
+typedef enum {
+ FUNCTION_ARROW = 1 << 0,
+ FUNCTION_BOX = 1 << 1,
+ FUNCTION_SHADOW = 1 << 2,
+ FUNCTION_BOX_GAP = 1 << 3,
+ FUNCTION_SHADOW_GAP = 1 << 4,
+ FUNCTION_CHECK = 1 << 5,
+ FUNCTION_EXPANDER = 1 << 6,
+ FUNCTION_EXTENSION = 1 << 7,
+ FUNCTION_FLAT_BOX = 1 << 8,
+ FUNCTION_FOCUS = 1 << 9,
+ FUNCTION_HANDLE = 1 << 10,
+ FUNCTION_HLINE = 1 << 11,
+ FUNCTION_VLINE = 1 << 12,
+ FUNCTION_OPTION = 1 << 13,
+ FUNCTION_RESIZE_GRIP = 1 << 14,
+ FUNCTION_SLIDER = 1 << 15,
+ FUNCTION_TAB = 1 << 16,
+
+ FUNCTION_ALL = -1
+} FunctionType;
+#define FUNCTION_LAST FUNCTION_BOX
+
+GtkWidget *window;
+GtkWidget *box;
+GtkWidget *widgets[WIDGET_COUNT];
+
+typedef struct {
+ FunctionType function;
+ WidgetType widget;
+ gchar *detail;
+ GtkStateType state;
+ GtkShadowType shadow;
+ GtkArrowType arrow_type;
+ gboolean fill;
+ GtkPositionType gap_side;
+ GtkOrientation orientation;
+ GtkExpanderStyle expander_style;
+ GdkWindowEdge edge;
+} Test;
+
+#define ARROW_ALL (-1)
+#define STATE_ALL (-1)
+#define SHADOW_ALL (-1)
+#define FILL_ALL (-1)
+#define EXPANDER_ALL (-1)
+#define EDGE_ALL (-1)
+#define GAP_SIDE_ALL (-1)
+#define ORIENTATION_ALL (-1)
+
+#define CELL_DETAILS_SIDE(detail) detail ":" detail "_start" ":" detail "_middle" ":" detail "_end"
+#define CELL_DETAILS_SORTED(detail) CELL_DETAILS_SIDE(detail) ":" CELL_DETAILS_SIDE(detail "_sorted")
+#define CELL_DETAILS_RULED(detail) CELL_DETAILS_SORTED(detail) ":" CELL_DETAILS_SORTED(detail "_ruled")
+#define CELL_DETAILS CELL_DETAILS_RULED("cell_even") ":" CELL_DETAILS_RULED("cell_odd")
+#define CHECK_AND_RADIO_DETAILS "NULL:cellcheck:cellradio:check:checkbutton:radiobutton"
+#define EXPANDER_DETAILS "NULL:expander" /* also in common details list ... */
+#define ARROW_DETAILS "NULL:arrow:tab:optionmenutab"
+#define COMMON_DETAILS "NULL:arrow:bar:base:button:buttondefault:combo_entry_button:dockitem:dockitem_bin:entry:entry_bg:frame:handle:handlebox:handlebox_bin:hpaned:hruler:hscale:hscrollbar:hseparator:label:menu:menubar:menuitem:metacity:notebook:option:optionmenu:optionmenutab:paned:scrolled_window:slider:spinbutton:spinbutton_arrow:spinbutton_down:spinbutton_up:stepper:tab:text:togglebutton:togglebuttondefault:toolbar:tooltip:treeitem:treeview:trough:viewport:viewportbin:vpaned:vruler:vscale:vscrollbar:vseparator:expander"
+
+/* The following explicitly does not test EVERY combination, as that would be
+ * overkill, and would a lot longer. */
+static Test tests[] = {
+ { /* ARROW */
+ FUNCTION_ARROW,
+ WIDGET_NULL,
+ ARROW_DETAILS,
+ STATE_ALL,
+ SHADOW_ALL,
+ ARROW_ALL,
+ FILL_ALL,
+ GTK_SIDE_TOP,
+ GTK_ORIENTATION_HORIZONTAL,
+ GTK_EXPANDER_EXPANDED,
+ GDK_WINDOW_EDGE_SOUTH
+ },
+ { /* things with gaps */
+ FUNCTION_BOX_GAP | FUNCTION_SHADOW_GAP | FUNCTION_EXTENSION,
+ WIDGET_NULL,
+ COMMON_DETAILS,
+ STATE_ALL,
+ SHADOW_ALL,
+ GTK_ARROW_UP,
+ TRUE,
+ GAP_SIDE_ALL,
+ GTK_ORIENTATION_HORIZONTAL,
+ GTK_EXPANDER_EXPANDED,
+ GDK_WINDOW_EDGE_SOUTH
+ },
+ { /* expander */
+ FUNCTION_EXPANDER,
+ WIDGET_NULL,
+ EXPANDER_DETAILS,
+ STATE_ALL,
+ SHADOW_ALL,
+ GTK_ARROW_UP,
+ TRUE,
+ GTK_SIDE_TOP,
+ GTK_ORIENTATION_HORIZONTAL,
+ EXPANDER_ALL,
+ GDK_WINDOW_EDGE_SOUTH
+ },
+ { /* handle, slider (+orientation wildcarded) */
+ FUNCTION_HANDLE | FUNCTION_SLIDER,
+ WIDGET_NULL,
+ COMMON_DETAILS,
+ STATE_ALL,
+ SHADOW_ALL,
+ GTK_ARROW_UP,
+ TRUE,
+ GTK_SIDE_TOP,
+ ORIENTATION_ALL,
+ GTK_EXPANDER_EXPANDED,
+ GDK_WINDOW_EDGE_SOUTH
+ },
+ { /* resize grip (+edge wildcarded) */
+ FUNCTION_RESIZE_GRIP,
+ WIDGET_NULL,
+ COMMON_DETAILS,
+ STATE_ALL,
+ SHADOW_ALL,
+ GTK_ARROW_UP,
+ TRUE,
+ GTK_SIDE_TOP,
+ GTK_ORIENTATION_HORIZONTAL,
+ GTK_EXPANDER_EXPANDED,
+ EDGE_ALL
+ },
+ { /* check and radio */
+ FUNCTION_CHECK | FUNCTION_OPTION,
+ WIDGET_NULL,
+ CHECK_AND_RADIO_DETAILS,
+ STATE_ALL,
+ SHADOW_ALL,
+ GTK_ARROW_UP,
+ TRUE,
+ GTK_SIDE_TOP,
+ GTK_ORIENTATION_HORIZONTAL,
+ GTK_EXPANDER_EXPANDED,
+ GDK_WINDOW_EDGE_SOUTH
+ },
+ { /* cell flat box */
+ FUNCTION_FLAT_BOX,
+ WIDGET_NULL,
+ CELL_DETAILS,
+ STATE_ALL,
+ SHADOW_ALL,
+ GTK_ARROW_UP,
+ TRUE,
+ GTK_SIDE_TOP,
+ GTK_ORIENTATION_HORIZONTAL,
+ GTK_EXPANDER_EXPANDED,
+ GDK_WINDOW_EDGE_SOUTH
+ },
+ { /* GENERIC STUFF (will be duplicated somewhat, but *shrug*) */
+ FUNCTION_ALL ^ (FUNCTION_ARROW | FUNCTION_BOX_GAP | FUNCTION_SHADOW_GAP | FUNCTION_EXTENSION | FUNCTION_EXPANDER | FUNCTION_HANDLE | FUNCTION_SLIDER | FUNCTION_RESIZE_GRIP | FUNCTION_CHECK | FUNCTION_OPTION),
+ WIDGET_NULL,
+ COMMON_DETAILS,
+ STATE_ALL,
+ SHADOW_ALL,
+ GTK_ARROW_UP,
+ TRUE,
+ GTK_SIDE_TOP,
+ GTK_ORIENTATION_HORIZONTAL,
+ GTK_EXPANDER_EXPANDED,
+ GDK_WINDOW_EDGE_SOUTH
+ },
+
+
+ /* The above brute force stuff does not hit enough code paths because it always
+ * passes in a NULL widget. The following rules are more specilized to hit certain
+ * code paths inside gtk-engines. Anyone forking may need to add own special things. */
+
+ {
+ FUNCTION_FOCUS,
+ WIDGET_DEFAULT_BUTTON,
+ "NULL:button:add-mode:colorwheel_dark:colorwheel_light",
+ STATE_ALL,
+ SHADOW_ALL,
+ GTK_ARROW_UP,
+ TRUE,
+ GTK_SIDE_TOP,
+ GTK_ORIENTATION_HORIZONTAL,
+ GTK_EXPANDER_EXPANDED,
+ GDK_WINDOW_EDGE_SOUTH
+ },
+ {
+ FUNCTION_BOX,
+ WIDGET_DEFAULT_BUTTON,
+ "NULL:button:buttondefault:togglebutton:togglebuttondefault",
+ STATE_ALL,
+ SHADOW_ALL,
+ GTK_ARROW_UP,
+ TRUE,
+ GTK_SIDE_TOP,
+ GTK_ORIENTATION_HORIZONTAL,
+ GTK_EXPANDER_EXPANDED,
+ GDK_WINDOW_EDGE_SOUTH
+ },
+ {
+ FUNCTION_BOX,
+ WIDGET_TOGGLE_BUTTON,
+ "NULL:button:buttondefault:togglebutton:togglebuttondefault",
+ STATE_ALL,
+ SHADOW_ALL,
+ GTK_ARROW_UP,
+ TRUE,
+ GTK_SIDE_TOP,
+ GTK_ORIENTATION_HORIZONTAL,
+ GTK_EXPANDER_EXPANDED,
+ GDK_WINDOW_EDGE_SOUTH
+ },
+ {
+ FUNCTION_BOX,
+ WIDGET_TREE_VIEW_HEADER,
+ "NULL:button:buttondefault",
+ STATE_ALL,
+ SHADOW_ALL,
+ GTK_ARROW_UP,
+ TRUE,
+ GTK_SIDE_TOP,
+ GTK_ORIENTATION_HORIZONTAL,
+ GTK_EXPANDER_EXPANDED,
+ GDK_WINDOW_EDGE_SOUTH
+ },
+ {
+ FUNCTION_SHADOW,
+ WIDGET_STATUS_BAR,
+ "NULL:frame",
+ STATE_ALL,
+ SHADOW_ALL,
+ GTK_ARROW_UP,
+ TRUE,
+ GTK_SIDE_TOP,
+ GTK_ORIENTATION_HORIZONTAL,
+ GTK_EXPANDER_EXPANDED,
+ GDK_WINDOW_EDGE_SOUTH
+ },
+ {
+ FUNCTION_BOX | FUNCTION_SLIDER,
+ WIDGET_SCALE,
+ "NULL:slider:stepper:trough:hscale:vscale",
+ STATE_ALL,
+ SHADOW_ALL,
+ GTK_ARROW_UP,
+ TRUE,
+ GTK_SIDE_TOP,
+ GTK_ORIENTATION_HORIZONTAL,
+ GTK_EXPANDER_EXPANDED,
+ GDK_WINDOW_EDGE_SOUTH
+ },
+ {
+ FUNCTION_BOX | FUNCTION_SLIDER,
+ WIDGET_SCROLLBAR,
+ "NULL:slider:stepper:trough:hscrollbar:vscrollbar",
+ STATE_ALL,
+ SHADOW_ALL,
+ GTK_ARROW_UP,
+ TRUE,
+ GTK_SIDE_TOP,
+ GTK_ORIENTATION_HORIZONTAL,
+ GTK_EXPANDER_EXPANDED,
+ GDK_WINDOW_EDGE_SOUTH
+ },
+ {
+ FUNCTION_BOX,
+ WIDGET_PROGRESS_BAR,
+ "NULL:trough:bar",
+ STATE_ALL,
+ SHADOW_ALL,
+ GTK_ARROW_UP,
+ TRUE,
+ GTK_SIDE_TOP,
+ GTK_ORIENTATION_HORIZONTAL,
+ GTK_EXPANDER_EXPANDED,
+ GDK_WINDOW_EDGE_SOUTH
+ },
+ {
+ FUNCTION_BOX,
+ WIDGET_MENUBAR_ITEM,
+ "NULL:menuitem",
+ STATE_ALL,
+ SHADOW_ALL,
+ GTK_ARROW_UP,
+ TRUE,
+ GTK_SIDE_TOP,
+ GTK_ORIENTATION_HORIZONTAL,
+ GTK_EXPANDER_EXPANDED,
+ GDK_WINDOW_EDGE_SOUTH
+ },
+ {
+ FUNCTION_BOX,
+ WIDGET_OPTION_MENU,
+ "NULL:optionmenu",
+ STATE_ALL,
+ SHADOW_ALL,
+ GTK_ARROW_UP,
+ TRUE,
+ GTK_SIDE_TOP,
+ GTK_ORIENTATION_HORIZONTAL,
+ GTK_EXPANDER_EXPANDED,
+ GDK_WINDOW_EDGE_SOUTH
+ },
+ {
+ FUNCTION_BOX,
+ WIDGET_OPTION_MENU,
+ "NULL:optionmenu",
+ STATE_ALL,
+ SHADOW_ALL,
+ GTK_ARROW_UP,
+ TRUE,
+ GTK_SIDE_TOP,
+ GTK_ORIENTATION_HORIZONTAL,
+ GTK_EXPANDER_EXPANDED,
+ GDK_WINDOW_EDGE_SOUTH
+ },
+ {
+ FUNCTION_BOX,
+ WIDGET_TOOLBAR,
+ "NULL:toolbar:handle",
+ STATE_ALL,
+ SHADOW_ALL,
+ GTK_ARROW_UP,
+ TRUE,
+ GTK_SIDE_TOP,
+ GTK_ORIENTATION_HORIZONTAL,
+ GTK_EXPANDER_EXPANDED,
+ GDK_WINDOW_EDGE_SOUTH
+ },
+
+};
+
+#define ENUM_NEXT(enum_type, ind, target) \
+ do { \
+ GEnumClass *enum_class = g_type_class_ref (enum_type); \
+ if (initial || values[ind] >= enum_class->n_values - 1) { \
+ values[ind] = 0; \
+ } else { \
+ done = FALSE; \
+ values[ind]++; \
+ } \
+ \
+ target = enum_class->values[values[ind]].value; \
+ g_type_class_unref (enum_class); \
+ if (!done && !initial) \
+ goto end; \
+ } while(0)
+
+static gboolean
+get_next_combination (Test *wildcard_test, Test *test, gboolean initial)
+{
+ gint i;
+ gchar *cur_pos, *col_pos;
+ gboolean done = !initial;
+ static gint values[10];
+
+ test->function = wildcard_test->function;
+
+ if (wildcard_test->widget == WIDGET_ALL)
+ ENUM_NEXT (WIDGET_TYPE, 0, test->widget);
+ else
+ test->widget = wildcard_test->widget;
+
+ if (wildcard_test->state == STATE_ALL)
+ ENUM_NEXT (GTK_TYPE_STATE_TYPE, 1, test->state);
+ else
+ test->state = wildcard_test->state;
+
+ if (wildcard_test->shadow == SHADOW_ALL)
+ ENUM_NEXT (GTK_TYPE_SHADOW_TYPE, 2, test->shadow);
+ else
+ test->shadow = wildcard_test->shadow;
+
+ if (wildcard_test->arrow_type == ARROW_ALL)
+ ENUM_NEXT (GTK_TYPE_ARROW_TYPE, 3, test->arrow_type);
+ else
+ test->arrow_type = wildcard_test->arrow_type;
+
+ if (wildcard_test->fill == FILL_ALL)
+ ENUM_NEXT (BOOL_TYPE, 4, test->fill);
+ else
+ test->fill = wildcard_test->fill;
+
+ if (wildcard_test->gap_side == GAP_SIDE_ALL)
+ ENUM_NEXT (GTK_TYPE_POSITION_TYPE, 5, test->gap_side);
+ else
+ test->gap_side = wildcard_test->gap_side;
+
+ if (wildcard_test->orientation == ORIENTATION_ALL)
+ ENUM_NEXT (GTK_TYPE_ORIENTATION, 6, test->orientation);
+ else
+ test->orientation = wildcard_test->orientation;
+
+ if (wildcard_test->expander_style == EXPANDER_ALL)
+ ENUM_NEXT (GTK_TYPE_EXPANDER_STYLE, 7, test->expander_style);
+ else
+ test->expander_style = wildcard_test->expander_style;
+
+ if (wildcard_test->edge == EDGE_ALL)
+ ENUM_NEXT (GDK_TYPE_WINDOW_EDGE, 8, test->edge);
+ else
+ test->edge = wildcard_test->edge;
+
+end:
+ /* the detail is a : seperated list ... */
+ if (initial) {
+ values[9] = 0;
+ } else {
+ /* increase, if nothing else got changed. */
+ if (done)
+ values[9]++;
+ }
+ i = 0;
+ cur_pos = wildcard_test->detail;
+
+ while (i < values[9] && cur_pos) {
+ cur_pos = strchr (cur_pos, ':');
+ if (cur_pos != NULL) cur_pos++;
+ i++;
+ }
+ if (cur_pos == NULL) {
+ values[9] = 0;
+ cur_pos = wildcard_test->detail;
+ if (done)
+ return TRUE;
+ } else {
+ /* not done, as we moved on */
+ done = FALSE;
+ }
+ if (cur_pos != NULL) {
+ col_pos = strchr (cur_pos, ':');
+ if (col_pos == NULL)
+ test->detail = g_strdup (cur_pos);
+ else
+ test->detail = g_strndup (cur_pos, col_pos - cur_pos);
+ } else
+ test->detail = NULL;
+
+ /* replace "NULL" with a NULL pointer */
+ if (test->detail && strcmp (test->detail, "NULL") == 0) {
+ g_free (test->detail);
+ test->detail = NULL;
+ }
+
+ return done;
+}
+
+static void
+run_functions (Test *test)
+{
+ GtkStyle *style = window->style;
+ GdkWindow *mywindow = window->window;
+
+ if (widgets[test->widget]) {
+ style = widgets[test->widget]->style;
+ mywindow = widgets[test->widget]->window;
+ }
+
+ if (test->function & FUNCTION_ARROW)
+ gtk_paint_arrow (style, mywindow, test->state, test->shadow, NULL, widgets[test->widget], test->detail, test->arrow_type, test->fill, 0, 0, 10, 10);
+
+ if (test->function & FUNCTION_BOX)
+ gtk_paint_box (style, mywindow, test->state, test->shadow, NULL, widgets[test->widget], test->detail, 0, 0, 10, 10);
+
+ if (test->function & FUNCTION_SHADOW)
+ gtk_paint_shadow (style, mywindow, test->state, test->shadow, NULL, widgets[test->widget], test->detail, 0, 0, 10, 10);
+
+ if (test->function & FUNCTION_BOX_GAP)
+ gtk_paint_box_gap (style, mywindow, test->state, test->shadow, NULL, widgets[test->widget], test->detail, 0, 0, 10, 10, test->gap_side, 0, 100);
+
+ if (test->function & FUNCTION_SHADOW_GAP)
+ gtk_paint_shadow_gap (style, mywindow, test->state, test->shadow, NULL, widgets[test->widget], test->detail, 0, 0, 10, 10, test->gap_side, 0, 100);
+
+
+ if (test->function & FUNCTION_CHECK)
+ gtk_paint_check (style, mywindow, test->state, test->shadow, NULL, widgets[test->widget], test->detail, 0, 0, 10, 10);
+
+ if (test->function & FUNCTION_EXPANDER)
+ gtk_paint_expander (style, mywindow, test->state, NULL, widgets[test->widget], test->detail, 10, 10, test->expander_style);
+
+ if (test->function & FUNCTION_EXTENSION)
+ gtk_paint_extension (style, mywindow, test->state, test->shadow, NULL, widgets[test->widget], test->detail, 0, 0, 10, 10, test->gap_side);
+
+ if (test->function & FUNCTION_FLAT_BOX)
+ gtk_paint_flat_box (style, mywindow, test->state, test->shadow, NULL, widgets[test->widget], test->detail, 0, 0, 10, 10);
+
+ if (test->function & FUNCTION_FOCUS)
+ gtk_paint_focus (style, mywindow, test->state, NULL, widgets[test->widget], test->detail, 0, 0, 10, 10);
+
+ if (test->function & FUNCTION_HANDLE)
+ gtk_paint_handle (style, mywindow, test->state, test->shadow, NULL, widgets[test->widget], test->detail, 0, 0, 10, 10, test->orientation);
+
+ if (test->function & FUNCTION_OPTION)
+ gtk_paint_option (style, mywindow, test->state, test->shadow, NULL, widgets[test->widget], test->detail, 0, 0, 10, 10);
+
+ if (test->function & FUNCTION_RESIZE_GRIP)
+ gtk_paint_resize_grip (style, mywindow, test->state, NULL, widgets[test->widget], test->detail, test->edge, 0, 0, 10, 10);
+
+ if (test->function & FUNCTION_SLIDER)
+ gtk_paint_slider (style, mywindow, test->state, test->shadow, NULL, widgets[test->widget], test->detail, 0, 0, 10, 10, test->orientation);
+
+ if (test->function & FUNCTION_TAB)
+ gtk_paint_tab (style, mywindow, test->state, test->shadow, NULL, widgets[test->widget], test->detail, 0, 0, 10, 10);
+
+
+ if (test->function & FUNCTION_HLINE)
+ gtk_paint_hline (style, mywindow, test->state, NULL, widgets[test->widget], test->detail, 1, 10, 4);
+
+ if (test->function & FUNCTION_VLINE)
+ gtk_paint_vline (style, mywindow, test->state, NULL, widgets[test->widget], test->detail, 1, 10, 4);
+}
+
+static void
+run_test (gint test)
+{
+ Test current_test = {0};
+ gint initial = TRUE;
+
+ while (!get_next_combination (&tests[test], ¤t_test, initial)) {
+ initial = FALSE;
+ run_functions (¤t_test);
+ g_free (current_test.detail);
+ }
+}
+
+static void
+create_testwidgets ()
+{
+ GtkWidget *treeview;
+ GtkListStore *store;
+ GtkCellRenderer *renderer;
+
+ widgets[WIDGET_NULL] = NULL;
+ widgets[WIDGET_SCROLLBAR] = gtk_vscrollbar_new (NULL);
+ widgets[WIDGET_TOGGLE_BUTTON] = gtk_toggle_button_new_with_label ("blah");
+ widgets[WIDGET_STATUS_BAR] = gtk_statusbar_new ();
+
+
+ treeview = gtk_tree_view_new ();
+
+ /* set up the treeview */
+ renderer = gtk_cell_renderer_text_new ();
+ gtk_tree_view_insert_column_with_attributes (GTK_TREE_VIEW (treeview),
+ -1, "Column1", renderer,
+ "text", 0, NULL);
+ renderer = gtk_cell_renderer_text_new ();
+ gtk_tree_view_insert_column_with_attributes (GTK_TREE_VIEW (treeview),
+ -1, "Column2", renderer,
+ "text", 0, NULL);
+ store = gtk_list_store_new (2, G_TYPE_STRING, G_TYPE_STRING);
+ gtk_tree_view_set_model (GTK_TREE_VIEW (treeview), GTK_TREE_MODEL (store));
+
+ widgets[WIDGET_TREE_VIEW] = treeview;
+ /* lets abuse the private API ... */
+ widgets[WIDGET_TREE_VIEW_HEADER] = gtk_tree_view_get_column (GTK_TREE_VIEW (treeview), 0)->button;
+
+
+ widgets[WIDGET_SCALE] = gtk_hscale_new_with_range (0, 1, 0.1);
+ widgets[WIDGET_PROGRESS_BAR] = gtk_progress_bar_new ();
+ widgets[WIDGET_MENUBAR] = gtk_menu_bar_new ();
+ widgets[WIDGET_MENUBAR_ITEM] = gtk_menu_item_new_with_label ("blah");
+ gtk_menu_shell_append (GTK_MENU_SHELL (widgets[WIDGET_MENUBAR]), widgets[WIDGET_MENUBAR_ITEM]);
+ widgets[WIDGET_OPTION_MENU] = gtk_option_menu_new ();
+ widgets[WIDGET_TOOLBAR] = gtk_toolbar_new ();
+ widgets[WIDGET_DEFAULT_BUTTON] = gtk_button_new_with_label ("blah");
+ /* nasty but *shrug* */
+ GTK_WIDGET_SET_FLAGS(widgets[WIDGET_DEFAULT_BUTTON], GTK_CAN_DEFAULT);
+ GTK_WIDGET_SET_FLAGS(widgets[WIDGET_DEFAULT_BUTTON], GTK_HAS_DEFAULT);
+}
+
+int
+main (int argc, char **argv)
+{
+ gchar *new_default_files[1] = {NULL};
+ GtkSettings *settings;
+ gint i;
+ gtk_init (&argc, &argv);
+
+ /* we get a gtkrc from GTK2_RC_FILES, remove the users theme ... */
+ settings = gtk_settings_get_default ();
+ g_object_set (settings, "gtk-theme-name", "Raleigh", NULL);
+
+ create_testwidgets ();
+
+ window = gtk_window_new (GTK_WINDOW_POPUP);
+ box = gtk_vbox_new (FALSE, 0);
+
+ gtk_container_add ((GtkContainer*)window, box);
+
+ for (i = 0; i < WIDGET_COUNT; i++) {
+ if (widgets[i] && !widgets[i]->parent)
+ gtk_box_pack_end (GTK_BOX (box), widgets[i], FALSE, FALSE, 0);
+ }
+
+ while (gdk_events_pending ())
+ gtk_main_iteration_do (FALSE);
+
+ gtk_widget_show_all (window);
+ while (gdk_events_pending ())
+ gtk_main_iteration_do (FALSE);
+
+ for (i = 0; i < G_N_ELEMENTS (tests); i++)
+ run_test (i);
+
+ /* remove the rc file again. This should cause an unload of the engine
+ * and destruction of all engine objects. */
+ gtk_rc_set_default_files (new_default_files);
+ gtk_rc_reparse_all_for_settings (settings, TRUE);
+
+ while (gdk_events_pending ())
+ gtk_main_iteration_do (FALSE);
+
+ /* TODO: It would be really cool to check if there is no
+ * loaded engine at this point. */
+
+ return 0;
+}
diff --git a/monet-gtk/test/valgrind-suppressions b/monet-gtk/test/valgrind-suppressions
new file mode 100644
index 0000000..0adb420
--- /dev/null
+++ b/monet-gtk/test/valgrind-suppressions
@@ -0,0 +1,57 @@
+{
+ Some invalid access on application startup
+ Memcheck:Param
+ writev(vector[...])
+ fun:*writev
+ obj:/usr/lib/libX11.so.6.2.0
+ fun:_X11TransWritev
+ fun:_XSend
+ fun:XQueryExtension
+ fun:XInitExtension
+ fun:XFixesFindDisplay
+ fun:XFixesQueryExtension
+ fun:gdk_display_open
+}
+{
+ Some ld thing.
+ Memcheck:Cond
+ fun:_dl_start
+ fun:_start
+ obj:*
+ obj:*
+ obj:*
+ obj:*
+}
+{
+ something else, dunno what exactly
+ Memcheck:Param
+ write(buf)
+ fun:*write*
+ fun:_X11TransWrite*
+ obj:/usr/lib/libX11.so*
+}
+{
+ Some home directory stuff, happens when loading the engine
+ Memcheck:Leak
+ fun:malloc
+ fun:nss_parse_service_list
+ fun:__nss_database_lookup
+ obj:*
+ obj:*
+ fun:getpwnam_r@@GLIBC_2.1.2
+ fun:g_get_any_init_do
+ fun:g_get_home_dir
+}
+{
+ pango/fc leak
+ Memcheck:Leak
+ fun:*alloc
+ fun:FcPatternObject*
+}
+{
+ pango/fc leak
+ Memcheck:Leak
+ fun:*alloc
+ fun:FcConfigValues*
+ fun:FcConfigSubstituteWithPat
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]