[Xfce4-commits] r26543 - in libxfce4ui: . trunk trunk/docs trunk/docs/tmpl trunk/libxfce4ui trunk/po
Nick Schermer
nick at xfce.org
Sat Jan 5 22:19:49 CET 2008
Author: nick
Date: 2008-01-05 21:19:49 +0000 (Sat, 05 Jan 2008)
New Revision: 26543
Added:
libxfce4ui/branches/
libxfce4ui/tags/
libxfce4ui/trunk/
libxfce4ui/trunk/AUTHORS
libxfce4ui/trunk/COPYING
libxfce4ui/trunk/ChangeLog
libxfce4ui/trunk/Makefile.am
libxfce4ui/trunk/NEWS
libxfce4ui/trunk/README
libxfce4ui/trunk/THANKS
libxfce4ui/trunk/TODO
libxfce4ui/trunk/autogen.sh
libxfce4ui/trunk/configure.in.in
libxfce4ui/trunk/docs/
libxfce4ui/trunk/docs/Makefile.am
libxfce4ui/trunk/docs/libxfce4ui-docs.sgml
libxfce4ui/trunk/docs/libxfce4ui-overrides.txt
libxfce4ui/trunk/docs/libxfce4ui-sections.txt
libxfce4ui/trunk/docs/libxfce4ui.types
libxfce4ui/trunk/docs/tmpl/
libxfce4ui/trunk/docs/tmpl/libxfce4ui-config.sgml
libxfce4ui/trunk/docs/tmpl/libxfce4ui-unused.sgml
libxfce4ui/trunk/docs/tmpl/xfce-dialogs.sgml
libxfce4ui/trunk/docs/tmpl/xfce-execute.sgml
libxfce4ui/trunk/docs/tmpl/xfce-gdk-extensions.sgml
libxfce4ui/trunk/docs/tmpl/xfce-gtk-extensions.sgml
libxfce4ui/trunk/docs/tmpl/xfce-pango-extensions.sgml
libxfce4ui/trunk/docs/tmpl/xfce-titled-dialog.sgml
libxfce4ui/trunk/docs/version.xml.in
libxfce4ui/trunk/libxfce4ui.spec.in
libxfce4ui/trunk/libxfce4ui/
libxfce4ui/trunk/libxfce4ui/Makefile.am
libxfce4ui/trunk/libxfce4ui/abicheck.sh
libxfce4ui/trunk/libxfce4ui/libxfce4ui-1.pc.in
libxfce4ui/trunk/libxfce4ui/libxfce4ui-config.c
libxfce4ui/trunk/libxfce4ui/libxfce4ui-config.h.in
libxfce4ui/trunk/libxfce4ui/libxfce4ui-private.h
libxfce4ui/trunk/libxfce4ui/libxfce4ui.h
libxfce4ui/trunk/libxfce4ui/libxfce4ui.symbols
libxfce4ui/trunk/libxfce4ui/make-libxfce4ui-alias.pl
libxfce4ui/trunk/libxfce4ui/xfce-dialogs.c
libxfce4ui/trunk/libxfce4ui/xfce-dialogs.h
libxfce4ui/trunk/libxfce4ui/xfce-execute.c
libxfce4ui/trunk/libxfce4ui/xfce-execute.h
libxfce4ui/trunk/libxfce4ui/xfce-gdk-extensions.c
libxfce4ui/trunk/libxfce4ui/xfce-gdk-extensions.h
libxfce4ui/trunk/libxfce4ui/xfce-gtk-extensions.c
libxfce4ui/trunk/libxfce4ui/xfce-gtk-extensions.h
libxfce4ui/trunk/libxfce4ui/xfce-heading.c
libxfce4ui/trunk/libxfce4ui/xfce-heading.h
libxfce4ui/trunk/libxfce4ui/xfce-pango-extensions.c
libxfce4ui/trunk/libxfce4ui/xfce-pango-extensions.h
libxfce4ui/trunk/libxfce4ui/xfce-session-client.c
libxfce4ui/trunk/libxfce4ui/xfce-session-client.h
libxfce4ui/trunk/libxfce4ui/xfce-titled-dialog.c
libxfce4ui/trunk/libxfce4ui/xfce-titled-dialog.h
libxfce4ui/trunk/po/
libxfce4ui/trunk/po/ChangeLog
libxfce4ui/trunk/po/LINGUAS
libxfce4ui/trunk/po/POTFILES.in
libxfce4ui/trunk/po/libxfce4ui.pot
Log:
* Inital import
Added: libxfce4ui/trunk/AUTHORS
===================================================================
--- libxfce4ui/trunk/AUTHORS (rev 0)
+++ libxfce4ui/trunk/AUTHORS 2008-01-05 21:19:49 UTC (rev 26543)
@@ -0,0 +1,5 @@
+Benedikt Meurer <benny at xfce.org>
+Brian Tarricone <bjt23 at cornell.edu>
+Jasper Huijsmans <jasper at xfce.org>
+Nick Schermer <nick at xfce.org>
+Olivier Fourdan <fourdan at xfce.org>
Added: libxfce4ui/trunk/COPYING
===================================================================
--- libxfce4ui/trunk/COPYING (rev 0)
+++ libxfce4ui/trunk/COPYING 2008-01-05 21:19:49 UTC (rev 26543)
@@ -0,0 +1,437 @@
+ 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
Added: libxfce4ui/trunk/ChangeLog
===================================================================
--- libxfce4ui/trunk/ChangeLog (rev 0)
+++ libxfce4ui/trunk/ChangeLog 2008-01-05 21:19:49 UTC (rev 26543)
@@ -0,0 +1,3 @@
+2008-01-05 Nick Schermer <nick at xfce.org>
+
+ * Initial Import.
Added: libxfce4ui/trunk/Makefile.am
===================================================================
--- libxfce4ui/trunk/Makefile.am (rev 0)
+++ libxfce4ui/trunk/Makefile.am 2008-01-05 21:19:49 UTC (rev 26543)
@@ -0,0 +1,30 @@
+# $Id$
+
+SUBDIRS = \
+ libxfce4ui \
+ docs \
+ po
+
+distclean-local:
+ rm -rf *.spec *.cache *~
+
+rpm: dist
+ rpmbuild -ta $(PACKAGE)-$(VERSION).tar.gz
+ @rm -f $(PACKAGE)-$(VERSION).tar.gz
+
+EXTRA_DIST = \
+ libxfce4ui.spec.in \
+ intltool-extract.in \
+ intltool-merge.in \
+ intltool-update.in
+
+DISTCLEANFILES = \
+ libxfce4ui.spec \
+ intltool-extract \
+ intltool-merge \
+ intltool-update
+
+DISTCHECK_CONFIGURE_FLAGS = \
+ --enable-gtk-doc
+
+# vi:set ts=8 sw=8 noet ai nocindent syntax=automake:
Property changes on: libxfce4ui/trunk/Makefile.am
___________________________________________________________________
Name: svn:keywords
+ Id
Added: libxfce4ui/trunk/NEWS
===================================================================
--- libxfce4ui/trunk/NEWS (rev 0)
+++ libxfce4ui/trunk/NEWS 2008-01-05 21:19:49 UTC (rev 26543)
@@ -0,0 +1,4 @@
+4.5.x
+=====
+
+Initial version of the library.
Added: libxfce4ui/trunk/README
===================================================================
--- libxfce4ui/trunk/README (rev 0)
+++ libxfce4ui/trunk/README 2008-01-05 21:19:49 UTC (rev 26543)
@@ -0,0 +1,55 @@
+What is it?
+===========
+
+This is libxfce4ui, the replacement of the old libxfcegui4 library. It is used
+to share commonly used Xfce widgets amoung the Xfce applications.
+
+
+Required packages
+=================
+
+Libxfce4ui depends on the following packages:
+
+ - GTK+ 2.10.0 or above
+ - GLib 2.12.0 or above
+ - Libxfce4util 4.4.0 or above
+
+
+
+Installation
+============
+
+The file 'INSTALL' contains generic installation instructions.
+
+
+Debugging Support
+=================
+
+Libxfce4ui currently supports four different levels of debugging support, which
+can be setup using the configure flag `--enable-debug' (check the output of
+`configure --help'):
+
+ `full' Use this if you want to debug libxfce4ui to locate a bug. The
+ build will most probably be noticably slower. This is also
+ recommended for people that want to develop Xfce applications.
+
+ `yes' This is the default for SVN snapshot builds. It adds all
+ kinds of checks to the code, and is therefore likely to run
+ slower. Use this if you want to develop for Xfce.
+
+ `minimum' This is the default for release builds, and presents the
+ recommended behaviour.
+
+ `no' Disables all sanity checks. Don't use this unless you know
+ exactly what you do.
+
+
+How to report bugs?
+===================
+
+Bugs should be reported to the Xfce bug tracking system
+(http://bugzilla.xfce.org, product Libxfce4ui). You will need to
+create an account for yourself.
+
+Please read the HACKING file for information on where to send
+changes or bugfixes for this package.
Added: libxfce4ui/trunk/THANKS
===================================================================
--- libxfce4ui/trunk/THANKS (rev 0)
+++ libxfce4ui/trunk/THANKS 2008-01-05 21:19:49 UTC (rev 26543)
@@ -0,0 +1,22 @@
+What's this file about?
+=======================
+This file lists all external people that have contributed to this project.
+
+
+
+Testers (sorted by name):
+-------------------------
+These people have contributed to libxfce4ui by testing the software,
+reporting problems and making useful suggestions.
+
+
+
+Translators (sorted by language):
+---------------------------------
+These people have translated libxfce4ui to foreign languages.
+
+
+
+Other contributers (sorted by name):
+------------------------------------
+
Added: libxfce4ui/trunk/TODO
===================================================================
--- libxfce4ui/trunk/TODO (rev 0)
+++ libxfce4ui/trunk/TODO 2008-01-05 21:19:49 UTC (rev 26543)
@@ -0,0 +1 @@
+
Added: libxfce4ui/trunk/autogen.sh
===================================================================
--- libxfce4ui/trunk/autogen.sh (rev 0)
+++ libxfce4ui/trunk/autogen.sh 2008-01-05 21:19:49 UTC (rev 26543)
@@ -0,0 +1,39 @@
+#!/bin/sh
+#
+# $Id$
+#
+# Copyright (c) 2002-2006
+# The Xfce development team. All rights reserved.
+#
+# Written for Xfce by Benedikt Meurer <benny at xfce.org>.
+#
+
+(type xdt-autogen) >/dev/null 2>&1 || {
+ cat >&2 <<EOF
+autogen.sh: You don't seem to have the Xfce development tools installed on
+ your system, which are required to build this software.
+ Please install the xfce4-dev-tools package first, it is available
+ from http://www.xfce.org/.
+EOF
+ exit 1
+}
+
+# verify that po/LINGUAS is present
+(test -f po/LINGUAS) >/dev/null 2>&1 || {
+ cat >&2 <<EOF
+autogen.sh: The file po/LINGUAS could not be found. Please check your snapshot
+ or try to checkout again.
+EOF
+ exit 1
+}
+
+# substitute revision and linguas
+linguas=`sed -e '/^#/d' po/LINGUAS`
+revision=`LC_ALL=C svn info $0 | awk '/^Revision: / {printf "%05d\n", $2}'`
+sed -e "s/@LINGUAS@/${linguas}/g" \
+ -e "s/@REVISION@/${revision}/g" \
+ < "configure.in.in" > "configure.in"
+
+exec xdt-autogen $@
+
+# vi:set ts=2 sw=2 et ai:
Property changes on: libxfce4ui/trunk/autogen.sh
___________________________________________________________________
Name: svn:executable
+ *
Name: svn:keywords
+ Id
Added: libxfce4ui/trunk/configure.in.in
===================================================================
--- libxfce4ui/trunk/configure.in.in (rev 0)
+++ libxfce4ui/trunk/configure.in.in 2008-01-05 21:19:49 UTC (rev 26543)
@@ -0,0 +1,273 @@
+dnl $Id$
+dnl
+dnl Copyright (c) 2007 The Xfce development team
+dnl
+
+dnl ***************************
+dnl *** Version information ***
+dnl ***************************
+m4_define([libxfce4ui_verinfo], [0:0:0])
+m4_define([libxfce4ui_version_api], [1])
+m4_define([libxfce4ui_version_major], [4])
+m4_define([libxfce4ui_version_minor], [5])
+m4_define([libxfce4ui_version_micro], [0])
+m4_define([libxfce4ui_version_build], [r at REVISION@])
+m4_define([libxfce4ui_version_tag], [svn])
+m4_define([libxfce4ui_version], [libxfce4ui_version_major().libxfce4ui_version_minor().libxfce4ui_version_micro()ifelse(libxfce4ui_version_tag(), [svn], [libxfce4ui_version_tag()-libxfce4ui_version_build()], [libxfce4ui_version_tag()])])
+
+
+dnl # DO NOT MODIFY ANYTHING BELOW THIS LINE, UNLESS YOU KNOW WHAT
+dnl # YOU ARE DOING.
+
+
+dnl ********************************************
+dnl *** Full debug support for SVN snapshots ***
+dnl ********************************************
+m4_define([libxfce4ui_debug_default], [ifelse(libxfce4ui_version_tag(), [svn], [full], [minimum])])
+
+dnl ***************************
+dnl *** Initialize autoconf ***
+dnl ***************************
+AC_COPYRIGHT([Copyright (c) 2007 The Xfce development team])
+AC_INIT([libxfce4ui], [libxfce4ui_version], [http://bugzilla.xfce.org/], [libxfce4ui])
+AC_PREREQ([2.50])
+AC_REVISION([$Id$])
+AC_CANONICAL_TARGET()
+
+dnl ***************************
+dnl *** Initialize automake ***
+dnl ***************************
+AM_INIT_AUTOMAKE([1.8 dist-bzip2 tar-ustar])
+AM_CONFIG_HEADER([config.h])
+AM_MAINTAINER_MODE()
+
+dnl *******************************
+dnl *** Check for UNIX variants ***
+dnl *******************************
+AC_AIX()
+AC_ISC_POSIX()
+AC_MINIX()
+
+dnl ********************************
+dnl *** Check for basic programs ***
+dnl ********************************
+AC_PROG_CC()
+AC_PROG_LD()
+AM_PROG_CC_C_O()
+AC_PROG_INSTALL()
+AC_PROG_INTLTOOL()
+AC_CHECK_PROGS([PERL], [perl5 perl])
+
+dnl **************************
+dnl *** Initialize libtool ***
+dnl **************************
+AC_DISABLE_STATIC()
+AC_PROG_LIBTOOL()
+
+dnl **************************************
+dnl *** Substitute version information ***
+dnl **************************************
+LIBXFCE4UI_VERINFO=libxfce4ui_verinfo()
+LIBXFCE4UI_VERSION_API=libxfce4ui_version_api()
+LIBXFCE4UI_VERSION_MAJOR=libxfce4ui_version_major()
+LIBXFCE4UI_VERSION_MINOR=libxfce4ui_version_minor()
+LIBXFCE4UI_VERSION_MICRO=libxfce4ui_version_micro()
+AC_SUBST([LIBXFCE4UI_VERINFO])
+AC_SUBST([LIBXFCE4UI_VERSION_API])
+AC_SUBST([LIBXFCE4UI_VERSION_MAJOR])
+AC_SUBST([LIBXFCE4UI_VERSION_MINOR])
+AC_SUBST([LIBXFCE4UI_VERSION_MICRO])
+
+dnl ***************************************
+dnl *** Check for standard header files ***
+dnl ***************************************
+AC_HEADER_STDC()
+AC_CHECK_HEADERS([errno.h fcntl.h limits.h locale.h math.h memory.h \
+ signal.h stdarg.h stdlib.h string.h])
+
+dnl ******************************
+dnl *** Check for i18n support ***
+dnl ******************************
+XDT_I18N([@LINGUAS@])
+
+dnl *******************************************
+dnl *** Check for X Window System installed ***
+dnl *******************************************
+XDT_CHECK_LIBX11_REQUIRE()
+
+dnl ********************************************
+dnl *** Check for session management support ***
+dnl ********************************************
+XDT_CHECK_LIBSM()
+
+dnl ***********************************
+dnl *** Check for required packages ***
+dnl ***********************************
+XDT_CHECK_PACKAGE([GOBJECT], [gobject-2.0], [2.12.0])
+XDT_CHECK_PACKAGE([GTK], [gtk+-2.0], [2.10.0])
+XDT_CHECK_PACKAGE([LIBXFCE4UTIL], [libxfce4util-1.0], [4.4.0])
+
+dnl *************************************************
+dnl *** Optional support for startup notification ***
+dnl *************************************************
+XDT_CHECK_OPTIONAL_PACKAGE([LIBSTARTUP_NOTIFICATION],
+ [libstartup-notification-1.0],
+ [0.4], [startup-notification],
+ [startup notification library])
+
+dnl *************************
+dnl *** Check for gtk-doc ***
+dnl *************************
+GTK_DOC_CHECK([1.0])
+
+dnl ***********************************
+dnl *** Check for debugging support ***
+dnl ***********************************
+AC_ARG_ENABLE([debug],
+AC_HELP_STRING([--enable-debug=@<:@no/minimum/yes/full@:>@], [Turn on debugging @<:@default=libxfce4ui_debug_default@:>@]),
+ [], [enable_debug=libxfce4ui_debug_default])
+AC_MSG_CHECKING([whether to enable debugging support])
+if test x"$enable_debug" = x"full" -o x"$enable_debug" = x"yes"; then
+ dnl Print the result
+ AC_MSG_RESULT([$enable_debug])
+
+ dnl Make sure we detect possible errors (if supported)
+ save_CFLAGS="$CFLAGS"
+ CFLAGS="$CFLAGS -Wall -Werror"
+ AC_MSG_CHECKING([whether $CC accepts -Wall -Werror])
+ AC_COMPILE_IFELSE(AC_LANG_SOURCE([int x;]), [
+ AC_MSG_RESULT([yes])
+ PLATFORM_CFLAGS="$PLATFORM_CFLAGS -Wall -Werror"
+ ], [
+ AC_MSG_RESULT([no])
+ ])
+ CFLAGS="$save_CFLAGS"
+
+ dnl Paranoia for --enable-debug=full
+ if test x"$enable_debug" = x"full"; then
+ dnl Enable extensive debugging
+ PLATFORM_CPPFLAGS="$PLATFORM_CPPFLAGS -DG_ENABLE_DEBUG"
+
+ dnl Use -O0 -g3 if the compiler supports it
+ save_CFLAGS="$CFLAGS"
+ CFLAGS="$CFLAGS -O0 -g3"
+ AC_MSG_CHECKING([whether $CC accepts -O0 -g3])
+ AC_COMPILE_IFELSE(AC_LANG_SOURCE([int x;]), [
+ AC_MSG_RESULT([yes])
+ PLATFORM_CFLAGS="$PLATFORM_CFLAGS -O0 -g3"
+ ], [
+ AC_MSG_RESULT([no])
+ ])
+ CFLAGS="$save_CFLAGS"
+ fi
+else
+ dnl Print the result
+ AC_MSG_RESULT([$enable_debug])
+
+ dnl Disable debugging (release build)
+ PLATFORM_CPPFLAGS="$PLATFORM_CPPFLAGS -DNDEBUG"
+
+ dnl Disable object cast checks
+ PLATFORM_CPPFLAGS="$PLATFORM_CPPFLAGS -DG_DISABLE_CAST_CHECKS"
+
+ dnl Disable all checks for --enable-debug=no
+ if test x"$enable_debug" = x"no"; then
+ PLATFORM_CPPFLAGS="$PLATFORM_CPPFLAGS -DG_DISABLE_ASSERT -DG_DISABLE_CHECKS"
+ fi
+fi
+
+dnl **************************************
+dnl *** Check for linker optimizations ***
+dnl **************************************
+AC_MSG_CHECKING([whether $LD accepts --as-needed])
+case `$LD --as-needed -v 2>&1 </dev/null` in
+*GNU* | *'with BFD'*)
+ LDFLAGS="$LDFLAGS -Wl,--as-needed"
+ AC_MSG_RESULT([yes])
+ ;;
+*)
+ AC_MSG_RESULT([no])
+ ;;
+esac
+AC_MSG_CHECKING([whether $LD accepts -O1])
+case `$LD -O1 -v 2>&1 </dev/null` in
+*GNU* | *'with BFD'*)
+ PLATFORM_LDFLAGS="$PLATFORM_LDFLAGS -Wl,-O1"
+ AC_MSG_RESULT([yes])
+ ;;
+*)
+ AC_MSG_RESULT([no])
+ ;;
+esac
+
+dnl ****************************************
+dnl *** Check for ELF visibility support ***
+dnl ****************************************
+AC_ARG_ENABLE([visibility], AC_HELP_STRING([--disable-visibility], [Don't use ELF visibility attributes]), [], [enable_visibility=yes])
+have_gnuc_visibility=no
+if test x"$enable_visibility" != x"no"; then
+ dnl Check whether the compiler supports the visibility attribute
+ save_CFLAGS="$CFLAGS"
+ CFLAGS="$CFLAGS -Wall -Werror"
+ AC_MSG_CHECKING([whether $CC supports the GNUC visibility attribute])
+ AC_COMPILE_IFELSE(AC_LANG_SOURCE(
+ [
+ void __attribute__ ((visibility("default"))) test_default (void) {}
+ void __attribute__ ((visibility("hidden"))) test_hidden (void) {}
+ int main (int argc, char **argv) { test_default (); test_hidden (); return 0; }
+ ]),
+ [
+ have_gnuc_visibility=yes
+ AC_MSG_RESULT([yes])
+ ],
+ [
+ AC_MSG_RESULT([no])
+ ])
+ CFLAGS="$save_CFLAGS"
+fi
+if test x"$have_gnuc_visibility" = x"yes"; then
+ PLATFORM_CPPFLAGS="$PLATFORM_CPPFLAGS -DHAVE_GNUC_VISIBILITY"
+fi
+AM_CONDITIONAL([HAVE_GNUC_VISIBILITY], [test x"$have_gnuc_visibility" = x"yes"])
+
+dnl *********************************
+dnl *** Substitute platform flags ***
+dnl *********************************
+AC_MSG_CHECKING([PLATFORM_CPPFLAGS])
+AC_MSG_RESULT([$PLATFORM_CPPFLAGS])
+AC_SUBST([PLATFORM_CPPFLAGS])
+AC_MSG_CHECKING([PLATFORM_CFLAGS])
+AC_MSG_RESULT([$PLATFORM_CFLAGS])
+AC_SUBST([PLATFORM_CFLAGS])
+AC_MSG_CHECKING([PLATFORM_LDFLAGS])
+AC_MSG_RESULT([$PLATFORM_LDFLAGS])
+AC_SUBST([PLATFORM_LDFLAGS])
+
+dnl *****************************
+dnl *** Generate output files ***
+dnl *****************************
+AC_OUTPUT([
+Makefile
+docs/Makefile
+docs/version.xml
+libxfce4ui.spec
+libxfce4ui/libxfce4ui-1.pc
+libxfce4ui/libxfce4ui-config.h
+libxfce4ui/Makefile
+po/Makefile.in
+])
+
+dnl ***************************
+dnl *** Print configuration ***
+dnl ***************************
+echo
+echo "Build Configuration:"
+echo
+if test x"$LIBSTARTUP_NOTIFICATION_FOUND" = x"yes"; then
+echo "* Startup Notification: yes"
+else
+echo "* Startup Notification: no"
+fi
+echo "* Debug Support: $enable_debug"
+echo "* GNU Visibility: $have_gnuc_visibility"
+echo
Property changes on: libxfce4ui/trunk/configure.in.in
___________________________________________________________________
Name: svn:keywords
+ Id
Added: libxfce4ui/trunk/docs/Makefile.am
===================================================================
--- libxfce4ui/trunk/docs/Makefile.am (rev 0)
+++ libxfce4ui/trunk/docs/Makefile.am 2008-01-05 21:19:49 UTC (rev 26543)
@@ -0,0 +1,69 @@
+# $Id$
+
+AUTOMAKE_OPTIONS = 1.8
+
+# The name of the module.
+DOC_MODULE=libxfce4ui
+
+# The top-level SGML file.
+DOC_MAIN_SGML_FILE=$(DOC_MODULE)-docs.sgml
+
+# Extra options to supply to gtkdoc-scan
+SCAN_OPTIONS=--deprecated-guards="XFCE_DISABLE_DEPRECATED"
+
+# Extra options to pass to gtkdoc-scangobj
+SCANGOBJ_OPTIONS=
+
+# The directory containing the source code. Relative to $(srcdir)
+DOC_SOURCE_DIR=../libxfce4ui
+
+# Extra options to supply to gtkdoc-mkdb
+MKDB_OPTIONS=--sgml-mode --output-format=xml
+
+# Extra options to supply to gtkdoc-fixref
+FIXXREF_OPTIONS=
+
+# Used for dependencies
+HFILE_GLOB=$(top_srcdir)/libxfce4ui/*.h
+CFILE_GLOB=$(top_srcdir)/libxfce4ui/*.c
+
+# Header files to ignore when scanning
+IGNORE_HFILES= \
+ libxfce4ui.h \
+ libxfce4ui-alias.h \
+ libxfce4ui-private.h \
+ xfce-heading.h
+
+# Extra files to add when scanning (relative to $srcdir)
+EXTRA_HFILES=
+
+# Images to copy into HTML directory
+HTML_IMAGES =
+
+# Extra SGML files that are included by DOC_MAIN_SGML_FILE
+content_files = \
+ version.xml
+
+# CFLAGS and LDFLAGS for compiling scan program. Only needed
+# if $(DOC_MODULE).types is non-empty.
+INCLUDES = \
+ -I$(top_srcdir) \
+ -I$(top_builddir) \
+ $(LIBXFCE4UTIL_CFLAGS) \
+ $(GTK_CFLAGS)
+
+GTKDOC_LIBS = \
+ $(LIBXFCE4UTIL_LIBS) \
+ $(GTK_LIBS) \
+ $(top_builddir)/libxfce4ui/libxfce4ui-$(LIBXFCE4UI_VERSION_API).la
+
+include $(top_srcdir)/gtk-doc.make
+
+# Other files to distribute
+EXTRA_DIST += \
+ version.xml.in
+
+# required for gtk-doc
+dist-hook: all
+
+# vi:set ts=8 sw=8 noet ai nocindent syntax=automake:
Property changes on: libxfce4ui/trunk/docs/Makefile.am
___________________________________________________________________
Name: svn:keywords
+ Id
Added: libxfce4ui/trunk/docs/libxfce4ui-docs.sgml
===================================================================
--- libxfce4ui/trunk/docs/libxfce4ui-docs.sgml (rev 0)
+++ libxfce4ui/trunk/docs/libxfce4ui-docs.sgml 2008-01-05 21:19:49 UTC (rev 26543)
@@ -0,0 +1,83 @@
+<?xml version="1.0"?>
+<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+ "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd"[
+<!ENTITY libxfce4ui-config SYSTEM "xml/libxfce4ui-config.xml">
+<!ENTITY xfce-execute SYSTEM "xml/xfce-execute.xml">
+<!ENTITY xfce-gdk-extensions SYSTEM "xml/xfce-gdk-extensions.xml">
+<!ENTITY xfce-gtk-extensions SYSTEM "xml/xfce-gtk-extensions.xml">
+<!ENTITY xfce-pango-extensions SYSTEM "xml/xfce-pango-extensions.xml">
+<!ENTITY xfce-dialogs SYSTEM "xml/xfce-dialogs.xml">
+<!ENTITY xfce-titled-dialog SYSTEM "xml/xfce-titled-dialog.xml">
+
+<!ENTITY version SYSTEM "version.xml">
+<!ENTITY date "December 2007">
+]>
+
+<book id="index">
+ <bookinfo>
+ <title>Libxfce4ui Reference Manual</title>
+ <releaseinfo>Version &version;</releaseinfo>
+ <pubdate>&date;</pubdate>
+
+ <copyright>
+ <year>2007</year>
+ <holder>The Xfce Development Team</holder>
+ </copyright>
+
+ <legalnotice id="legalnotice">
+ <para>
+ Permission is granted to copy, distribute and/or modify this document
+ under the terms of the GNU Free Documentation License, Version 1.1 or
+ any later version published by the Free Software Foundation; with no
+ Invariant Sections, with no Front-Cover Texts, and with no Back-Cover
+ Texts. The complete license text is available from the <ulink
+ type="http" url="http://www.gnu.org/">Free Software Foundation</ulink>.
+ </para>
+ </legalnotice>
+
+ <authorgroup>
+ <author>
+ <firstname>Nick</firstname>
+ <surname>Schermer</surname>
+ <affiliation>
+ <address><email>nick at xfce.org</email></address>
+ <jobtitle>Software developer</jobtitle>
+ </affiliation>
+ </author>
+ </authorgroup>
+ </bookinfo>
+
+ <part id="libxfce4ui-introduction">
+ <title>Introduction</title>
+ <para>
+ Libxfce4ui is used to share commonly used Xfce widgets amoung the Xfce applications.
+ </para>
+ </part>
+
+ <part id="libxfce4ui-fundamentals">
+ <title>Xfce Fundamentals</title>
+ &libxfce4ui-config;
+ &xfce-execute;
+ </part>
+
+ <part id="libxfce4ui-extensions">
+ <title>Xfce UI Extensions</title>
+ &xfce-gdk-extensions;
+ &xfce-gtk-extensions;
+ &xfce-pango-extensions;
+ </part>
+
+ <part id="libxfce4ui-widgets">
+ <title>Xfce UI Widget</title>
+ &xfce-dialogs;
+ &xfce-titled-dialog;
+ </part>
+
+ <index>
+ <title>Index</title>
+ </index>
+</book>
+
+<!--
+ vi:set ts=2 sw=2 et ai syntax=docbkxml:
+-->
Added: libxfce4ui/trunk/docs/libxfce4ui-overrides.txt
===================================================================
Added: libxfce4ui/trunk/docs/libxfce4ui-sections.txt
===================================================================
--- libxfce4ui/trunk/docs/libxfce4ui-sections.txt (rev 0)
+++ libxfce4ui/trunk/docs/libxfce4ui-sections.txt 2008-01-05 21:19:49 UTC (rev 26543)
@@ -0,0 +1,79 @@
+<INCLUDE>libxfce4ui/libxfce4ui.h</INCLUDE>
+
+<SECTION>
+<FILE>libxfce4ui-config</FILE>
+libxfce4ui_check_version
+libxfce4ui_major_version
+libxfce4ui_minor_version
+libxfce4ui_micro_version
+<SUBSECTION>
+LIBXFCE4UI_MAJOR_VERSION
+LIBXFCE4UI_MINOR_VERSION
+LIBXFCE4UI_MICRO_VERSION
+LIBXFCE4UI_CHECK_VERSION
+</SECTION>
+
+<SECTION>
+<FILE>xfce-execute</FILE>
+xfce_execute_argv_on_screen
+xfce_execute_on_screen
+</SECTION>
+
+<SECTION>
+<FILE>xfce-gdk-extensions</FILE>
+xfce_gdk_pixbuf_new_from_inline_at_size G_GNUC_MALLOC
+xfce_gdk_screen_get_active
+</SECTION>
+
+<SECTION>
+<FILE>xfce-gtk-extensions</FILE>
+xfce_gtk_button_new_mixed
+xfce_gtk_label_new_with_style
+xfce_gtk_frame_box_new
+xfce_gtk_frame_box_new_with_content
+xfce_gtk_dialog_parse_parent
+xfce_gtk_window_center_on_active_screen
+<SUBSECTION>
+xfce_gtk_label_new_big_bold
+xfce_gtk_label_new_bold
+xfce_gtk_label_new_italic
+xfce_gtk_label_new_small_italic
+</SECTION>
+
+<SECTION>
+<FILE>xfce-pango-extensions</FILE>
+xfce_pango_attr_list_new
+</SECTION>
+
+<SECTION>
+<FILE>xfce-dialogs</FILE>
+xfce_message_dialog_new
+xfce_message_dialog_run
+xfce_dialog_show_info
+xfce_dialog_show_warning
+xfce_dialog_show_error
+xfce_dialog_confirm
+<SUBSECTION>
+XFCE_BUTTON_TYPE_MIXED
+XFCE_BUTTON_TYPE_PIXBUF
+</SECTION>
+
+<SECTION>
+<FILE>xfce-titled-dialog</FILE>
+XfceTitledDialog
+xfce_titled_dialog_new
+xfce_titled_dialog_new_with_buttons
+xfce_titled_dialog_get_subtitle
+xfce_titled_dialog_set_subtitle
+<SUBSECTION Standard>
+XfceTitledDialogClass
+XFCE_TYPE_TITLED_DIALOG
+XFCE_TITLED_DIALOG
+XFCE_TITLED_DIALOG_CLASS
+XFCE_IS_TITLED_DIALOG
+XFCE_IS_TITLED_DIALOG_CLASS
+XFCE_TITLED_DIALOG_GET_CLASS
+<SUBSECTION Private>
+XfceTitledDialogPrivate
+xfce_titled_dialog_get_type
+</SECTION>
Added: libxfce4ui/trunk/docs/libxfce4ui.types
===================================================================
--- libxfce4ui/trunk/docs/libxfce4ui.types (rev 0)
+++ libxfce4ui/trunk/docs/libxfce4ui.types 2008-01-05 21:19:49 UTC (rev 26543)
@@ -0,0 +1,3 @@
+#include <libxfce4ui/libxfce4ui.h>
+
+xfce_titled_dialog_get_type
Added: libxfce4ui/trunk/docs/tmpl/libxfce4ui-config.sgml
===================================================================
--- libxfce4ui/trunk/docs/tmpl/libxfce4ui-config.sgml (rev 0)
+++ libxfce4ui/trunk/docs/tmpl/libxfce4ui-config.sgml 2008-01-05 21:19:49 UTC (rev 26543)
@@ -0,0 +1,112 @@
+<!-- ##### SECTION Title ##### -->
+Version Information
+
+<!-- ##### SECTION Short_Description ##### -->
+Variables and functions to check the Libxfce4ui version.
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+Libxfce4ui provides version information, primarily useful in configure
+checks for builds that have a configure script. Applications will not
+typically use the features described here.
+</para>
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### FUNCTION libxfce4ui_check_version ##### -->
+<para>
+
+</para>
+
+ at required_major:
+ at required_minor:
+ at required_micro:
+ at Returns:
+
+
+<!-- ##### VARIABLE libxfce4ui_major_version ##### -->
+<para>
+The major version number of the Libxfce4ui library (e.g. in version
+1.2.3 this is 1).
+</para>
+
+<para>
+This variable is in the library, so represents the Libxfce4ui library
+you have linked against. Contrast with the #LIBXFCE4UI_MAJOR_VERSION
+macro, which represents the major version of the Libxfce4ui headers
+you have included.
+</para>
+
+
+<!-- ##### VARIABLE libxfce4ui_minor_version ##### -->
+<para>
+The minor version number of the Libxfce4ui library (e.g. in version
+1.2.3 this is 2).
+</para>
+
+<para>
+This variable is in the library, so represents the Libxfce4ui library
+you have linked against. Contrast with the #LIBXFCE4UI_MINOR_VERSION
+macro, which represents the minor version of the Libxfce4ui headers
+you have included.
+</para>
+
+
+<!-- ##### VARIABLE libxfce4ui_micro_version ##### -->
+<para>
+The micro version number of the Libxfce4ui library (e.g. in version
+1.2.3 this is 3).
+</para>
+
+<para>
+This variable is in the library, so represents the Libxfce4ui library
+you have linked against. Contrast with the #LIBXFCE4UI_MICRO_VERSION
+macro, which represents the micro version of the Libxfce4ui headers
+you have included.
+</para>
+
+
+<!-- ##### MACRO LIBXFCE4UI_MAJOR_VERSION ##### -->
+<para>
+Like #libxfce4ui_major_version, but from the headers used at
+application compile time, rather than from the library linked against
+at application run time.
+</para>
+
+
+
+<!-- ##### MACRO LIBXFCE4UI_MINOR_VERSION ##### -->
+<para>
+Like #libxfce4ui_minor_version, but from the headers used at
+application compile time, rather than from the library linked against
+at application run time.
+</para>
+
+
+
+<!-- ##### MACRO LIBXFCE4UI_MICRO_VERSION ##### -->
+<para>
+Like #libxfce4ui_micro_version, but from the headers used at
+application compile time, rather than from the library linked against
+at application run time.
+</para>
+
+
+
+<!-- ##### MACRO LIBXFCE4UI_CHECK_VERSION ##### -->
+<para>
+Returns %TRUE if the version of the Libxfce4ui header files is the same
+as or newer than the passed-in version.
+</para>
+
+ at major: major version (e.g. 1 for version 1.2.3)
+ at minor: minor version (e.g. 2 for version 1.2.3)
+ at micro: micro version (e.g. 3 for version 1.2.3)
+
+
Added: libxfce4ui/trunk/docs/tmpl/libxfce4ui-unused.sgml
===================================================================
Added: libxfce4ui/trunk/docs/tmpl/xfce-dialogs.sgml
===================================================================
--- libxfce4ui/trunk/docs/tmpl/xfce-dialogs.sgml (rev 0)
+++ libxfce4ui/trunk/docs/tmpl/xfce-dialogs.sgml 2008-01-05 21:19:49 UTC (rev 26543)
@@ -0,0 +1,110 @@
+<!-- ##### SECTION Title ##### -->
+Xfce Dialogs
+
+<!-- ##### SECTION Short_Description ##### -->
+Common used dialogs to interact with the user.
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+Useful convientent function to interact with the user using a
+#GtkMessageDialog.
+</para>
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### FUNCTION xfce_message_dialog_new ##### -->
+<para>
+
+</para>
+
+ at parent:
+ at title:
+ at stock_id:
+ at primary_text:
+ at secondary_text:
+ at first_button_text:
+ at Varargs:
+ at Returns:
+
+
+<!-- ##### FUNCTION xfce_message_dialog_run ##### -->
+<para>
+
+</para>
+
+ at parent:
+ at title:
+ at stock_id:
+ at primary_text:
+ at secondary_text:
+ at first_button_text:
+ at Varargs:
+ at Returns:
+
+
+<!-- ##### FUNCTION xfce_dialog_show_info ##### -->
+<para>
+
+</para>
+
+ at parent:
+ at format:
+ at Varargs:
+
+
+<!-- ##### FUNCTION xfce_dialog_show_warning ##### -->
+<para>
+
+</para>
+
+ at parent:
+ at format:
+ at Varargs:
+
+
+<!-- ##### FUNCTION xfce_dialog_show_error ##### -->
+<para>
+
+</para>
+
+ at parent:
+ at error:
+ at format:
+ at Varargs:
+
+
+<!-- ##### FUNCTION xfce_dialog_confirm ##### -->
+<para>
+
+</para>
+
+ at parent:
+ at stock_id:
+ at confirm_label:
+ at format:
+ at Varargs:
+ at Returns:
+
+
+<!-- ##### MACRO XFCE_BUTTON_TYPE_MIXED ##### -->
+<para>
+Used to define a mixed button in xfce_message_dialog_new() and
+xfce_message_dialog_run().
+</para>
+
+
+
+<!-- ##### MACRO XFCE_BUTTON_TYPE_PIXBUF ##### -->
+<para>
+Used to define a #GdkPixuf button in xfce_message_dialog_new() and
+xfce_message_dialog_run().
+</para>
+
+
+
Added: libxfce4ui/trunk/docs/tmpl/xfce-execute.sgml
===================================================================
--- libxfce4ui/trunk/docs/tmpl/xfce-execute.sgml (rev 0)
+++ libxfce4ui/trunk/docs/tmpl/xfce-execute.sgml 2008-01-05 21:19:49 UTC (rev 26543)
@@ -0,0 +1,49 @@
+<!-- ##### SECTION Title ##### -->
+Xfce Execute
+
+<!-- ##### SECTION Short_Description ##### -->
+Functions to spawn a command with startup notification support.
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+On a desktop it is important that applications are execute with
+startup notification and they show up on the correct screen and workspace.
+</para>
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### FUNCTION xfce_execute_argv_on_screen ##### -->
+<para>
+
+</para>
+
+ at screen:
+ at working_directory:
+ at argv:
+ at envp:
+ at flags:
+ at startup_notify:
+ at icon_name:
+ at error:
+ at Returns:
+
+
+<!-- ##### FUNCTION xfce_execute_on_screen ##### -->
+<para>
+
+</para>
+
+ at screen:
+ at command_line:
+ at in_terminal:
+ at startup_notify:
+ at error:
+ at Returns:
+
+
Added: libxfce4ui/trunk/docs/tmpl/xfce-gdk-extensions.sgml
===================================================================
--- libxfce4ui/trunk/docs/tmpl/xfce-gdk-extensions.sgml (rev 0)
+++ libxfce4ui/trunk/docs/tmpl/xfce-gdk-extensions.sgml 2008-01-05 21:19:49 UTC (rev 26543)
@@ -0,0 +1,40 @@
+<!-- ##### SECTION Title ##### -->
+Xfce Gdk(-pixbuf) extensions
+
+<!-- ##### SECTION Short_Description ##### -->
+Common used functions that are not provided by the Gdk or Gdk-pixbuf library.
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+Useful functions to quickly access common used Gdk functionality that
+is not proveded by the Gdk library. It also contains function based
+on the Gdk-pixbuf library.
+</para>
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### FUNCTION xfce_gdk_pixbuf_new_from_inline_at_size ##### -->
+<para>
+
+</para>
+
+ at data:
+ at width:
+ at height:
+ at Returns:
+
+
+<!-- ##### FUNCTION xfce_gdk_screen_get_active ##### -->
+<para>
+
+</para>
+
+ at Returns:
+
+
Added: libxfce4ui/trunk/docs/tmpl/xfce-gtk-extensions.sgml
===================================================================
--- libxfce4ui/trunk/docs/tmpl/xfce-gtk-extensions.sgml (rev 0)
+++ libxfce4ui/trunk/docs/tmpl/xfce-gtk-extensions.sgml 2008-01-05 21:19:49 UTC (rev 26543)
@@ -0,0 +1,119 @@
+<!-- ##### SECTION Title ##### -->
+Xfce Gtk+ extensions
+
+<!-- ##### SECTION Short_Description ##### -->
+Common used functions for #GtkWidget's that are not provided by
+the Gtk+ library.
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+These functions allow the developer to quickly create common widgets,
+without the hassle of creating formatted string or a lot of code
+dupplication.
+</para>
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### FUNCTION xfce_gtk_button_new_mixed ##### -->
+<para>
+
+</para>
+
+ at stock_id:
+ at label:
+ at Returns:
+
+
+<!-- ##### FUNCTION xfce_gtk_label_new_with_style ##### -->
+<para>
+
+</para>
+
+ at label:
+ at scale_factor:
+ at style:
+ at weight:
+ at underline:
+ at Returns:
+
+
+<!-- ##### FUNCTION xfce_gtk_frame_box_new ##### -->
+<para>
+
+</para>
+
+ at label:
+ at container_return:
+ at Returns:
+
+
+<!-- ##### FUNCTION xfce_gtk_frame_box_new_with_content ##### -->
+<para>
+
+</para>
+
+ at label:
+ at content:
+ at Returns:
+
+
+<!-- ##### FUNCTION xfce_gtk_dialog_parse_parent ##### -->
+<para>
+
+</para>
+
+ at parent:
+ at window_return:
+ at Returns:
+
+
+<!-- ##### FUNCTION xfce_gtk_window_center_on_active_screen ##### -->
+<para>
+
+</para>
+
+ at window:
+
+
+<!-- ##### MACRO xfce_gtk_label_new_big_bold ##### -->
+<para>
+Convenient macro for xfce_gtk_label_new_with_style(). It returns a
+large bold #GtkLabel.
+</para>
+
+ at label: the text of the label.
+
+
+<!-- ##### MACRO xfce_gtk_label_new_bold ##### -->
+<para>
+Convenient macro for xfce_gtk_label_new_with_style(). It returns a
+bold #GtkLabel.
+</para>
+
+ at label: the text of the label.
+
+
+<!-- ##### MACRO xfce_gtk_label_new_italic ##### -->
+<para>
+Convenient macro for xfce_gtk_label_new_with_style(). It returns an
+italic #GtkLabel.
+</para>
+
+ at label: the text of the label.
+
+
+<!-- ##### MACRO xfce_gtk_label_new_small_italic ##### -->
+<para>
+Convenient macro for xfce_gtk_label_new_with_style(). It returns a
+small italic #GtkLabel.
+</para>
+
+ at label: the text of the label.
+
+
Added: libxfce4ui/trunk/docs/tmpl/xfce-pango-extensions.sgml
===================================================================
--- libxfce4ui/trunk/docs/tmpl/xfce-pango-extensions.sgml (rev 0)
+++ libxfce4ui/trunk/docs/tmpl/xfce-pango-extensions.sgml 2008-01-05 21:19:49 UTC (rev 26543)
@@ -0,0 +1,31 @@
+<!-- ##### SECTION Title ##### -->
+Xfce Pango Extensions
+
+<!-- ##### SECTION Short_Description ##### -->
+Common used functions to easily access Pango functions.
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+These functions allow the developer to quickly work with Pango attributes.
+</para>
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### FUNCTION xfce_pango_attr_list_new ##### -->
+<para>
+
+</para>
+
+ at scale_factor:
+ at style:
+ at weight:
+ at underline:
+ at Returns:
+
+
Added: libxfce4ui/trunk/docs/tmpl/xfce-titled-dialog.sgml
===================================================================
--- libxfce4ui/trunk/docs/tmpl/xfce-titled-dialog.sgml (rev 0)
+++ libxfce4ui/trunk/docs/tmpl/xfce-titled-dialog.sgml 2008-01-05 21:19:49 UTC (rev 26543)
@@ -0,0 +1,76 @@
+<!-- ##### SECTION Title ##### -->
+XfceTitledDialog
+
+<!-- ##### SECTION Short_Description ##### -->
+A #GtkDialog with heading.
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+The #XfceTitledDialog is a normal #GtkDialog with a heading. The icon
+and title used in the heading are the same as the dialog title and icon
+See gtk_window_set_icon_name().
+</para>
+
+<para>
+To give the user more detailed information about the use of the dialog,
+an optional subtitle and be set using xfce_titled_dialog_set_subtitle().
+</para>
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+#GtkDialog, #GtkWindow
+</para>
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### STRUCT XfceTitledDialog ##### -->
+<para>
+Structure for the #XfceTitledDialog.
+</para>
+
+
+<!-- ##### ARG XfceTitledDialog:subtitle ##### -->
+<para>
+
+</para>
+
+<!-- ##### FUNCTION xfce_titled_dialog_new ##### -->
+<para>
+
+</para>
+
+ at Returns:
+
+
+<!-- ##### FUNCTION xfce_titled_dialog_new_with_buttons ##### -->
+<para>
+
+</para>
+
+ at title:
+ at parent:
+ at flags:
+ at first_button_text:
+ at Varargs:
+ at Returns:
+
+
+<!-- ##### FUNCTION xfce_titled_dialog_get_subtitle ##### -->
+<para>
+
+</para>
+
+ at titled_dialog:
+ at Returns:
+
+
+<!-- ##### FUNCTION xfce_titled_dialog_set_subtitle ##### -->
+<para>
+
+</para>
+
+ at titled_dialog:
+ at subtitle:
+
+
Added: libxfce4ui/trunk/docs/version.xml.in
===================================================================
--- libxfce4ui/trunk/docs/version.xml.in (rev 0)
+++ libxfce4ui/trunk/docs/version.xml.in 2008-01-05 21:19:49 UTC (rev 26543)
@@ -0,0 +1 @@
+ at PACKAGE_VERSION@
Added: libxfce4ui/trunk/libxfce4ui/Makefile.am
===================================================================
--- libxfce4ui/trunk/libxfce4ui/Makefile.am (rev 0)
+++ libxfce4ui/trunk/libxfce4ui/Makefile.am 2008-01-05 21:19:49 UTC (rev 26543)
@@ -0,0 +1,115 @@
+# $Id$
+
+INCLUDES = \
+ -I$(top_srcdir) \
+ -DDATADIR=\"$(datadir)\" \
+ -DSN_API_NOT_YET_FROZEN \
+ -DLIBXFCE4UI_COMPILATION \
+ -DG_LOG_DOMAIN=\"libxfce4ui\" \
+ -DLIBEXECDIR=\"$(libexecdir)\" \
+ -DLIBXFCE4UI_VERSION_API=\"$(LIBXFCE4UI_VERSION_API)\" \
+ -DPACKAGE_LOCALE_DIR=\"$(localedir)\" \
+ $(PLATFORM_CPPFLAGS)
+
+lib_LTLIBRARIES = libxfce4ui-1.la
+
+libxfce4ui_headers = \
+ xfce-execute.h \
+ xfce-dialogs.h \
+ xfce-gdk-extensions.h \
+ xfce-gtk-extensions.h \
+ xfce-pango-extensions.h \
+ xfce-titled-dialog.h
+
+libxfce4ui_built_sources = \
+ libxfce4ui-alias.h \
+ libxfce4ui-aliasdef.c
+
+libxfce4ui_includedir = \
+ $(includedir)/libxfce4ui-1/libxfce4ui
+
+libxfce4ui_include_HEADERS = \
+ $(libxfce4ui_headers) \
+ libxfce4ui.h \
+ libxfce4ui-config.h
+
+libxfce4ui_1_la_SOURCES = \
+ $(libxfce4uiinclude_HEADERS) \
+ $(libxfce4ui_built_sources) \
+ libxfce4ui-config.c \
+ libxfce4ui-private.h \
+ xfce-execute.c \
+ xfce-dialogs.c \
+ xfce-gdk-extensions.c \
+ xfce-gtk-extensions.c \
+ xfce-heading.c \
+ xfce-heading.h \
+ xfce-pango-extensions.c \
+ xfce-titled-dialog.c
+
+libxfce4ui_1_la_CFLAGS = \
+ $(GTK_CFLAGS) \
+ $(LIBSTARTUP_NOTIFICATION_CFLAGS) \
+ $(LIBXFCE4UTIL_CFLAGS) \
+ $(PLATFORM_CFLAGS)
+
+libxfce4ui_1_la_LDFLAGS = \
+ -export-dynamic \
+ -version-info $(LIBXFCE4UI_VERINFO) \
+ -export-symbols-regex "^[^_].*" \
+ -no-undefined \
+ $(PLATFORM_LDFLAGS)
+
+libxfce4ui_1_la_LIBADD = \
+ $(GTK_LIBS) \
+ $(LIBSTARTUP_NOTIFICATION_LIBS) \
+ $(LIBXFCE4UTIL_LIBS)
+
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = libxfce4ui-1.pc
+
+
+##
+## Rules to auto-generate built sources
+##
+## This is a bit tricky with automake, and non-trivial to implement. The
+## rules below seem to work fine and don't seem to break the build, but
+## they are only enabled in maintainer mode, so arbitrary users don't get
+## trapped in automake's oddities. Therefore we ship the autogenerated
+## files as part of the dist tarball.
+##
+if MAINTAINER_MODE
+CLEANFILES = \
+ actual-abi \
+ expected-abi
+
+DISTCLEANFILES = \
+ stamp-libxfce4ui-marshal.h \
+ $(libxfce4ui_built_sources)
+
+BUILT_SOURCES = \
+ $(libxfce4ui_built_sources)
+
+if HAVE_GNUC_VISIBILITY
+TESTS = \
+ abicheck.sh
+endif
+
+libxfce4ui-alias.h: make-libxfce4ui-alias.pl libxfce4ui.symbols
+ $(PERL) $(srcdir)/make-libxfce4ui-alias.pl < $(srcdir)/libxfce4ui.symbols > libxfce4ui-alias.h
+
+libxfce4ui-aliasdef.c: make-libxfce4ui-alias.pl libxfce4ui.symbols
+ $(PERL) $(srcdir)/make-libxfce4ui-alias.pl -def < $(srcdir)/libxfce4ui.symbols > libxfce4ui-aliasdef.c
+endif
+
+# required for gtk-doc
+dist-hook: all
+
+EXTRA_DIST = \
+ abicheck.sh \
+ libxfce4ui.symbols \
+ libxfce4ui-alias.h \
+ libxfce4ui-aliasdef.c \
+ make-libxfce4ui-alias.pl
+
+# vi:set ts=8 sw=8 noet ai nocindent syntax=automake:
Property changes on: libxfce4ui/trunk/libxfce4ui/Makefile.am
___________________________________________________________________
Name: svn:keywords
+ Id
Added: libxfce4ui/trunk/libxfce4ui/abicheck.sh
===================================================================
--- libxfce4ui/trunk/libxfce4ui/abicheck.sh (rev 0)
+++ libxfce4ui/trunk/libxfce4ui/abicheck.sh 2008-01-05 21:19:49 UTC (rev 26543)
@@ -0,0 +1,24 @@
+#!/bin/sh
+#
+# Copyright (c) 2004 The GLib Development Team.
+# Copyright (c) 2007 The Xfce Development Team.
+#
+# 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.
+#
+
+cpp -P -DINCLUDE_INTERNAL_SYMBOLS -DINCLUDE_VARIABLES -DALL_FILES ${srcdir:-.}/libxfce4ui.symbols | sed -e '/^$/d' -e 's/ LIBXFCE4UI_GNUC.*$//' -e 's/ G_GNUC.*$//' -e 's/ PRIVATE//' | sort > expected-abi
+nm -D .libs/libxfce4ui-1.so | grep " T\|R " | cut -d ' ' -f 3 | grep -v '^_.*' | sort > actual-abi
+diff -u expected-abi actual-abi && rm expected-abi actual-abi
Property changes on: libxfce4ui/trunk/libxfce4ui/abicheck.sh
___________________________________________________________________
Name: svn:executable
+ *
Added: libxfce4ui/trunk/libxfce4ui/libxfce4ui-1.pc.in
===================================================================
--- libxfce4ui/trunk/libxfce4ui/libxfce4ui-1.pc.in (rev 0)
+++ libxfce4ui/trunk/libxfce4ui/libxfce4ui-1.pc.in 2008-01-05 21:19:49 UTC (rev 26543)
@@ -0,0 +1,11 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: libxfce4ui
+Description: Widgets library for Xfce
+Requires: gtk+-2.0 libxfce4util-1.0
+Version: @PACKAGE_VERSION@
+Libs: -L${libdir} -lxfce4ui- at LIBXFCE4UI_VERSION_API@
+Cflags: -I${includedir}/libxfce4ui- at LIBXFCE4UI_VERSION_API@
Added: libxfce4ui/trunk/libxfce4ui/libxfce4ui-config.c
===================================================================
--- libxfce4ui/trunk/libxfce4ui/libxfce4ui-config.c (rev 0)
+++ libxfce4ui/trunk/libxfce4ui/libxfce4ui-config.c 2008-01-05 21:19:49 UTC (rev 26543)
@@ -0,0 +1,86 @@
+/* $Id$ */
+/*-
+ * Copyright (c) 2007 The Xfce Development Team
+ *
+ * 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.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#include <libxfce4ui/libxfce4ui-config.h>
+#include <libxfce4ui/libxfce4ui-alias.h>
+
+
+
+const guint libxfce4ui_major_version = LIBXFCE4UI_MAJOR_VERSION;
+const guint libxfce4ui_minor_version = LIBXFCE4UI_MINOR_VERSION;
+const guint libxfce4ui_micro_version = LIBXFCE4UI_MICRO_VERSION;
+
+
+
+/**
+ * libxfce4ui_check_version:
+ * @required_major: the required major version.
+ * @required_minor: the required minor version.
+ * @required_micro: the required micro version.
+ *
+ * Checks that the <systemitem class="library">libxfce4ui</systemitem> library
+ * in use is compatible with the given version. Generally you would pass in
+ * the constants #LIBXFCE4UI_MAJOR_VERSION, #LIBXFCE4UI_MINOR_VERSION and
+ * #LIBXFCE4UI_MICRO_VERSION as the three arguments to this function; that produces
+ * a check that the library in use is compatible with the version of
+ * <systemitem class="library">libxfce4ui</systemitem> the extension was
+ * compiled against.
+ *
+ * <example>
+ * <title>Checking the runtime version of the Libxfce4ui library</title>
+ * <programlisting>
+ * const gchar *mismatch;
+ * mismatch = libxfce4ui_check_version (LIBXFCE4UI_MAJOR_VERSION,
+ * LIBXFCE4UI_MINOR_VERSION,
+ * LIBXFCE4UI_MICRO_VERSION);
+ * if (G_UNLIKELY (mismatch != NULL))
+ * g_error ("Version mismatch: %<!---->s", mismatch);
+ * </programlisting>
+ * </example>
+ *
+ * Return value: %NULL if the library is compatible with the given version,
+ * or a string describing the version mismatch. The returned
+ * string is owned by the library and must not be freed or
+ * modified by the caller.
+ **/
+const gchar *
+libxfce4ui_check_version (guint required_major,
+ guint required_minor,
+ guint required_micro)
+{
+ if (required_major > LIBXFCE4UI_MAJOR_VERSION)
+ return "Libxfce4ui version too old (major mismatch)";
+ if (required_major < LIBXFCE4UI_MAJOR_VERSION)
+ return "Libxfce4ui version too new (major mismatch)";
+ if (required_minor > LIBXFCE4UI_MINOR_VERSION)
+ return "Libxfce4ui version too old (minor mismatch)";
+ if (required_minor == LIBXFCE4UI_MINOR_VERSION && required_micro > LIBXFCE4UI_MICRO_VERSION)
+ return "Libxfce4ui version too old (micro mismatch)";
+ return NULL;
+}
+
+
+
+#define __LIBXFCE4UI_CONFIG_C__
+#include <libxfce4ui/libxfce4ui-aliasdef.c>
Property changes on: libxfce4ui/trunk/libxfce4ui/libxfce4ui-config.c
___________________________________________________________________
Name: svn:keywords
+ Id
Added: libxfce4ui/trunk/libxfce4ui/libxfce4ui-config.h.in
===================================================================
--- libxfce4ui/trunk/libxfce4ui/libxfce4ui-config.h.in (rev 0)
+++ libxfce4ui/trunk/libxfce4ui/libxfce4ui-config.h.in 2008-01-05 21:19:49 UTC (rev 26543)
@@ -0,0 +1,54 @@
+/* $Id$ */
+/*-
+ * Copyright (c) 2007 The Xfce Development Team
+ *
+ * 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.
+ */
+
+#if !defined (LIBXFCE4UI_INSIDE_LIBXFCE4UI_H) && !defined (LIBXFCE4UI_COMPILATION)
+#error "Only <libxfce4ui/libxfce4ui.h> can be included directly, this file may disappear or change contents."
+#endif
+
+#ifndef __LIBXFCE4UI_CONFIG_H__
+#define __LIBXFCE4UI_CONFIG_H__
+
+#include <glib-object.h>
+
+G_BEGIN_DECLS
+
+#define LIBXFCE4UI_MAJOR_VERSION (@LIBXFCE4UI_VERSION_MAJOR@)
+#define LIBXFCE4UI_MINOR_VERSION (@LIBXFCE4UI_VERSION_MINOR@)
+#define LIBXFCE4UI_MICRO_VERSION (@LIBXFCE4UI_VERSION_MICRO@)
+
+#define LIBXFCE4UI_CHECK_VERSION(major,minor,micro) \
+ (LIBXFCE4UI_MAJOR_VERSION > (major) \
+ || (LIBXFCE4UI_MAJOR_VERSION == (major) \
+ && LIBXFCE4UI_MINOR_VERSION > (minor)) \
+ || (LIBXFCE4UI_MAJOR_VERSION == (major) \
+ && LIBXFCE4UI_MINOR_VERSION == (minor) \
+ && LIBXFCE4UI_MICRO_VERSION >= (micro)))
+
+extern const guint libxfce4ui_major_version;
+extern const guint libxfce4ui_minor_version;
+extern const guint libxfce4ui_micro_version;
+
+const gchar *libxfce4ui_check_version (guint required_major,
+ guint required_minor,
+ guint required_micro);
+
+G_END_DECLS
+
+#endif /* !__LIBXFCE4UI_CONFIG_H__ */
Property changes on: libxfce4ui/trunk/libxfce4ui/libxfce4ui-config.h.in
___________________________________________________________________
Name: svn:keywords
+ Id
Added: libxfce4ui/trunk/libxfce4ui/libxfce4ui-private.h
===================================================================
--- libxfce4ui/trunk/libxfce4ui/libxfce4ui-private.h (rev 0)
+++ libxfce4ui/trunk/libxfce4ui/libxfce4ui-private.h 2008-01-05 21:19:49 UTC (rev 26543)
@@ -0,0 +1,73 @@
+/* $Id$ */
+/*-
+ * Copyright (c) 2007 The Xfce Development Team
+ *
+ * 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.
+ */
+
+#if !defined (LIBXFCE4UI_COMPILATION)
+#error "Only <libxfce4ui/libxfce4ui.h> can be included directly, this file is not part of the public API."
+#endif
+
+#ifndef __LIBXFCE4UI_PRIVATE_H__
+#define __LIBXFCE4UI_PRIVATE_H__
+
+#include <gtk/gtk.h>
+
+G_BEGIN_DECLS
+
+/* avoid copying name, nick and blurb */
+#define LIBXFCE4UI_PARAM_READABLE (G_PARAM_READABLE \
+ | G_PARAM_STATIC_NAME \
+ | G_PARAM_STATIC_NICK \
+ | G_PARAM_STATIC_BLURB)
+#define LIBXFCE4UI_PARAM_WRITABLE (G_PARAM_WRITABLE \
+ | G_PARAM_STATIC_NAME \
+ | G_PARAM_STATIC_NICK \
+ | G_PARAM_STATIC_BLURB)
+#define LIBXFCE4UI_PARAM_READWRITE (G_PARAM_READWRITE \
+ | G_PARAM_STATIC_NAME \
+ | G_PARAM_STATIC_NICK \
+ | G_PARAM_STATIC_BLURB)
+
+/* support for canonical representations of strings */
+#define I_(string) (g_intern_static_string ((string)))
+
+/* avoid trivial g_value_get_*() function calls */
+#ifdef NDEBUG
+#define g_value_get_boolean(v) (((const GValue *) (v))->data[0].v_int)
+#define g_value_get_char(v) (((const GValue *) (v))->data[0].v_int)
+#define g_value_get_uchar(v) (((const GValue *) (v))->data[0].v_uint)
+#define g_value_get_int(v) (((const GValue *) (v))->data[0].v_int)
+#define g_value_get_uint(v) (((const GValue *) (v))->data[0].v_uint)
+#define g_value_get_long(v) (((const GValue *) (v))->data[0].v_long)
+#define g_value_get_ulong(v) (((const GValue *) (v))->data[0].v_ulong)
+#define g_value_get_int64(v) (((const GValue *) (v))->data[0].v_int64)
+#define g_value_get_uint64(v) (((const GValue *) (v))->data[0].v_uint64)
+#define g_value_get_enum(v) (((const GValue *) (v))->data[0].v_long)
+#define g_value_get_flags(v) (((const GValue *) (v))->data[0].v_ulong)
+#define g_value_get_float(v) (((const GValue *) (v))->data[0].v_float)
+#define g_value_get_double(v) (((const GValue *) (v))->data[0].v_double)
+#define g_value_get_string(v) (((const GValue *) (v))->data[0].v_pointer)
+#define g_value_get_param(v) (((const GValue *) (v))->data[0].v_pointer)
+#define g_value_get_boxed(v) (((const GValue *) (v))->data[0].v_pointer)
+#define g_value_get_pointer(v) (((const GValue *) (v))->data[0].v_pointer)
+#define g_value_get_object(v) (((const GValue *) (v))->data[0].v_pointer)
+#endif
+
+G_END_DECLS
+
+#endif /* !__LIBXFCE4UI_PRIVATE_H__ */
Property changes on: libxfce4ui/trunk/libxfce4ui/libxfce4ui-private.h
___________________________________________________________________
Name: svn:keywords
+ Id
Added: libxfce4ui/trunk/libxfce4ui/libxfce4ui.h
===================================================================
--- libxfce4ui/trunk/libxfce4ui/libxfce4ui.h (rev 0)
+++ libxfce4ui/trunk/libxfce4ui/libxfce4ui.h 2008-01-05 21:19:49 UTC (rev 26543)
@@ -0,0 +1,36 @@
+/* $Id$ */
+/*-
+ * Copyright (c) 2007 The Xfce Development Team
+ *
+ * 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.
+ */
+
+#ifndef __LIBXFCE4UI_H__
+#define __LIBXFCE4UI_H__
+
+#define LIBXFCE4UI_INSIDE_LIBXFCE4UI_H
+
+#include <libxfce4ui/libxfce4ui-config.h>
+#include <libxfce4ui/xfce-execute.h>
+#include <libxfce4ui/xfce-dialogs.h>
+#include <libxfce4ui/xfce-gdk-extensions.h>
+#include <libxfce4ui/xfce-gtk-extensions.h>
+#include <libxfce4ui/xfce-pango-extensions.h>
+#include <libxfce4ui/xfce-titled-dialog.h>
+
+#undef LIBXFCE4UI_INSIDE_LIBXFCE4UI_H
+
+#endif /* !__LIBXFCE4UI_H__ */
Property changes on: libxfce4ui/trunk/libxfce4ui/libxfce4ui.h
___________________________________________________________________
Name: svn:keywords
+ Id
Added: libxfce4ui/trunk/libxfce4ui/libxfce4ui.symbols
===================================================================
--- libxfce4ui/trunk/libxfce4ui/libxfce4ui.symbols (rev 0)
+++ libxfce4ui/trunk/libxfce4ui/libxfce4ui.symbols 2008-01-05 21:19:49 UTC (rev 26543)
@@ -0,0 +1,105 @@
+/* $Id$ */
+/*-
+ * Copyright (c) 2007 The Xfce Development Team
+ *
+ * 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.
+ */
+
+/* This file lists all exported symbols. It is used to generate
+ * the gobject.def file used to control exports on Windows and the
+ * libxfce4ui-alias.h/libxfce4ui-aliasdef.c files used to avoid
+ * PLT entries for internal uses of exported functions (see
+ * make-libxfce4ui-alias.pl).
+ *
+ * Every symbol must be included in the right
+ * #ifdef IN_HEADER(sym) #endif and
+ * #ifdef IN_SOURCE(sym) #endif sections.
+ */
+
+#ifdef ALL_FILES
+#define IN_HEADER(x) 1
+#define IN_SOURCE(x) 1
+#endif
+
+/* libxfce4ui-config variables */
+#if IN_HEADER(__LIBXFCE4UI_CONFIG_H__)
+#if IN_SOURCE(__LIBXFCE4UI_CONFIG_C__)
+#ifdef INCLUDE_VARIABLES
+libxfce4ui_major_version
+libxfce4ui_minor_version
+libxfce4ui_micro_version
+#endif
+libxfce4ui_check_version
+#endif
+#endif
+
+/* xfce-dialogs functions */
+#if IN_HEADER(__XFCE_DIALOGS_H__)
+#if IN_SOURCE(__XFCE_DIALOGS_C__)
+xfce_dialog_show_info G_GNUC_PRINTF (2, 3)
+xfce_dialog_show_warning G_GNUC_PRINTF (2, 3)
+xfce_dialog_show_error G_GNUC_PRINTF (3, 4)
+xfce_dialog_confirm G_GNUC_PRINTF (4, 5)
+xfce_message_dialog_new G_GNUC_NULL_TERMINATED
+xfce_message_dialog_run G_GNUC_NULL_TERMINATED
+#endif
+#endif
+
+/* xfce-execute functions */
+#if IN_HEADER(__XFCE_EXECUTE_H__)
+#if IN_SOURCE(__XFCE_EXECUTE_C__)
+xfce_execute_argv_on_screen
+xfce_execute_on_screen
+#endif
+#endif
+
+/* xfce-gdk-extensions functions */
+#if IN_HEADER(__XFCE_GDK_EXTENSIONS_H__)
+#if IN_SOURCE(__XFCE_GDK_EXTENSIONS_C__)
+xfce_gdk_pixbuf_new_from_inline_at_size G_GNUC_MALLOC
+xfce_gdk_screen_get_active
+#endif
+#endif
+
+/* xfce-gtk-extensions functions */
+#if IN_HEADER(__XFCE_GTK_EXTENSIONS_H__)
+#if IN_SOURCE(__XFCE_GTK_EXTENSIONS_C__)
+xfce_gtk_button_new_mixed G_GNUC_MALLOC
+xfce_gtk_label_new_with_style G_GNUC_MALLOC
+xfce_gtk_frame_box_new G_GNUC_MALLOC
+xfce_gtk_frame_box_new_with_content G_GNUC_MALLOC
+xfce_gtk_dialog_parse_parent
+xfce_gtk_window_center_on_active_screen
+#endif
+#endif
+
+/* xfce-pango-extensions functions */
+#if IN_HEADER(__XFCE_PANGO_EXTENSIONS_H__)
+#if IN_SOURCE(__XFCE_PANGO_EXTENSIONS_C__)
+xfce_pango_attr_list_new G_GNUC_MALLOC
+#endif
+#endif
+
+/* xfce-titled-dialog functions */
+#if IN_HEADER(__XFCE_TITLED_DIALOG_H__)
+#if IN_SOURCE(__XFCE_TITLED_DIALOG_C__)
+xfce_titled_dialog_get_type G_GNUC_CONST
+xfce_titled_dialog_new G_GNUC_MALLOC
+xfce_titled_dialog_new_with_buttons G_GNUC_MALLOC
+xfce_titled_dialog_get_subtitle
+xfce_titled_dialog_set_subtitle
+#endif
+#endif
Added: libxfce4ui/trunk/libxfce4ui/make-libxfce4ui-alias.pl
===================================================================
--- libxfce4ui/trunk/libxfce4ui/make-libxfce4ui-alias.pl (rev 0)
+++ libxfce4ui/trunk/libxfce4ui/make-libxfce4ui-alias.pl 2008-01-05 21:19:49 UTC (rev 26543)
@@ -0,0 +1,155 @@
+#!/usr/bin/env perl -w
+#
+# Copyright (c) 2004 The GLib Development Team.
+# Copyright (c) 2005 Benedikt Meurer <benny at xfce.org>.
+#
+# 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.
+#
+
+my $option_def = 0;
+
+if (($#ARGV >= 0) && ($ARGV[0] eq "-def"))
+ {
+ shift;
+ $option_def = 1;
+ }
+
+print <<EOF;
+/* Generated by make-libxfce4ui-alias.pl. Do not edit this file. */
+
+#ifdef HAVE_GNUC_VISIBILITY
+
+#include <glib.h>
+
+EOF
+
+if ($option_def)
+ {
+ print <<EOF
+#undef IN_HEADER
+#define IN_HEADER(x) 1
+
+#undef IN_SOURCE
+#define IN_SOURCE defined
+
+EOF
+ }
+else
+ {
+ print <<EOF
+#define IN_HEADER defined
+#define IN_SOURCE(x) 1
+
+EOF
+ }
+
+my $in_comment = 0;
+my $in_skipped_section = 0;
+
+while (<>)
+ {
+ # ignore empty lines
+ next if /^\s*$/;
+
+ # skip comments
+ if ($_ =~ /^\s*\/\*/)
+ {
+ $in_comment = 1;
+ }
+
+ if ($in_comment)
+ {
+ if ($_ =~ /\*\/\s$/)
+ {
+ $in_comment = 0;
+ }
+ next;
+ }
+
+ # handle ifdefs
+ if ($_ =~ /^\#endif/)
+ {
+ if (!$in_skipped_section)
+ {
+ print $_;
+ }
+
+ $in_skipped_section = 0;
+ next;
+ }
+
+ if ($_ =~ /^\#ifdef\s+(INCLUDE_VARIABLES|INCLUDE_INTERNAL_SYMBOLS|ALL_FILES)/)
+ {
+ $in_skipped_section = 1;
+ }
+
+ if ($in_skipped_section)
+ {
+ next;
+ }
+
+ if ($_ =~ /^\#ifn?def\s+G/)
+ {
+ print $_;
+ next;
+ }
+
+ if ($_ =~ /^\#if.*(IN_SOURCE|IN_HEADER)/)
+ {
+ print $_;
+ next;
+ }
+
+ chop;
+ my $line = $_;
+ my @words;
+ my $attributes = "";
+
+ @words = split (/ /, $line);
+ my $symbol = shift (@words);
+ chomp ($symbol);
+ my $alias = "IA__".$symbol;
+
+ # Drop any Win32 specific .def file syntax, but keep attributes
+ foreach $word (@words)
+ {
+ $attributes = "$attributes $word" unless $word eq "PRIVATE";
+ }
+
+ if (!$option_def)
+ {
+ print <<EOF
+extern __typeof ($symbol) $alias __attribute((visibility("hidden")))$attributes;
+\#define $symbol $alias
+
+EOF
+ }
+ else
+ {
+ print <<EOF
+\#undef $symbol
+extern __typeof ($symbol) $symbol __attribute((alias("$alias"), visibility("default")));
+
+EOF
+ }
+ }
+
+print <<EOF;
+
+#endif /* HAVE_GNUC_VISIBILITY */
+EOF
+
+
Added: libxfce4ui/trunk/libxfce4ui/xfce-dialogs.c
===================================================================
--- libxfce4ui/trunk/libxfce4ui/xfce-dialogs.c (rev 0)
+++ libxfce4ui/trunk/libxfce4ui/xfce-dialogs.c 2008-01-05 21:19:49 UTC (rev 26543)
@@ -0,0 +1,482 @@
+/* $Id$ */
+/*-
+ * Copyright (c) 2006-2007 Benedikt Meurer <benny at xfce.org>
+ * Copyright (c) 2007 The Xfce Development Team
+ *
+ * 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.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#ifdef HAVE_STRING_H
+#include <string.h>
+#endif
+
+#ifdef HAVE_STDARG_H
+#include <stdarg.h>
+#endif
+
+#include <gtk/gtk.h>
+#include <libxfce4util/libxfce4util.h>
+
+#include <libxfce4ui/xfce-dialogs.h>
+#include <libxfce4ui/xfce-gtk-extensions.h>
+#include <libxfce4ui/xfce-gdk-extensions.h>
+#include <libxfce4ui/libxfce4ui-private.h>
+#include <libxfce4ui/libxfce4ui-alias.h>
+
+
+
+static GtkWidget *
+xfce_message_dialog_vnew (gpointer parent,
+ const gchar *title,
+ const gchar *icon_stock_id,
+ const gchar *primary_text,
+ const gchar *secondary_text,
+ const gchar *first_button_text,
+ va_list args)
+{
+ GtkWidget *dialog;
+ GtkWindow *window;
+ GdkScreen *screen;
+ gchar *markup;
+ GtkWidget *image;
+ GtkWidget *button;
+ const gchar *text = first_button_text;
+ const gchar *label;
+ const gchar *stock_id;
+ gint response;
+ GdkPixbuf *pixbuf, *scaled;
+ gint w, h;
+
+ g_return_val_if_fail (primary_text != NULL || secondary_text != NULL, NULL);
+
+ /* parse the parent pointer */
+ screen = xfce_gtk_dialog_parse_parent (parent, &window);
+
+ /* make the primary text large and bold */
+ if (G_LIKELY (primary_text != NULL))
+ markup = g_strdup_printf ("<span weight='bold' size='large'>%s</span>", primary_text);
+ else
+ markup = NULL;
+
+ /* create the dialog */
+ dialog = gtk_message_dialog_new_with_markup (window,
+ GTK_DIALOG_DESTROY_WITH_PARENT | GTK_DIALOG_MODAL,
+ GTK_MESSAGE_OTHER, GTK_BUTTONS_NONE,
+ markup ? markup : secondary_text);
+
+ /* cleanup */
+ g_free (markup);
+
+ /* move the dialog to the appropriate screen and center it */
+ if (G_UNLIKELY (window == NULL && screen != NULL))
+ {
+ gtk_window_set_screen (GTK_WINDOW (dialog), screen);
+ gtk_window_set_position (GTK_WINDOW (dialog), GTK_WIN_POS_CENTER);
+ }
+
+ /* set the secondary text */
+ if (primary_text != NULL && secondary_text != NULL)
+ gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog), secondary_text);
+
+ /* set title */
+ if (title != NULL)
+ gtk_window_set_title (GTK_WINDOW (dialog), title);
+
+ if (icon_stock_id != NULL)
+ {
+ /* set dialog and window icon */
+ image = gtk_image_new_from_stock (icon_stock_id, GTK_ICON_SIZE_DIALOG);
+ gtk_message_dialog_set_image (GTK_MESSAGE_DIALOG (dialog), image);
+ gtk_widget_show (image);
+ gtk_window_set_icon_name (GTK_WINDOW (dialog), icon_stock_id);
+ }
+
+ /* add buttons */
+ while (text != NULL)
+ {
+ if (strcmp (text, XFCE_BUTTON_TYPE_MIXED) == 0)
+ {
+ /* get arguments */
+ stock_id = va_arg (args, const gchar *);
+ label = va_arg (args, const gchar *);
+ response = va_arg (args, gint);
+
+ /* add a mixed button to the dialog */
+ button = xfce_gtk_button_new_mixed (stock_id, label);
+ gtk_dialog_add_action_widget (GTK_DIALOG (dialog), button, response);
+ gtk_widget_show (button);
+ }
+ else if (strcmp (text, XFCE_BUTTON_TYPE_PIXBUF) == 0)
+ {
+ /* get arguments */
+ pixbuf = va_arg (args, GdkPixbuf *);
+ label = va_arg (args, const gchar *);
+ response = va_arg (args, gint);
+
+ /* lookup real icons size for button icons */
+ gtk_icon_size_lookup (GTK_ICON_SIZE_BUTTON, &w, &h);
+
+ /* scale the pixbuf if needed */
+ if (gdk_pixbuf_get_width (pixbuf) != w || gdk_pixbuf_get_height (pixbuf) != h)
+ scaled = gdk_pixbuf_scale_simple (pixbuf, w, h, GDK_INTERP_BILINEAR);
+ else
+ scaled = NULL;
+
+ /* create image */
+ image = gtk_image_new_from_pixbuf (scaled ? scaled : pixbuf);
+
+ /* release scaled image */
+ if (scaled != NULL)
+ g_object_unref (G_OBJECT (scaled));
+
+ /* create button and add it to the dialog */
+ button = gtk_button_new_with_label (label);
+ gtk_button_set_image (GTK_BUTTON (button), image);
+ gtk_dialog_add_action_widget (GTK_DIALOG (dialog), button, response);
+ gtk_widget_show (button);
+ }
+ else /* stock button */
+ {
+ /* get arguments */
+ stock_id = text;
+ response = va_arg (args, gint);
+
+ /* add a stock button to the dialog */
+ gtk_dialog_add_button (GTK_DIALOG (dialog), stock_id, response);
+ }
+
+ /* get the next argument */
+ text = va_arg (args, const gchar *);
+ }
+
+ return dialog;
+}
+
+
+
+/**
+ * xfce_dialog_show_info:
+ * @parent : a #GtkWidget, a #GdkScreen or %NULL, see xfce_gtk_dialog_parse_parent() for more information.
+ * @format : the printf()-style format for the primary problem description.
+ * @... : argument list for the @format.
+ *
+ * Displays an information dialog on @parent using the @format as message.
+ *
+ * If @widget is not %NULL and @widget is part of a #GtkWindow, the function makes sure
+ * that the toplevel window is visible prior to displaying the information dialog.
+ */
+void
+xfce_dialog_show_info (gpointer parent,
+ const gchar *format,
+ ...)
+{
+ va_list args;
+ gchar *primary_text;
+
+ /* create primary text */
+ va_start (args, format);
+ primary_text = g_strdup_vprintf (format, args);
+ va_end (args);
+
+ /* run dialog */
+ xfce_message_dialog_run (parent, _("Information"), GTK_STOCK_DIALOG_INFO,
+ primary_text, NULL,
+ GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE, NULL);
+
+ /* cleanup */
+ g_free (primary_text);
+}
+
+
+
+/**
+ * xfce_dialog_show_warning:
+ * @parent : a #GtkWidget, a #GdkScreen or %NULL, see xfce_gtk_dialog_parse_parent() for more information.
+ * @format : the printf()-style format for the primary problem description.
+ * @... : argument list for the @format.
+ *
+ * Displays a warning dialog on @parent using the @format as message.
+ *
+ * If @widget is not %NULL and @widget is part of a #GtkWindow, the function makes sure
+ * that the toplevel window is visible prior to displaying the message dialog.
+ */
+void
+xfce_dialog_show_warning (gpointer parent,
+ const gchar *format,
+ ...)
+{
+ va_list args;
+ gchar *primary_text;
+
+ /* create primary text */
+ va_start (args, format);
+ primary_text = g_strdup_vprintf (format, args);
+ va_end (args);
+
+ /* run dialog */
+ xfce_message_dialog_run (parent, _("Warning"), GTK_STOCK_DIALOG_WARNING,
+ primary_text, NULL,
+ GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE, NULL);
+
+ /* cleanup */
+ g_free (primary_text);
+}
+
+
+
+/**
+ * xfce_dialog_show_error:
+ * @parent : a #GtkWidget, a #GdkScreen or %NULL, see xfce_gtk_dialog_parse_parent() for more information.
+ * @error : a #GError, which gives a more precise description of the problem or %NULL.
+ * @format : the printf()-style format for the primary problem description.
+ * @... : argument list for the @format.
+ *
+ * Displays an error dialog on @parent using the @format as primary message and optionally
+ * displaying @error as secondary error text.
+ *
+ * If @parent is not %NULL and @parent is part of a #GtkWindow, the function makes sure
+ * that the toplevel window is visible prior to displaying the error dialog.
+ */
+void
+xfce_dialog_show_error (gpointer parent,
+ const GError *error,
+ const gchar *format,
+ ...)
+{
+ va_list args;
+ gchar *primary_text;
+
+ /* create primary text */
+ va_start (args, format);
+ primary_text = g_strdup_vprintf (format, args);
+ va_end (args);
+
+ /* run dialog */
+ xfce_message_dialog_run (parent, _("Error"), GTK_STOCK_DIALOG_ERROR,
+ primary_text, error ? error->message : NULL,
+ GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE, NULL);
+
+ /* cleanup */
+ g_free (primary_text);
+}
+
+
+
+/**
+ * xfce_dialog_confirm:
+ * @parent : a #GtkWidget, a #GdkScreen or %NULL, see xfce_gtk_dialog_parse_parent() for more information.
+ * @stock_id : the stock name of the confirm button, for example #GTK_STOCK_YES or #GTK_STOCK_CLEAR.
+ * @confirm_label : if non-%NULL, this text is used on the confirm button together with the @stock_id icon.
+ * @format : the printf()-style format for the dialog question.
+ * @... : argument list for the @format.
+ *
+ * Runs a questions dialog, that has a 'Cancel' and a 'Confirm' button. The 'Confirm'
+ * button text can be set by @action if given.
+ *
+ * If @stock_id is equal to #GTK_STOCK_YES, the 'Cancel' button becomes a 'No' button.
+ *
+ * Return value: TRUE if the user confirms, else FALSE.
+ */
+gboolean
+xfce_dialog_confirm (gpointer parent,
+ const gchar *stock_id,
+ const gchar *confirm_label,
+ const gchar *format,
+ ...)
+{
+ va_list args;
+ gchar *primary_text;
+ const gchar *no_stock_id;
+ gint response_id;
+
+ g_return_val_if_fail (stock_id != NULL || confirm_label != NULL, FALSE);
+
+ /* create primary text */
+ va_start (args, format);
+ primary_text = g_strdup_vprintf (format, args);
+ va_end (args);
+
+ /* whether this will be a yes/no dialog */
+ if (stock_id != NULL && strcmp (stock_id, GTK_STOCK_YES) == 0)
+ no_stock_id = GTK_STOCK_NO;
+ else
+ no_stock_id = GTK_STOCK_CANCEL;
+
+ /* run dialog */
+ response_id = xfce_message_dialog_run (parent, _("Question"), GTK_STOCK_DIALOG_QUESTION,
+ primary_text, NULL,
+ no_stock_id, GTK_RESPONSE_NO,
+ XFCE_BUTTON_TYPE_MIXED, stock_id, confirm_label, GTK_RESPONSE_YES, NULL);
+
+ /* cleanup */
+ g_free (primary_text);
+
+ return (response_id == GTK_RESPONSE_YES);
+}
+
+
+
+/**
+ * xfce_message_dialog_new:
+ * @parent : a #GtkWidget, a #GdkScreen or %NULL, see xfce_gtk_dialog_parse_parent() for more information.
+ * @title : title of the dialog, or %NULL.
+ * @stock_id : gtk stock icon name to show in the dialog.
+ * @primary_text : primary text shown in large bold font.
+ * @secondary_text : secondary text shown in normal font.
+ * @first_button_text : text for the first button.
+ * @... : %NULL ended list of parameters.
+ *
+ * xfce_message_dialog_new() allows you to easily create Gtk+ message dialogs.
+ * It accepts GTK+ stock buttons, mixed buttons (using XFCE_BUTTON_TYPE_MIXED)
+ * or buttons with a #GdkPixbuf (using XFCE_BUTTON_TYPE_PIXBUF).
+ *
+ * The buttons are defined by @first_button_text and the next arguments in the
+ * following format @type, @param1[, @param2, @param3].
+ *
+ * <variablelist>
+ * <varlistentry>
+ * <term><varname>XFCE_BUTTON_TYPE_MIXED</varname></term>
+ * <listitem>
+ * <para>
+ * This allows you to easily create mixed buttons in a dialog.
+ * @param1 is used for the stock_id, @param2 for the label and
+ * @param3 for the response_id. See also xfce_gtk_button_new_mixed().
+ * </para>
+ * </listitem>
+ * </varlistentry>
+ * <varlistentry>
+ * <term><varname>XFCE_BUTTON_TYPE_PIXBUF</varname></term>
+ * <listitem>
+ * <para>
+ * Creates a button with the #GdkPixbuf as button icon.
+ * @param1 is the #GdkPixuf, @param2 for the label and
+ * @param3 for the response_id.
+ * </para>
+ * </listitem>
+ * </varlistentry>
+ * <varlistentry>
+ * <term>Stock Buttons</term>
+ * <listitem>
+ * <para>
+ * When the variables above were not matched, the button type
+ * will be a stock button. @type will be the stock id, @param1
+ * is used for the response_id.
+ * </para>
+ * </listitem>
+ * </varlistentry>
+ * </variablelist>
+ *
+ * To clarify this behaviour see the example below. We create a dialog with
+ * two stock buttons, a #GdkPixbuf button and a mixed button.
+ *
+ * <example>
+ * <title>Creating a Xfce Message Dialog</title>
+ * <programlisting>
+ * GdkPixbuf *pixbuf = gdk_pixbuf_new_from_file_at_size (filename, 24, 24);
+ *
+ * GtkWidget *dialog = xfce_message_dialog (parent, "Question",
+ * GTK_STOCK_DIALOG_QUESTION,
+ * "There are unsaved modifications",
+ * "The menu has been modified, do you want to save it before quitting?",
+ * GTK_STOCK_SAVE, GTK_RESPONSE_YES,
+ * XFCE_BUTTON_TYPE_MIXED, GTK_STOCK_DELETE, "Forget modifications", GTK_RESPONSE_APPLY,
+ * XFCE_BUTTON_TYPE_PIXBUF, pixbuf, "Quit", GTK_RESPONSE_NO,
+ * GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
+ * NULL);
+ *
+ * g_object_unref (G_OBJECT (pixbuf));
+ * </programlisting>
+ * </example>
+ *
+ * Return value: A new #GtkMessageDialog.
+ **/
+GtkWidget *
+xfce_message_dialog_new (gpointer parent,
+ const gchar *title,
+ const gchar *stock_id,
+ const gchar *primary_text,
+ const gchar *secondary_text,
+ const gchar *first_button_text,
+ ...)
+{
+ va_list args;
+ GtkWidget *dialog;
+
+ /* create dialog */
+ va_start (args, first_button_text);
+ dialog = xfce_message_dialog_vnew (parent, title, stock_id, primary_text, secondary_text, first_button_text, args);
+ va_end (args);
+
+ return dialog;
+}
+
+
+
+/**
+ * xfce_message_dialog_run:
+ * @parent : a #GtkWidget, a #GdkScreen or %NULL, see xfce_gtk_dialog_parse_parent() for more information.
+ * @title : title of the dialog, or %NULL.
+ * @stock_id : gtk stock icon name to show in the dialog.
+ * @primary_text : primary text shown in large bold font.
+ * @secondary_text : secondary text shown in normal font.
+ * @first_button_text : text for the first button.
+ * @... : %NULL ended list of parameters.
+ *
+ * Create a new dialog as in xfce_message_dialog_new(), then runs the
+ * dialog and return the response id selected by the user.
+ *
+ * See xfce_message_dialog_new() for more information.
+ *
+ * Returns: the selected response id.
+ **/
+gint
+xfce_message_dialog_run (gpointer parent,
+ const gchar *title,
+ const gchar *stock_id,
+ const gchar *primary_text,
+ const gchar *secondary_text,
+ const gchar *first_button_text,
+ ...)
+{
+ va_list args;
+ GtkWidget *dialog;
+ gint response_id;
+
+ /* create dialog */
+ va_start (args, first_button_text);
+ dialog = xfce_message_dialog_vnew (parent, title, stock_id, primary_text, secondary_text, first_button_text, args);
+ va_end (args);
+
+ /* run the dialog */
+ response_id = gtk_dialog_run (GTK_DIALOG (dialog));
+
+ /* hide */
+ gtk_widget_hide (dialog);
+
+ /* destroy */
+ gtk_widget_destroy (dialog);
+
+ return response_id;
+}
+
+
+
+#define __XFCE_DIALOGS_C__
+#include <libxfce4ui/libxfce4ui-aliasdef.c>
Property changes on: libxfce4ui/trunk/libxfce4ui/xfce-dialogs.c
___________________________________________________________________
Name: svn:keywords
+ Id
Added: libxfce4ui/trunk/libxfce4ui/xfce-dialogs.h
===================================================================
--- libxfce4ui/trunk/libxfce4ui/xfce-dialogs.h (rev 0)
+++ libxfce4ui/trunk/libxfce4ui/xfce-dialogs.h 2008-01-05 21:19:49 UTC (rev 26543)
@@ -0,0 +1,72 @@
+/* $Id$ */
+/*-
+ * Copyright (c) 2007 The Xfce Development Team
+ *
+ * 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.
+ */
+
+#if !defined (LIBXFCE4UI_INSIDE_LIBXFCE4UI_H) && !defined (LIBXFCE4UI_COMPILATION)
+#error "Only <libxfce4ui/libxfce4ui.h> can be included directly, this file is not part of the public API."
+#endif
+
+#ifndef __XFCE_DIALOGS_H__
+#define __XFCE_DIALOGS_H__
+
+#include <gtk/gtk.h>
+
+G_BEGIN_DECLS
+
+#define XFCE_BUTTON_TYPE_MIXED "button-mixed"
+#define XFCE_BUTTON_TYPE_PIXBUF "button-pixbuf"
+
+void xfce_dialog_show_info (gpointer parent,
+ const gchar *format,
+ ...) G_GNUC_PRINTF (2, 3);
+
+void xfce_dialog_show_warning (gpointer parent,
+ const gchar *format,
+ ...) G_GNUC_PRINTF (2, 3);
+
+void xfce_dialog_show_error (gpointer parent,
+ const GError *error,
+ const gchar *format,
+ ...) G_GNUC_PRINTF (3, 4);
+
+gboolean xfce_dialog_confirm (gpointer parent,
+ const gchar *stock_id,
+ const gchar *confirm_label,
+ const gchar *format,
+ ...) G_GNUC_PRINTF (4, 5);
+
+GtkWidget *xfce_message_dialog_new (gpointer parent,
+ const gchar *title,
+ const gchar *stock_id,
+ const gchar *primary_text,
+ const gchar *secondary_text,
+ const gchar *first_button_text,
+ ...) G_GNUC_NULL_TERMINATED;
+
+gint xfce_message_dialog_run (gpointer parent,
+ const gchar *title,
+ const gchar *stock_id,
+ const gchar *primary_text,
+ const gchar *secondary_text,
+ const gchar *first_button_text,
+ ...) G_GNUC_NULL_TERMINATED;
+
+G_END_DECLS
+
+#endif /* !__XFCE_DIALOGS_H__ */
Property changes on: libxfce4ui/trunk/libxfce4ui/xfce-dialogs.h
___________________________________________________________________
Name: svn:keywords
+ Id
Added: libxfce4ui/trunk/libxfce4ui/xfce-execute.c
===================================================================
--- libxfce4ui/trunk/libxfce4ui/xfce-execute.c (rev 0)
+++ libxfce4ui/trunk/libxfce4ui/xfce-execute.c 2008-01-05 21:19:49 UTC (rev 26543)
@@ -0,0 +1,391 @@
+/* $Id$ */
+/*-
+ * Copyright (c) 2005-2007 Benedikt Meurer <benny at xfce.org>
+ * Copyright (c) 2007 The Xfce Development Team
+ *
+ * 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.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#ifdef HAVE_STRING_H
+#include <string.h>
+#endif
+
+#include <gdk/gdk.h>
+
+#ifdef GDK_WINDOWING_X11
+#include <X11/Xatom.h>
+#include <gdk/gdkx.h>
+#endif
+
+#ifdef HAVE_LIBSTARTUP_NOTIFICATION
+#include <libsn/sn.h>
+#endif
+
+#include <libxfce4ui/xfce-execute.h>
+#include <libxfce4ui/xfce-gdk-extensions.h>
+#include <libxfce4ui/libxfce4ui-private.h>
+#include <libxfce4ui/libxfce4ui-alias.h>
+
+/* the maximum time for an application to startup */
+#define XFCE_EXECUTE_STARTUP_TIMEOUT (30 * 1000)
+
+
+
+#ifdef HAVE_LIBSTARTUP_NOTIFICATION
+typedef struct
+{
+ SnLauncherContext *sn_launcher;
+ guint timeout_id;
+ guint watch_id;
+ GPid pid;
+} XfceStartupData;
+
+
+
+
+static gboolean
+xfce_execute_startup_timeout (gpointer user_data)
+{
+ XfceStartupData *startup_data = user_data;
+ GTimeVal now;
+ gdouble elapsed;
+ glong tv_sec;
+ glong tv_usec;
+
+ GDK_THREADS_ENTER ();
+
+ /* determine the amount of elapsed time */
+ g_get_current_time (&now);
+ sn_launcher_context_get_last_active_time (startup_data->sn_launcher, &tv_sec, &tv_usec);
+ elapsed = (((gdouble) now.tv_sec - tv_sec) * G_USEC_PER_SEC + (now.tv_usec - tv_usec)) / 1000.0;
+
+ /* check if the timeout was reached */
+ if (elapsed >= XFCE_EXECUTE_STARTUP_TIMEOUT)
+ {
+ /* abort the startup notification */
+ sn_launcher_context_complete (startup_data->sn_launcher);
+ sn_launcher_context_unref (startup_data->sn_launcher);
+ startup_data->sn_launcher = NULL;
+ }
+
+ GDK_THREADS_LEAVE ();
+
+ /* keep the startup timeout if not elapsed */
+ return (elapsed < XFCE_EXECUTE_STARTUP_TIMEOUT);
+}
+
+
+
+static void
+xfce_execute_startup_timeout_destroy (gpointer user_data)
+{
+ XfceStartupData *startup_data = user_data;
+
+ g_return_if_fail (startup_data->sn_launcher == NULL);
+
+ /* cancel the watch (if any) */
+ if (startup_data->watch_id != 0)
+ g_source_remove (startup_data->watch_id);
+
+ /* make sure we don't leave zombies */
+ g_child_watch_add_full (G_PRIORITY_LOW, startup_data->pid,
+ (GChildWatchFunc) g_spawn_close_pid,
+ NULL, NULL);
+
+ /* release the startup data */
+ g_slice_free (XfceStartupData, startup_data);
+}
+
+
+
+static void
+xfce_execute_startup_watch (GPid pid,
+ gint status,
+ gpointer user_data)
+{
+ XfceStartupData *startup_data = user_data;
+
+ g_return_if_fail (startup_data->sn_launcher != NULL);
+ g_return_if_fail (startup_data->watch_id != 0);
+ g_return_if_fail (startup_data->pid == pid);
+
+ /* abort the startup notification (application exited) */
+ sn_launcher_context_complete (startup_data->sn_launcher);
+ sn_launcher_context_unref (startup_data->sn_launcher);
+ startup_data->sn_launcher = NULL;
+
+ /* cancel the startup notification timeout */
+ g_source_remove (startup_data->timeout_id);
+}
+
+
+
+static gint
+xfce_execute_get_active_workspace_number (GdkScreen *screen)
+{
+ GdkWindow *root;
+ gulong bytes_after_ret = 0;
+ gulong nitems_ret = 0;
+ guint *prop_ret = NULL;
+ Atom _NET_CURRENT_DESKTOP;
+ Atom _WIN_WORKSPACE;
+ Atom type_ret = None;
+ gint format_ret;
+ gint ws_num = 0;
+
+ gdk_error_trap_push ();
+
+ root = gdk_screen_get_root_window (screen);
+
+ /* determine the X atom values */
+ _NET_CURRENT_DESKTOP = XInternAtom (GDK_WINDOW_XDISPLAY (root), "_NET_CURRENT_DESKTOP", False);
+ _WIN_WORKSPACE = XInternAtom (GDK_WINDOW_XDISPLAY (root), "_WIN_WORKSPACE", False);
+
+ if (XGetWindowProperty (GDK_WINDOW_XDISPLAY (root), GDK_WINDOW_XWINDOW (root),
+ _NET_CURRENT_DESKTOP, 0, 32, False, XA_CARDINAL,
+ &type_ret, &format_ret, &nitems_ret, &bytes_after_ret,
+ (gpointer) &prop_ret) != Success)
+ {
+ if (XGetWindowProperty (GDK_WINDOW_XDISPLAY (root), GDK_WINDOW_XWINDOW (root),
+ _WIN_WORKSPACE, 0, 32, False, XA_CARDINAL,
+ &type_ret, &format_ret, &nitems_ret, &bytes_after_ret,
+ (gpointer) &prop_ret) != Success)
+ {
+ if (G_UNLIKELY (prop_ret != NULL))
+ {
+ XFree (prop_ret);
+ prop_ret = NULL;
+ }
+ }
+ }
+
+ if (G_LIKELY (prop_ret != NULL))
+ {
+ if (G_LIKELY (type_ret != None && format_ret != 0))
+ ws_num = *prop_ret;
+ XFree (prop_ret);
+ }
+
+ gdk_error_trap_pop ();
+
+ return ws_num;
+}
+#endif
+
+
+
+/**
+ * xfce_execute_argv_on_screen:
+ * @screen : a #GdkScreen or %NULL to use the active screen, see xfce_gdk_screen_get_active().
+ * @working_directory : child's current working directory or %NULL to inherit parent's.
+ * @argv : child's argument vector.
+ * @envp : child's environment vector or %NULL to inherit parent's.
+ * @flags : flags from #GSpawnFlags.
+ * @startup_notify : whether to use startup notification.
+ * @icon_name : application icon or %NULL.
+ * @error : return location for errors or %NULL.
+ *
+ * Like gdk_spawn_on_screen(), but also supports startup notification
+ * (if Libxfce4ui was built with startup notification support).
+ *
+ * Return value: %TRUE on success, %FALSE if @error is set.
+ **/
+gboolean
+xfce_execute_argv_on_screen (GdkScreen *screen,
+ const gchar *working_directory,
+ gchar **argv,
+ gchar **envp,
+ GSpawnFlags flags,
+ gboolean startup_notify,
+ const gchar *icon_name,
+ GError **error)
+{
+ extern gchar **environ;
+ gboolean succeed;
+ gchar **cenvp;
+ gint n;
+ gint n_cenvp;
+ gchar *display_name;
+ GPid pid;
+#ifdef HAVE_LIBSTARTUP_NOTIFICATION
+ SnLauncherContext *sn_launcher = NULL;
+ XfceStartupData *startup_data;
+ SnDisplay *sn_display = NULL;
+ gint sn_workspace;
+#endif
+
+ g_return_val_if_fail (screen == NULL || GDK_IS_SCREEN (screen), FALSE);
+ g_return_val_if_fail (error == NULL || *error == NULL, FALSE);
+
+ /* lookup the screen with the pointer */
+ if (screen == NULL)
+ screen = xfce_gdk_screen_get_active ();
+
+ /* use environ when envp is null */
+ if (G_LIKELY (envp == NULL))
+ envp = environ;
+
+ /* setup the child environment, without startup id and display */
+ cenvp = g_new0 (gchar *, g_strv_length (envp) + 3);
+ for (n = n_cenvp = 0; envp[n] != NULL; n++)
+ if (strncmp (envp[n], "DESKTOP_STARTUP_ID", 18) != 0 && strncmp (envp[n], "DISPLAY", 7