summaryrefslogtreecommitdiff
path: root/engines/balou
diff options
context:
space:
mode:
Diffstat (limited to 'engines/balou')
-rw-r--r--engines/balou/Makefile.am39
-rw-r--r--engines/balou/Makefile.in912
-rw-r--r--engines/balou/TODO21
-rw-r--r--engines/balou/balou-theme.c519
-rw-r--r--engines/balou/balou-theme.h57
-rw-r--r--engines/balou/balou.c496
-rw-r--r--engines/balou/balou.h69
-rw-r--r--engines/balou/config.c1003
-rw-r--r--engines/balou/engine.c100
-rw-r--r--engines/balou/gnome-uri.c149
-rw-r--r--engines/balou/gnome-uri.h30
-rw-r--r--engines/balou/scripts/Makefile.am6
-rw-r--r--engines/balou/scripts/Makefile.in588
-rwxr-xr-xengines/balou/scripts/balou-export-theme51
-rwxr-xr-xengines/balou/scripts/balou-install-theme103
-rw-r--r--engines/balou/themes/Default/Makefile.am7
-rw-r--r--engines/balou/themes/Default/Makefile.in575
-rw-r--r--engines/balou/themes/Default/logo.pngbin0 -> 201680 bytes
-rw-r--r--engines/balou/themes/Default/themerc50
-rw-r--r--engines/balou/themes/Makefile.am1
-rw-r--r--engines/balou/themes/Makefile.in694
21 files changed, 5470 insertions, 0 deletions
diff --git a/engines/balou/Makefile.am b/engines/balou/Makefile.am
new file mode 100644
index 0000000..d049a35
--- /dev/null
+++ b/engines/balou/Makefile.am
@@ -0,0 +1,39 @@
+SUBDIRS = \
+ scripts \
+ themes
+
+baloudir = $(libdir)/xfce4/session/splash-engines
+
+balou_LTLIBRARIES = libbalou.la
+
+libbalou_la_SOURCES = \
+ balou-theme.c \
+ balou-theme.h \
+ balou.c \
+ balou.h \
+ config.c \
+ engine.c \
+ gnome-uri.c \
+ gnome-uri.h
+
+libbalou_la_CFLAGS = \
+ -I$(top_srcdir) \
+ $(LIBXFCE4UI_CFLAGS) \
+ $(XFCONF_CFLAGS) \
+ -DBALOU_EXPORT_THEME=\"$(HELPER_PATH_PREFIX)/xfce4/session/balou-export-theme\" \
+ -DBALOU_INSTALL_THEME=\"$(HELPER_PATH_PREFIX)/xfce4/session/balou-install-theme\"
+
+libbalou_la_LDFLAGS = \
+ -avoid-version \
+ -no-undefined \
+ -module
+
+libbalou_la_LIBADD = \
+ $(top_builddir)/libxfsm/libxfsm-4.6.la \
+ $(LIBXFCE4UI_LIBS) \
+ $(XFCONF_LIBS) \
+ $(LIBM)
+
+
+libbalou_la_DEPENDENCIES = \
+ $(top_builddir)/libxfsm/libxfsm-4.6.la
diff --git a/engines/balou/Makefile.in b/engines/balou/Makefile.in
new file mode 100644
index 0000000..0e29271
--- /dev/null
+++ b/engines/balou/Makefile.in
@@ -0,0 +1,912 @@
+# Makefile.in generated by automake 1.14.1 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994-2013 Free Software Foundation, Inc.
+
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+@SET_MAKE@
+
+VPATH = @srcdir@
+am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
+am__make_running_with_option = \
+ case $${target_option-} in \
+ ?) ;; \
+ *) echo "am__make_running_with_option: internal error: invalid" \
+ "target option '$${target_option-}' specified" >&2; \
+ exit 1;; \
+ esac; \
+ has_opt=no; \
+ sane_makeflags=$$MAKEFLAGS; \
+ if $(am__is_gnu_make); then \
+ sane_makeflags=$$MFLAGS; \
+ else \
+ case $$MAKEFLAGS in \
+ *\\[\ \ ]*) \
+ bs=\\; \
+ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
+ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
+ esac; \
+ fi; \
+ skip_next=no; \
+ strip_trailopt () \
+ { \
+ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
+ }; \
+ for flg in $$sane_makeflags; do \
+ test $$skip_next = yes && { skip_next=no; continue; }; \
+ case $$flg in \
+ *=*|--*) continue;; \
+ -*I) strip_trailopt 'I'; skip_next=yes;; \
+ -*I?*) strip_trailopt 'I';; \
+ -*O) strip_trailopt 'O'; skip_next=yes;; \
+ -*O?*) strip_trailopt 'O';; \
+ -*l) strip_trailopt 'l'; skip_next=yes;; \
+ -*l?*) strip_trailopt 'l';; \
+ -[dEDm]) skip_next=yes;; \
+ -[JT]) skip_next=yes;; \
+ esac; \
+ case $$flg in \
+ *$$target_option*) has_opt=yes; break;; \
+ esac; \
+ done; \
+ test $$has_opt = yes
+am__make_dryrun = (target_option=n; $(am__make_running_with_option))
+am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
+pkgdatadir = $(datadir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkglibexecdir = $(libexecdir)/@PACKAGE@
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = @build@
+host_triplet = @host@
+subdir = engines/balou
+DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
+ $(top_srcdir)/depcomp TODO
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+ $(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
+am__vpath_adj = case $$p in \
+ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
+ *) f=$$p;; \
+ esac;
+am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
+am__install_max = 40
+am__nobase_strip_setup = \
+ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
+am__nobase_strip = \
+ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
+am__nobase_list = $(am__nobase_strip_setup); \
+ for p in $$list; do echo "$$p $$p"; done | \
+ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
+ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
+ if (++n[$$2] == $(am__install_max)) \
+ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
+ END { for (dir in files) print dir, files[dir] }'
+am__base_list = \
+ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
+ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
+am__uninstall_files_from_dir = { \
+ test -z "$$files" \
+ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
+ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
+ $(am__cd) "$$dir" && rm -f $$files; }; \
+ }
+am__installdirs = "$(DESTDIR)$(baloudir)"
+LTLIBRARIES = $(balou_LTLIBRARIES)
+am__DEPENDENCIES_1 =
+am_libbalou_la_OBJECTS = libbalou_la-balou-theme.lo \
+ libbalou_la-balou.lo libbalou_la-config.lo \
+ libbalou_la-engine.lo libbalou_la-gnome-uri.lo
+libbalou_la_OBJECTS = $(am_libbalou_la_OBJECTS)
+AM_V_lt = $(am__v_lt_@AM_V@)
+am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
+am__v_lt_0 = --silent
+am__v_lt_1 =
+libbalou_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(libbalou_la_CFLAGS) \
+ $(CFLAGS) $(libbalou_la_LDFLAGS) $(LDFLAGS) -o $@
+AM_V_P = $(am__v_P_@AM_V@)
+am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
+am__v_P_0 = false
+am__v_P_1 = :
+AM_V_GEN = $(am__v_GEN_@AM_V@)
+am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
+am__v_GEN_0 = @echo " GEN " $@;
+am__v_GEN_1 =
+AM_V_at = $(am__v_at_@AM_V@)
+am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
+am__v_at_0 = @
+am__v_at_1 =
+DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
+depcomp = $(SHELL) $(top_srcdir)/depcomp
+am__depfiles_maybe = depfiles
+am__mv = mv -f
+COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
+ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
+ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
+ $(AM_CFLAGS) $(CFLAGS)
+AM_V_CC = $(am__v_CC_@AM_V@)
+am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
+am__v_CC_0 = @echo " CC " $@;
+am__v_CC_1 =
+CCLD = $(CC)
+LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
+ $(AM_LDFLAGS) $(LDFLAGS) -o $@
+AM_V_CCLD = $(am__v_CCLD_@AM_V@)
+am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
+am__v_CCLD_0 = @echo " CCLD " $@;
+am__v_CCLD_1 =
+SOURCES = $(libbalou_la_SOURCES)
+DIST_SOURCES = $(libbalou_la_SOURCES)
+RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \
+ ctags-recursive dvi-recursive html-recursive info-recursive \
+ install-data-recursive install-dvi-recursive \
+ install-exec-recursive install-html-recursive \
+ install-info-recursive install-pdf-recursive \
+ install-ps-recursive install-recursive installcheck-recursive \
+ installdirs-recursive pdf-recursive ps-recursive \
+ tags-recursive uninstall-recursive
+am__can_run_installinfo = \
+ case $$AM_UPDATE_INFO_DIR in \
+ n|no|NO) false;; \
+ *) (install-info --version) >/dev/null 2>&1;; \
+ esac
+RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
+ distclean-recursive maintainer-clean-recursive
+am__recursive_targets = \
+ $(RECURSIVE_TARGETS) \
+ $(RECURSIVE_CLEAN_TARGETS) \
+ $(am__extra_recursive_targets)
+AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
+ distdir
+am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
+# Read a list of newline-separated strings from the standard input,
+# and print each of them once, without duplicates. Input order is
+# *not* preserved.
+am__uniquify_input = $(AWK) '\
+ BEGIN { nonempty = 0; } \
+ { items[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in items) print i; }; } \
+'
+# Make sure the list of sources is unique. This is necessary because,
+# e.g., the same source file might be shared among _SOURCES variables
+# for different programs/libraries.
+am__define_uniq_tagged_files = \
+ list='$(am__tagged_files)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | $(am__uniquify_input)`
+ETAGS = etags
+CTAGS = ctags
+DIST_SUBDIRS = $(SUBDIRS)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+am__relativize = \
+ dir0=`pwd`; \
+ sed_first='s,^\([^/]*\)/.*$$,\1,'; \
+ sed_rest='s,^[^/]*/*,,'; \
+ sed_last='s,^.*/\([^/]*\)$$,\1,'; \
+ sed_butlast='s,/*[^/]*$$,,'; \
+ while test -n "$$dir1"; do \
+ first=`echo "$$dir1" | sed -e "$$sed_first"`; \
+ if test "$$first" != "."; then \
+ if test "$$first" = ".."; then \
+ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
+ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
+ else \
+ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
+ if test "$$first2" = "$$first"; then \
+ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
+ else \
+ dir2="../$$dir2"; \
+ fi; \
+ dir0="$$dir0"/"$$first"; \
+ fi; \
+ fi; \
+ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
+ done; \
+ reldir="$$dir2"
+ACLOCAL = @ACLOCAL@
+ALL_LINGUAS = @ALL_LINGUAS@
+AMTAR = @AMTAR@
+AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
+AR = @AR@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+BACKEND = @BACKEND@
+CATALOGS = @CATALOGS@
+CATOBJEXT = @CATOBJEXT@
+CC = @CC@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DATADIRNAME = @DATADIRNAME@
+DBUS_CFLAGS = @DBUS_CFLAGS@
+DBUS_GLIB_CFLAGS = @DBUS_GLIB_CFLAGS@
+DBUS_GLIB_LIBS = @DBUS_GLIB_LIBS@
+DBUS_GLIB_REQUIRED_VERSION = @DBUS_GLIB_REQUIRED_VERSION@
+DBUS_GLIB_VERSION = @DBUS_GLIB_VERSION@
+DBUS_LIBS = @DBUS_LIBS@
+DBUS_REQUIRED_VERSION = @DBUS_REQUIRED_VERSION@
+DBUS_VERSION = @DBUS_VERSION@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+DLLTOOL = @DLLTOOL@
+DSYMUTIL = @DSYMUTIL@
+DUMPBIN = @DUMPBIN@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+EXEEXT = @EXEEXT@
+FGREP = @FGREP@
+GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
+GMODULE_CFLAGS = @GMODULE_CFLAGS@
+GMODULE_LIBS = @GMODULE_LIBS@
+GMODULE_REQUIRED_VERSION = @GMODULE_REQUIRED_VERSION@
+GMODULE_VERSION = @GMODULE_VERSION@
+GMOFILES = @GMOFILES@
+GMSGFMT = @GMSGFMT@
+GREP = @GREP@
+GTK_CFLAGS = @GTK_CFLAGS@
+GTK_LIBS = @GTK_LIBS@
+GTK_REQUIRED_VERSION = @GTK_REQUIRED_VERSION@
+GTK_VERSION = @GTK_VERSION@
+HELPER_PATH_PREFIX = @HELPER_PATH_PREFIX@
+ICEAUTH = @ICEAUTH@
+INSTALL = @INSTALL@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+INSTOBJEXT = @INSTOBJEXT@
+INTLLIBS = @INTLLIBS@
+INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@
+INTLTOOL_MERGE = @INTLTOOL_MERGE@
+INTLTOOL_PERL = @INTLTOOL_PERL@
+INTLTOOL_UPDATE = @INTLTOOL_UPDATE@
+INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@
+INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@
+INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@
+INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@
+LD = @LD@
+LDFLAGS = @LDFLAGS@
+LIBM = @LIBM@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBSM_CFLAGS = @LIBSM_CFLAGS@
+LIBSM_LDFLAGS = @LIBSM_LDFLAGS@
+LIBSM_LIBS = @LIBSM_LIBS@
+LIBTOOL = @LIBTOOL@
+LIBWNCK_CFLAGS = @LIBWNCK_CFLAGS@
+LIBWNCK_LIBS = @LIBWNCK_LIBS@
+LIBWNCK_REQUIRED_VERSION = @LIBWNCK_REQUIRED_VERSION@
+LIBWNCK_VERSION = @LIBWNCK_VERSION@
+LIBX11_CFLAGS = @LIBX11_CFLAGS@
+LIBX11_LDFLAGS = @LIBX11_LDFLAGS@
+LIBX11_LIBS = @LIBX11_LIBS@
+LIBXFCE4UI_CFLAGS = @LIBXFCE4UI_CFLAGS@
+LIBXFCE4UI_LIBS = @LIBXFCE4UI_LIBS@
+LIBXFCE4UI_REQUIRED_VERSION = @LIBXFCE4UI_REQUIRED_VERSION@
+LIBXFCE4UI_VERSION = @LIBXFCE4UI_VERSION@
+LIBXFCE4UTIL_CFLAGS = @LIBXFCE4UTIL_CFLAGS@
+LIBXFCE4UTIL_LIBS = @LIBXFCE4UTIL_LIBS@
+LIBXFCE4UTIL_REQUIRED_VERSION = @LIBXFCE4UTIL_REQUIRED_VERSION@
+LIBXFCE4UTIL_VERSION = @LIBXFCE4UTIL_VERSION@
+LIPO = @LIPO@
+LN_S = @LN_S@
+LTLIBOBJS = @LTLIBOBJS@
+LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
+MAINT = @MAINT@
+MAKEINFO = @MAKEINFO@
+MANIFEST_TOOL = @MANIFEST_TOOL@
+MKDIR_P = @MKDIR_P@
+MKINSTALLDIRS = @MKINSTALLDIRS@
+MSGFMT = @MSGFMT@
+MSGFMT_OPTS = @MSGFMT_OPTS@
+MSGMERGE = @MSGMERGE@
+NM = @NM@
+NMEDIT = @NMEDIT@
+OBJDUMP = @OBJDUMP@
+OBJEXT = @OBJEXT@
+OTOOL = @OTOOL@
+OTOOL64 = @OTOOL64@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_URL = @PACKAGE_URL@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PKG_CONFIG = @PKG_CONFIG@
+PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
+PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
+POFILES = @POFILES@
+POLKIT_CFLAGS = @POLKIT_CFLAGS@
+POLKIT_LIBS = @POLKIT_LIBS@
+POLKIT_REQUIRED_VERSION = @POLKIT_REQUIRED_VERSION@
+POLKIT_VERSION = @POLKIT_VERSION@
+POSUB = @POSUB@
+PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@
+PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@
+RANLIB = @RANLIB@
+RM = @RM@
+SED = @SED@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+STRIP = @STRIP@
+UPOWER_CFLAGS = @UPOWER_CFLAGS@
+UPOWER_LIBS = @UPOWER_LIBS@
+UPOWER_REQUIRED_VERSION = @UPOWER_REQUIRED_VERSION@
+UPOWER_VERSION = @UPOWER_VERSION@
+USE_NLS = @USE_NLS@
+VERSION = @VERSION@
+XFCE_GLADE_CATALOG_PATH = @XFCE_GLADE_CATALOG_PATH@
+XFCE_GLADE_MODULE_PATH = @XFCE_GLADE_MODULE_PATH@
+XFCE_GLADE_PIXMAP_PATH = @XFCE_GLADE_PIXMAP_PATH@
+XFCONF_CFLAGS = @XFCONF_CFLAGS@
+XFCONF_LIBS = @XFCONF_LIBS@
+XFCONF_REQUIRED_VERSION = @XFCONF_REQUIRED_VERSION@
+XFCONF_VERSION = @XFCONF_VERSION@
+XGETTEXT = @XGETTEXT@
+XGETTEXT_ARGS = @XGETTEXT_ARGS@
+XMKMF = @XMKMF@
+XSESSION_PREFIX = @XSESSION_PREFIX@
+X_CFLAGS = @X_CFLAGS@
+X_EXTRA_LIBS = @X_EXTRA_LIBS@
+X_LIBS = @X_LIBS@
+X_PRE_LIBS = @X_PRE_LIBS@
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
+ac_ct_AR = @ac_ct_AR@
+ac_ct_CC = @ac_ct_CC@
+ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
+am__include = @am__include@
+am__leading_dot = @am__leading_dot@
+am__quote = @am__quote@
+am__tar = @am__tar@
+am__untar = @am__untar@
+bindir = @bindir@
+build = @build@
+build_alias = @build_alias@
+build_cpu = @build_cpu@
+build_os = @build_os@
+build_vendor = @build_vendor@
+builddir = @builddir@
+datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
+exec_prefix = @exec_prefix@
+host = @host@
+host_alias = @host_alias@
+host_cpu = @host_cpu@
+host_os = @host_os@
+host_vendor = @host_vendor@
+htmldir = @htmldir@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+intltool__v_merge_options_ = @intltool__v_merge_options_@
+intltool__v_merge_options_0 = @intltool__v_merge_options_0@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = @localedir@
+localstatedir = @localstatedir@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+oldincludedir = @oldincludedir@
+pdfdir = @pdfdir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+psdir = @psdir@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+srcdir = @srcdir@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
+top_build_prefix = @top_build_prefix@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
+SUBDIRS = \
+ scripts \
+ themes
+
+baloudir = $(libdir)/xfce4/session/splash-engines
+balou_LTLIBRARIES = libbalou.la
+libbalou_la_SOURCES = \
+ balou-theme.c \
+ balou-theme.h \
+ balou.c \
+ balou.h \
+ config.c \
+ engine.c \
+ gnome-uri.c \
+ gnome-uri.h
+
+libbalou_la_CFLAGS = \
+ -I$(top_srcdir) \
+ $(LIBXFCE4UI_CFLAGS) \
+ $(XFCONF_CFLAGS) \
+ -DBALOU_EXPORT_THEME=\"$(HELPER_PATH_PREFIX)/xfce4/session/balou-export-theme\" \
+ -DBALOU_INSTALL_THEME=\"$(HELPER_PATH_PREFIX)/xfce4/session/balou-install-theme\"
+
+libbalou_la_LDFLAGS = \
+ -avoid-version \
+ -no-undefined \
+ -module
+
+libbalou_la_LIBADD = \
+ $(top_builddir)/libxfsm/libxfsm-4.6.la \
+ $(LIBXFCE4UI_LIBS) \
+ $(XFCONF_LIBS) \
+ $(LIBM)
+
+libbalou_la_DEPENDENCIES = \
+ $(top_builddir)/libxfsm/libxfsm-4.6.la
+
+all: all-recursive
+
+.SUFFIXES:
+.SUFFIXES: .c .lo .o .obj
+$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
+ @for dep in $?; do \
+ case '$(am__configure_deps)' in \
+ *$$dep*) \
+ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
+ && { if test -f $@; then exit 0; else break; fi; }; \
+ exit 1;; \
+ esac; \
+ done; \
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu engines/balou/Makefile'; \
+ $(am__cd) $(top_srcdir) && \
+ $(AUTOMAKE) --gnu engines/balou/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+ @case '$?' in \
+ *config.status*) \
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+ *) \
+ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+ esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(am__aclocal_m4_deps):
+
+install-balouLTLIBRARIES: $(balou_LTLIBRARIES)
+ @$(NORMAL_INSTALL)
+ @list='$(balou_LTLIBRARIES)'; test -n "$(baloudir)" || list=; \
+ list2=; for p in $$list; do \
+ if test -f $$p; then \
+ list2="$$list2 $$p"; \
+ else :; fi; \
+ done; \
+ test -z "$$list2" || { \
+ echo " $(MKDIR_P) '$(DESTDIR)$(baloudir)'"; \
+ $(MKDIR_P) "$(DESTDIR)$(baloudir)" || exit 1; \
+ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(baloudir)'"; \
+ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(baloudir)"; \
+ }
+
+uninstall-balouLTLIBRARIES:
+ @$(NORMAL_UNINSTALL)
+ @list='$(balou_LTLIBRARIES)'; test -n "$(baloudir)" || list=; \
+ for p in $$list; do \
+ $(am__strip_dir) \
+ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(baloudir)/$$f'"; \
+ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(baloudir)/$$f"; \
+ done
+
+clean-balouLTLIBRARIES:
+ -test -z "$(balou_LTLIBRARIES)" || rm -f $(balou_LTLIBRARIES)
+ @list='$(balou_LTLIBRARIES)'; \
+ locs=`for p in $$list; do echo $$p; done | \
+ sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \
+ sort -u`; \
+ test -z "$$locs" || { \
+ echo rm -f $${locs}; \
+ rm -f $${locs}; \
+ }
+
+libbalou.la: $(libbalou_la_OBJECTS) $(libbalou_la_DEPENDENCIES) $(EXTRA_libbalou_la_DEPENDENCIES)
+ $(AM_V_CCLD)$(libbalou_la_LINK) -rpath $(baloudir) $(libbalou_la_OBJECTS) $(libbalou_la_LIBADD) $(LIBS)
+
+mostlyclean-compile:
+ -rm -f *.$(OBJEXT)
+
+distclean-compile:
+ -rm -f *.tab.c
+
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libbalou_la-balou-theme.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libbalou_la-balou.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libbalou_la-config.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libbalou_la-engine.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libbalou_la-gnome-uri.Plo@am__quote@
+
+.c.o:
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<
+
+.c.obj:
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
+
+.c.lo:
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $<
+
+libbalou_la-balou-theme.lo: balou-theme.c
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libbalou_la_CFLAGS) $(CFLAGS) -MT libbalou_la-balou-theme.lo -MD -MP -MF $(DEPDIR)/libbalou_la-balou-theme.Tpo -c -o libbalou_la-balou-theme.lo `test -f 'balou-theme.c' || echo '$(srcdir)/'`balou-theme.c
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libbalou_la-balou-theme.Tpo $(DEPDIR)/libbalou_la-balou-theme.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='balou-theme.c' object='libbalou_la-balou-theme.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libbalou_la_CFLAGS) $(CFLAGS) -c -o libbalou_la-balou-theme.lo `test -f 'balou-theme.c' || echo '$(srcdir)/'`balou-theme.c
+
+libbalou_la-balou.lo: balou.c
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libbalou_la_CFLAGS) $(CFLAGS) -MT libbalou_la-balou.lo -MD -MP -MF $(DEPDIR)/libbalou_la-balou.Tpo -c -o libbalou_la-balou.lo `test -f 'balou.c' || echo '$(srcdir)/'`balou.c
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libbalou_la-balou.Tpo $(DEPDIR)/libbalou_la-balou.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='balou.c' object='libbalou_la-balou.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libbalou_la_CFLAGS) $(CFLAGS) -c -o libbalou_la-balou.lo `test -f 'balou.c' || echo '$(srcdir)/'`balou.c
+
+libbalou_la-config.lo: config.c
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libbalou_la_CFLAGS) $(CFLAGS) -MT libbalou_la-config.lo -MD -MP -MF $(DEPDIR)/libbalou_la-config.Tpo -c -o libbalou_la-config.lo `test -f 'config.c' || echo '$(srcdir)/'`config.c
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libbalou_la-config.Tpo $(DEPDIR)/libbalou_la-config.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='config.c' object='libbalou_la-config.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libbalou_la_CFLAGS) $(CFLAGS) -c -o libbalou_la-config.lo `test -f 'config.c' || echo '$(srcdir)/'`config.c
+
+libbalou_la-engine.lo: engine.c
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libbalou_la_CFLAGS) $(CFLAGS) -MT libbalou_la-engine.lo -MD -MP -MF $(DEPDIR)/libbalou_la-engine.Tpo -c -o libbalou_la-engine.lo `test -f 'engine.c' || echo '$(srcdir)/'`engine.c
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libbalou_la-engine.Tpo $(DEPDIR)/libbalou_la-engine.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='engine.c' object='libbalou_la-engine.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libbalou_la_CFLAGS) $(CFLAGS) -c -o libbalou_la-engine.lo `test -f 'engine.c' || echo '$(srcdir)/'`engine.c
+
+libbalou_la-gnome-uri.lo: gnome-uri.c
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libbalou_la_CFLAGS) $(CFLAGS) -MT libbalou_la-gnome-uri.lo -MD -MP -MF $(DEPDIR)/libbalou_la-gnome-uri.Tpo -c -o libbalou_la-gnome-uri.lo `test -f 'gnome-uri.c' || echo '$(srcdir)/'`gnome-uri.c
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libbalou_la-gnome-uri.Tpo $(DEPDIR)/libbalou_la-gnome-uri.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='gnome-uri.c' object='libbalou_la-gnome-uri.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libbalou_la_CFLAGS) $(CFLAGS) -c -o libbalou_la-gnome-uri.lo `test -f 'gnome-uri.c' || echo '$(srcdir)/'`gnome-uri.c
+
+mostlyclean-libtool:
+ -rm -f *.lo
+
+clean-libtool:
+ -rm -rf .libs _libs
+
+# This directory's subdirectories are mostly independent; you can cd
+# into them and run 'make' without going through this Makefile.
+# To change the values of 'make' variables: instead of editing Makefiles,
+# (1) if the variable is set in 'config.status', edit 'config.status'
+# (which will cause the Makefiles to be regenerated when you run 'make');
+# (2) otherwise, pass the desired values on the 'make' command line.
+$(am__recursive_targets):
+ @fail=; \
+ if $(am__make_keepgoing); then \
+ failcom='fail=yes'; \
+ else \
+ failcom='exit 1'; \
+ fi; \
+ dot_seen=no; \
+ target=`echo $@ | sed s/-recursive//`; \
+ case "$@" in \
+ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
+ *) list='$(SUBDIRS)' ;; \
+ esac; \
+ for subdir in $$list; do \
+ echo "Making $$target in $$subdir"; \
+ if test "$$subdir" = "."; then \
+ dot_seen=yes; \
+ local_target="$$target-am"; \
+ else \
+ local_target="$$target"; \
+ fi; \
+ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
+ || eval $$failcom; \
+ done; \
+ if test "$$dot_seen" = "no"; then \
+ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
+ fi; test -z "$$fail"
+
+ID: $(am__tagged_files)
+ $(am__define_uniq_tagged_files); mkid -fID $$unique
+tags: tags-recursive
+TAGS: tags
+
+tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
+ set x; \
+ here=`pwd`; \
+ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
+ include_option=--etags-include; \
+ empty_fix=.; \
+ else \
+ include_option=--include; \
+ empty_fix=; \
+ fi; \
+ list='$(SUBDIRS)'; for subdir in $$list; do \
+ if test "$$subdir" = .; then :; else \
+ test ! -f $$subdir/TAGS || \
+ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
+ fi; \
+ done; \
+ $(am__define_uniq_tagged_files); \
+ shift; \
+ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
+ test -n "$$unique" || unique=$$empty_fix; \
+ if test $$# -gt 0; then \
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+ "$$@" $$unique; \
+ else \
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+ $$unique; \
+ fi; \
+ fi
+ctags: ctags-recursive
+
+CTAGS: ctags
+ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
+ $(am__define_uniq_tagged_files); \
+ test -z "$(CTAGS_ARGS)$$unique" \
+ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
+ $$unique
+
+GTAGS:
+ here=`$(am__cd) $(top_builddir) && pwd` \
+ && $(am__cd) $(top_srcdir) \
+ && gtags -i $(GTAGS_ARGS) "$$here"
+cscopelist: cscopelist-recursive
+
+cscopelist-am: $(am__tagged_files)
+ list='$(am__tagged_files)'; \
+ case "$(srcdir)" in \
+ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
+ *) sdir=$(subdir)/$(srcdir) ;; \
+ esac; \
+ for i in $$list; do \
+ if test -f "$$i"; then \
+ echo "$(subdir)/$$i"; \
+ else \
+ echo "$$sdir/$$i"; \
+ fi; \
+ done >> $(top_builddir)/cscope.files
+
+distclean-tags:
+ -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
+
+distdir: $(DISTFILES)
+ @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ list='$(DISTFILES)'; \
+ dist_files=`for file in $$list; do echo $$file; done | \
+ sed -e "s|^$$srcdirstrip/||;t" \
+ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+ case $$dist_files in \
+ */*) $(MKDIR_P) `echo "$$dist_files" | \
+ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+ sort -u` ;; \
+ esac; \
+ for file in $$dist_files; do \
+ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+ if test -d $$d/$$file; then \
+ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+ if test -d "$(distdir)/$$file"; then \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+ fi; \
+ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+ fi; \
+ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
+ else \
+ test -f "$(distdir)/$$file" \
+ || cp -p $$d/$$file "$(distdir)/$$file" \
+ || exit 1; \
+ fi; \
+ done
+ @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
+ if test "$$subdir" = .; then :; else \
+ $(am__make_dryrun) \
+ || test -d "$(distdir)/$$subdir" \
+ || $(MKDIR_P) "$(distdir)/$$subdir" \
+ || exit 1; \
+ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
+ $(am__relativize); \
+ new_distdir=$$reldir; \
+ dir1=$$subdir; dir2="$(top_distdir)"; \
+ $(am__relativize); \
+ new_top_distdir=$$reldir; \
+ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
+ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
+ ($(am__cd) $$subdir && \
+ $(MAKE) $(AM_MAKEFLAGS) \
+ top_distdir="$$new_top_distdir" \
+ distdir="$$new_distdir" \
+ am__remove_distdir=: \
+ am__skip_length_check=: \
+ am__skip_mode_fix=: \
+ distdir) \
+ || exit 1; \
+ fi; \
+ done
+check-am: all-am
+check: check-recursive
+all-am: Makefile $(LTLIBRARIES)
+installdirs: installdirs-recursive
+installdirs-am:
+ for dir in "$(DESTDIR)$(baloudir)"; do \
+ test -z "$$dir" || $(MKDIR_P) "$$dir"; \
+ done
+install: install-recursive
+install-exec: install-exec-recursive
+install-data: install-data-recursive
+uninstall: uninstall-recursive
+
+install-am: all-am
+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-recursive
+install-strip:
+ if test -z '$(STRIP)'; then \
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ install; \
+ else \
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
+ fi
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+ -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
+
+maintainer-clean-generic:
+ @echo "This command is intended for maintainers to use"
+ @echo "it deletes files that may require special tools to rebuild."
+clean: clean-recursive
+
+clean-am: clean-balouLTLIBRARIES clean-generic clean-libtool \
+ mostlyclean-am
+
+distclean: distclean-recursive
+ -rm -rf ./$(DEPDIR)
+ -rm -f Makefile
+distclean-am: clean-am distclean-compile distclean-generic \
+ distclean-tags
+
+dvi: dvi-recursive
+
+dvi-am:
+
+html: html-recursive
+
+html-am:
+
+info: info-recursive
+
+info-am:
+
+install-data-am: install-balouLTLIBRARIES
+
+install-dvi: install-dvi-recursive
+
+install-dvi-am:
+
+install-exec-am:
+
+install-html: install-html-recursive
+
+install-html-am:
+
+install-info: install-info-recursive
+
+install-info-am:
+
+install-man:
+
+install-pdf: install-pdf-recursive
+
+install-pdf-am:
+
+install-ps: install-ps-recursive
+
+install-ps-am:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-recursive
+ -rm -rf ./$(DEPDIR)
+ -rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-recursive
+
+mostlyclean-am: mostlyclean-compile mostlyclean-generic \
+ mostlyclean-libtool
+
+pdf: pdf-recursive
+
+pdf-am:
+
+ps: ps-recursive
+
+ps-am:
+
+uninstall-am: uninstall-balouLTLIBRARIES
+
+.MAKE: $(am__recursive_targets) install-am install-strip
+
+.PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \
+ check-am clean clean-balouLTLIBRARIES clean-generic \
+ clean-libtool cscopelist-am ctags ctags-am distclean \
+ distclean-compile distclean-generic distclean-libtool \
+ distclean-tags distdir dvi dvi-am html html-am info info-am \
+ install install-am install-balouLTLIBRARIES install-data \
+ install-data-am install-dvi install-dvi-am install-exec \
+ install-exec-am install-html install-html-am install-info \
+ install-info-am install-man install-pdf install-pdf-am \
+ install-ps install-ps-am install-strip installcheck \
+ installcheck-am installdirs installdirs-am maintainer-clean \
+ maintainer-clean-generic mostlyclean mostlyclean-compile \
+ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
+ tags tags-am uninstall uninstall-am uninstall-balouLTLIBRARIES
+
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/engines/balou/TODO b/engines/balou/TODO
new file mode 100644
index 0000000..ad357f4
--- /dev/null
+++ b/engines/balou/TODO
@@ -0,0 +1,21 @@
+- Zum zwischenspeichern von Previews nicht mehr PNG verwenden, sondern
+ pixdata serialisieren!!! siehe gdk_pixbuf -> gdk_pixdata, geht deutlich
+ schneller
+
+- Dazu zwei funktionen in libxfcegui4 einbauen:
+
+ gboolean xfce_gdk_pixbuf_serialize (GdkPixbuf *pixbuf,
+ const gchar *path,
+ GError **error);
+
+ GdkPixbuf *xfce_gdk_pixbuf_deserialize (const gchar *path,
+ GError **error);
+
+ wobei die deserialize zur Optimierung zunchst versucht die Datei
+ zu mmap'en und dann auf open() umschwenkt. serialize verwendet nur
+ open(), write(), close(), rename() fr Atomic-Writing!
+
+
+- Man knnte zur Optimierung versuchen, statt jedem Fenster ein Pixmap
+ als Backbuf zu geben, einen Pixbuf nehmen, der bei Expose neu gezeichnet
+ wird. (Das Gradient Fllen knnte MMX optimiert werden)
diff --git a/engines/balou/balou-theme.c b/engines/balou/balou-theme.c
new file mode 100644
index 0000000..708589c
--- /dev/null
+++ b/engines/balou/balou-theme.c
@@ -0,0 +1,519 @@
+/* $Id$ */
+/*-
+ * Copyright (c) 2004 Benedikt Meurer <benny@xfce.org>
+ * All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2, or (at your option)
+ * any later version.
+ *
+ * This program 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 General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301 USA.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#ifdef HAVE_SYS_STAT_H
+#include <sys/stat.h>
+#endif
+
+#include <math.h>
+#ifdef HAVE_MEMORY_H
+#include <memory.h>
+#endif
+#ifdef HAVE_STRING_H
+#include <string.h>
+#endif
+#ifdef HAVE_TIME_H
+#include <time.h>
+#endif
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+
+#include <libxfce4util/libxfce4util.h>
+
+#include <engines/balou/balou-theme.h>
+
+
+static void load_color_pair (const XfceRc *rc,
+ const gchar *name,
+ GdkColor *color1_return,
+ GdkColor *color2_return,
+ const gchar *color_default);
+static GdkPixbuf *load_pixbuf (const gchar *path,
+ gint available_width,
+ gint available_height);
+static time_t mtime (const gchar *path);
+static GdkPixbuf *load_cached_preview (const BalouTheme *theme);
+static void store_cached_preview (const BalouTheme *theme,
+ GdkPixbuf *pixbuf);
+
+
+struct _BalouTheme
+{
+ GdkColor bgcolor1;
+ GdkColor bgcolor2;
+ GdkColor fgcolor;
+ gchar *name;
+ gchar *description;
+ gchar *font;
+ gchar *theme_file;
+ gchar *logo_file;
+};
+
+
+#define DEFAULT_BGCOLOR "White"
+#define DEFAULT_FGCOLOR "Black"
+#define DEFAULT_FONT "Sans Bold 12"
+
+
+BalouTheme*
+balou_theme_load (const gchar *name)
+{
+ BalouTheme *theme;
+ const gchar *image_file;
+ const gchar *spec;
+ gchar *resource;
+ gchar *file;
+ XfceRc *rc;
+
+ theme = g_new0 (BalouTheme, 1);
+
+ resource = g_strdup_printf ("%s/balou/themerc", name);
+ file = xfce_resource_lookup (XFCE_RESOURCE_THEMES, resource);
+ g_free (resource);
+
+ if (file != NULL)
+ {
+ rc = xfce_rc_simple_open (file, TRUE);
+ if (rc == NULL)
+ {
+ g_free (file);
+ goto set_defaults;
+ }
+
+ theme->theme_file = g_strdup (file);
+
+ xfce_rc_set_group (rc, "Info");
+ theme->name = g_strdup (xfce_rc_read_entry (rc, "Name", name));
+ theme->description = g_strdup (xfce_rc_read_entry (rc, "Description", _("No description given")));
+
+ xfce_rc_set_group (rc, "Splash Screen");
+ load_color_pair (rc, "bgcolor", &theme->bgcolor1, &theme->bgcolor2,
+ DEFAULT_BGCOLOR);
+
+ spec = xfce_rc_read_entry (rc, "fgcolor", DEFAULT_FGCOLOR);
+ if (!gdk_color_parse (spec, &theme->fgcolor))
+ gdk_color_parse (DEFAULT_FGCOLOR, &theme->fgcolor);
+
+ spec = xfce_rc_read_entry (rc, "font", DEFAULT_FONT);
+ theme->font = g_strdup (spec);
+
+ image_file = xfce_rc_read_entry (rc, "logo", NULL);
+ if (image_file != NULL)
+ {
+ resource = g_path_get_dirname (file);
+ theme->logo_file = g_build_filename (resource, image_file, NULL);
+ g_free (resource);
+ }
+ else
+ {
+ theme->logo_file = NULL;
+ }
+
+ xfce_rc_close (rc);
+ g_free (file);
+
+ return theme;
+ }
+
+set_defaults:
+ gdk_color_parse (DEFAULT_BGCOLOR, &theme->bgcolor1);
+ gdk_color_parse (DEFAULT_BGCOLOR, &theme->bgcolor2);
+ gdk_color_parse (DEFAULT_FGCOLOR, &theme->fgcolor);
+ theme->font = g_strdup (DEFAULT_FONT);
+ theme->logo_file = NULL;
+
+ return theme;
+}
+
+
+const gchar*
+balou_theme_get_name (const BalouTheme *theme)
+{
+ return theme->name;
+}
+
+
+const gchar*
+balou_theme_get_description (const BalouTheme *theme)
+{
+ return theme->description;
+}
+
+
+const gchar*
+balou_theme_get_font (const BalouTheme *theme)
+{
+ return theme->font;
+}
+
+
+void
+balou_theme_get_bgcolor (const BalouTheme *theme,
+ GdkColor *color_return)
+{
+ *color_return = theme->bgcolor1;
+}
+
+
+void
+balou_theme_get_fgcolor (const BalouTheme *theme,
+ GdkColor *color_return)
+{
+ *color_return = theme->fgcolor;
+}
+
+
+GdkPixbuf*
+balou_theme_get_logo (const BalouTheme *theme,
+ gint available_width,
+ gint available_height)
+{
+ return load_pixbuf (theme->logo_file,
+ available_width,
+ available_height);
+}
+
+
+void
+balou_theme_draw_gradient (const BalouTheme *theme,
+ GdkDrawable *drawable,
+ GdkGC *gc,
+ GdkRectangle logobox,
+ GdkRectangle textbox)
+{
+ GdkColor color;
+ gint dred;
+ gint dgreen;
+ gint dblue;
+ gint i;
+
+ if (gdk_color_equal (&theme->bgcolor1, &theme->bgcolor2))
+ {
+ gdk_gc_set_rgb_fg_color (gc, &theme->bgcolor1);
+ gdk_draw_rectangle (drawable, gc, TRUE, logobox.x, logobox.y,
+ logobox.width, logobox.height);
+ gdk_draw_rectangle (drawable, gc, TRUE, textbox.x, textbox.y,
+ textbox.width, textbox.height);
+ }
+ else
+ {
+ /* calculate differences */
+ dred = theme->bgcolor1.red - theme->bgcolor2.red;
+ dgreen = theme->bgcolor1.green - theme->bgcolor2.green;
+ dblue = theme->bgcolor1.blue - theme->bgcolor2.blue;
+
+ for (i = 0; i < logobox.height; ++i)
+ {
+ color.red = theme->bgcolor2.red + (i * dred / logobox.height);
+ color.green = theme->bgcolor2.green + (i * dgreen / logobox.height);
+ color.blue = theme->bgcolor2.blue + (i * dblue / logobox.height);
+
+ gdk_gc_set_rgb_fg_color (gc, &color);
+ gdk_draw_line (drawable, gc, logobox.x, logobox.y + i,
+ logobox.x + logobox.width, logobox.y + i);
+ }
+
+ if (textbox.width != 0 && textbox.height != 0)
+ {
+ gdk_gc_set_rgb_fg_color (gc, &theme->bgcolor1);
+ gdk_draw_rectangle (drawable, gc, TRUE, textbox.x, textbox.y,
+ textbox.width, textbox.height);
+ }
+ }
+}
+
+
+GdkPixbuf*
+balou_theme_generate_preview (const BalouTheme *theme,
+ gint width,
+ gint height)
+{
+#define WIDTH 320
+#define HEIGHT 240
+
+ GdkRectangle logobox;
+ GdkRectangle textbox;
+ GdkPixmap *pixmap;
+ GdkPixbuf *pixbuf;
+ GdkPixbuf *scaled;
+ GdkWindow *root;
+ GdkGC *gc;
+ gint pw, ph;
+
+ /* check for a cached preview first */
+ pixbuf = load_cached_preview (theme);
+ if (pixbuf != NULL)
+ {
+ pw = gdk_pixbuf_get_width (pixbuf);
+ ph = gdk_pixbuf_get_height (pixbuf);
+
+ if (pw == width && ph == height)
+ {
+ return pixbuf;
+ }
+ else if (pw >= width && ph >= height)
+ {
+ scaled = gdk_pixbuf_scale_simple (pixbuf, width, height,
+ GDK_INTERP_BILINEAR);
+ g_object_unref (pixbuf);
+ return scaled;
+ }
+
+ g_object_unref (pixbuf);
+ }
+
+ root = gdk_screen_get_root_window (gdk_screen_get_default ());
+ pixmap = gdk_pixmap_new (GDK_DRAWABLE (root), WIDTH, HEIGHT, -1);
+ gc = gdk_gc_new (pixmap);
+ gdk_gc_set_function (gc, GDK_COPY);
+
+ logobox.x = 0;
+ logobox.y = 0;
+ logobox.width = WIDTH;
+ logobox.height = HEIGHT;
+ textbox.x = 0;
+ textbox.y = 0;
+ balou_theme_draw_gradient (theme, GDK_DRAWABLE (pixmap),
+ gc, logobox, textbox);
+
+ pixbuf = balou_theme_get_logo (theme, WIDTH, HEIGHT);
+ if (pixbuf != NULL)
+ {
+ pw = gdk_pixbuf_get_width (pixbuf);
+ ph = gdk_pixbuf_get_height (pixbuf);
+
+ gdk_draw_pixbuf (GDK_DRAWABLE (pixmap), gc, pixbuf, 0, 0,
+ (WIDTH - pw) / 2, (HEIGHT - ph) / 2,
+ pw, ph, GDK_RGB_DITHER_NONE, 0, 0);
+
+ g_object_unref (G_OBJECT (pixbuf));
+ }
+
+ pixbuf = gdk_pixbuf_get_from_drawable (NULL, GDK_DRAWABLE (pixmap),
+ NULL, 0, 0, 0, 0, WIDTH, HEIGHT);
+ scaled = gdk_pixbuf_scale_simple (pixbuf, width, height, GDK_INTERP_BILINEAR);
+
+ g_object_unref (pixbuf);
+ g_object_unref (pixmap);
+ g_object_unref (gc);
+
+ /* store preview */
+ store_cached_preview (theme, scaled);
+
+ return scaled;
+
+#undef WIDTH
+#undef HEIGHT
+}
+
+
+void
+balou_theme_destroy (BalouTheme *theme)
+{
+ if (theme->name != NULL)
+ g_free (theme->name);
+ if (theme->description != NULL)
+ g_free (theme->description);
+ if (theme->theme_file != NULL)
+ g_free (theme->theme_file);
+ if (theme->logo_file != NULL)
+ g_free (theme->logo_file);
+ g_free (theme);
+}
+
+
+
+static void
+load_color_pair (const XfceRc *rc,
+ const gchar *name,
+ GdkColor *color1_return,
+ GdkColor *color2_return,
+ const gchar *color_default)
+{
+ const gchar *spec;
+ gchar **s;
+
+ spec = xfce_rc_read_entry (rc, name, color_default);
+ if (spec == NULL)
+ {
+ gdk_color_parse (color_default, color1_return);
+ gdk_color_parse (color_default, color2_return);
+ }
+ else
+ {
+ s = g_strsplit (spec, ":", 2);
+
+ if (s[0] == NULL)
+ {
+ gdk_color_parse (color_default, color1_return);
+ gdk_color_parse (color_default, color2_return);
+ }
+ else if (s[1] == NULL)
+ {
+ if (!gdk_color_parse (s[0], color1_return))
+ gdk_color_parse (color_default, color1_return);
+ *color2_return = *color1_return;
+ }
+ else
+ {
+ if (!gdk_color_parse (s[0], color2_return))
+ gdk_color_parse (color_default, color2_return);
+ if (!gdk_color_parse (s[1], color1_return))
+ *color1_return = *color2_return;
+ }
+
+ g_strfreev (s);
+ }
+}
+
+
+static GdkPixbuf*
+load_pixbuf (const gchar *path,
+ gint available_width,
+ gint available_height)
+{
+ static char *suffixes[] = { "svg", "png", "jpeg", "jpg", "xpm", NULL };
+ GdkPixbuf *scaled;
+ GdkPixbuf *pb = NULL;
+ gint pb_width;
+ gint pb_height;
+ gdouble wratio;
+ gdouble hratio;
+ gchar *file;
+ guint n;
+
+ if (G_UNLIKELY (path == NULL))
+ return NULL;
+
+ pb = gdk_pixbuf_new_from_file (path, NULL);
+ if (G_UNLIKELY (pb == NULL))
+ {
+ for (n = 0; pb == NULL && suffixes[n] != NULL; ++n)
+ {
+ file = g_strdup_printf ("%s.%s", path, suffixes[n]);
+ pb = gdk_pixbuf_new_from_file (file, NULL);
+ g_free (file);
+ }
+ }
+
+ if (G_UNLIKELY (pb == NULL))
+ return NULL;
+
+ pb_width = gdk_pixbuf_get_width (pb);
+ pb_height = gdk_pixbuf_get_height (pb);
+
+ if (pb_width > available_width || pb_height > available_height)
+ {
+ wratio = (gdouble) pb_width / (gdouble) available_width;
+ hratio = (gdouble) pb_height / (gdouble) available_height;
+
+ if (hratio > wratio)
+ {
+ pb_width = rint (pb_width / hratio);
+ pb_height = available_height;
+ }
+ else
+ {
+ pb_width = available_width;
+ pb_height = rint (pb_height / wratio);
+ }
+
+ scaled = gdk_pixbuf_scale_simple (pb,
+ pb_width,
+ pb_height,
+ GDK_INTERP_BILINEAR);
+ g_object_unref (pb);
+ pb = scaled;
+ }
+
+ return pb;
+}
+
+
+static time_t
+mtime (const gchar *path)
+{
+ struct stat sb;
+
+ if (path == NULL || stat (path, &sb) < 0)
+ return (time_t) 0;
+
+ return sb.st_mtime;
+}
+
+
+static GdkPixbuf*
+load_cached_preview (const BalouTheme *theme)
+{
+ GdkPixbuf *pixbuf;
+ gchar *resource;
+ gchar *preview;
+
+ resource = g_strconcat ("splash-theme-preview-", theme->name, ".png", NULL);
+ preview = xfce_resource_lookup (XFCE_RESOURCE_CACHE, resource);
+ g_free (resource);
+
+ if (preview == NULL)
+ return NULL;
+
+ if ((mtime (preview) < mtime (theme->theme_file))
+ || (theme->logo_file != NULL
+ && (mtime (preview) < mtime (theme->logo_file))))
+ {
+ /* preview is outdated, need to regenerate preview */
+ unlink (preview);
+ g_free (preview);
+
+ return NULL;
+ }
+
+ pixbuf = gdk_pixbuf_new_from_file (preview, NULL);
+ g_free (preview);
+
+ return pixbuf;
+}
+
+
+static void
+store_cached_preview (const BalouTheme *theme,
+ GdkPixbuf *pixbuf)
+{
+ gchar *resource;
+ gchar *preview;
+
+ resource = g_strconcat ("splash-theme-preview-", theme->name, ".png", NULL);
+ preview = xfce_resource_save_location (XFCE_RESOURCE_CACHE, resource, TRUE);
+ g_free (resource);
+
+ if (preview != NULL)
+ {
+ gdk_pixbuf_save (pixbuf, preview, "png", NULL, NULL);
+ g_free (preview);
+ }
+}
+
+
+
diff --git a/engines/balou/balou-theme.h b/engines/balou/balou-theme.h
new file mode 100644
index 0000000..1e2e1ba
--- /dev/null
+++ b/engines/balou/balou-theme.h
@@ -0,0 +1,57 @@
+/* $Id$ */
+/*-
+ * Copyright (c) 2004 Benedikt Meurer <benny@xfce.org>
+ * All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2, or (at your option)
+ * any later version.
+ *
+ * This program 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 General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301 USA.
+ */
+
+#ifndef __BALOU_THEME_H__
+#define __BALOU_THEME_H__
+
+#include <gdk/gdk.h>
+
+
+G_BEGIN_DECLS;
+
+typedef struct _BalouTheme BalouTheme;
+
+
+BalouTheme *balou_theme_load (const gchar *name);
+const gchar *balou_theme_get_name (const BalouTheme *theme);
+const gchar *balou_theme_get_description (const BalouTheme *theme);
+const gchar *balou_theme_get_font (const BalouTheme *theme);
+void balou_theme_get_bgcolor (const BalouTheme *theme,
+ GdkColor *color_return);
+void balou_theme_get_fgcolor (const BalouTheme *theme,
+ GdkColor *color_return);
+GdkPixbuf *balou_theme_get_logo (const BalouTheme *theme,
+ gint available_width,
+ gint available_height);
+void balou_theme_draw_gradient (const BalouTheme *theme,
+ GdkDrawable *drawable,
+ GdkGC *gc,
+ GdkRectangle logobox,
+ GdkRectangle textbox);
+GdkPixbuf *balou_theme_generate_preview (const BalouTheme *theme,
+ gint width,
+ gint height);
+void balou_theme_destroy (BalouTheme *theme);
+
+G_END_DECLS;
+
+
+#endif /* !__BALOU_THEME_H__ */
diff --git a/engines/balou/balou.c b/engines/balou/balou.c
new file mode 100644
index 0000000..752021b
--- /dev/null
+++ b/engines/balou/balou.c
@@ -0,0 +1,496 @@
+/* $Id$ */
+/*-
+ * Copyright (c) 2003-2004 Benedikt Meurer <benny@xfce.org>
+ * All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2, or (at your option)
+ * any later version.
+ *
+ * This program 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 General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301 USA.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#include <X11/Xlib.h>
+
+#include <engines/balou/balou.h>
+
+
+#define BALOU_INCREMENT 2
+
+
+
+
+static void balou_window_init (BalouWindow *window,
+ GdkScreen *screen,
+ int monitor,
+ GdkWindow *root,
+ GdkCursor *cursor);
+static void balou_window_destroy (BalouWindow *window);
+#if 0
+static void balou_window_set_text (BalouWindow *window,
+ const gchar *text);
+#endif
+static GdkFilterReturn balou_window_filter (GdkXEvent *xevent,
+ GdkEvent *event,
+ gpointer data);
+
+
+struct _BalouWindow
+{
+ GdkWindow *window;
+ GdkPixmap *backbuf;
+ PangoLayout *layout;
+ GdkGC *gc_copy;
+ GdkGC *gc_set;
+ GdkRectangle area;
+ GdkRectangle logobox;
+ GdkRectangle textbox;
+
+ GtkWidget *wmwindow;
+
+ gboolean dialog_active;
+};
+
+
+
+void
+balou_init (Balou *balou,
+ GdkDisplay *display,
+ GdkScreen *mainscreen,
+ gint mainmonitor,
+ BalouTheme *theme)
+{
+ PangoFontDescription *description;
+ PangoFontMetrics *metrics;
+ PangoContext *context;
+ PangoLayout *layout;
+ BalouWindow *window;
+ GdkColormap *cmap;
+ GdkCursor *cursor;
+ GdkScreen *screen;
+ GdkWindow *root;
+ GdkPixbuf *pb;
+ GdkGCValues gc_values;
+ GdkGCValuesMask gc_mask;
+ GdkGC *gc_copy;
+ GdkGC *gc_set;
+ gint layout_height;
+ gint nmonitors;
+ gint nscreens;
+ gint i;
+ gint n;
+ gint m;
+ gint px;
+ gint py;
+ gint pw;
+ gint ph;
+
+ balou->theme = theme;
+
+ balou_theme_get_bgcolor (theme, &balou->bgcolor);
+ balou_theme_get_fgcolor (theme, &balou->fgcolor);
+
+ cursor = gdk_cursor_new (GDK_WATCH);
+ description = pango_font_description_from_string (balou_theme_get_font (theme));
+
+ /* determine number of required windows */
+ nscreens = gdk_display_get_n_screens (display);
+ for (n = 0; n < nscreens; ++n)
+ {
+ screen = gdk_display_get_screen (display, n);
+ nmonitors = gdk_screen_get_n_monitors (screen);
+ for (m = 0; m < nmonitors; ++m)
+ balou->nwindows++;
+ }
+
+ /* create windows */
+ balou->windows = g_new (BalouWindow, balou->nwindows);
+ for (i = n = 0; n < nscreens; ++n)
+ {
+ screen = gdk_display_get_screen (display, n);
+ nmonitors = gdk_screen_get_n_monitors (screen);
+ root = gdk_screen_get_root_window (screen);
+
+ /* allocate fore/background colors */
+ cmap = gdk_drawable_get_colormap (root);
+ gdk_rgb_find_color (cmap, &balou->bgcolor);
+ gdk_rgb_find_color (cmap, &balou->fgcolor);
+
+ /* create pango layout for this screen */
+ context = gdk_pango_context_get_for_screen (screen);
+ pango_context_set_font_description (context, description);
+ layout = pango_layout_new (context);
+ metrics = pango_context_get_metrics (context, description, NULL);
+ layout_height = (pango_font_metrics_get_ascent (metrics)
+ + pango_font_metrics_get_descent (metrics)) / PANGO_SCALE
+ + 3;
+ pango_font_metrics_unref (metrics);
+
+ /* create graphics contexts for this screen */
+ gc_mask = GDK_GC_FUNCTION | GDK_GC_EXPOSURES;
+ gc_values.function = GDK_COPY;
+ gc_values.graphics_exposures = FALSE;
+ gc_copy = gdk_gc_new_with_values (root, &gc_values, gc_mask);
+ gc_mask |= GDK_GC_FOREGROUND | GDK_GC_BACKGROUND;
+ gc_values.foreground = balou->bgcolor;
+ gc_values.background = balou->fgcolor;
+ gc_set = gdk_gc_new_with_values (root, &gc_values, gc_mask);
+
+ for (m = 0; m < nmonitors; ++m)
+ {
+ window = balou->windows + i;
+ balou_window_init (window, screen, m, root, cursor);
+
+ window->gc_copy = GDK_GC (g_object_ref (gc_copy));
+ window->gc_set = GDK_GC (g_object_ref (gc_set));
+ window->layout = PANGO_LAYOUT (g_object_ref (layout));
+
+ /* calculate box dimensions */
+ window->logobox = window->area;
+ window->logobox.x = 0;
+ window->logobox.height -= layout_height;
+ window->textbox = window->area;
+ window->textbox.x = 0;
+ window->textbox.y += window->logobox.height;
+ window->textbox.height -= window->logobox.height;
+
+ balou_theme_draw_gradient (balou->theme,
+ window->backbuf,
+ gc_copy,
+ window->logobox,
+ window->textbox);
+
+ gdk_gc_set_rgb_fg_color (gc_copy, &balou->fgcolor);
+
+ if (mainscreen == screen && mainmonitor == m)
+ balou->mainwin = window;
+
+ ++i;
+ }
+
+ g_object_unref (context);
+ g_object_unref (layout);
+ g_object_unref (gc_copy);
+ g_object_unref (gc_set);
+ }
+
+ /* show splash windows */
+ for (i = 0; i < balou->nwindows; ++i)
+ {
+ window = balou->windows + i;
+
+ gtk_widget_show_now (window->wmwindow);
+ /*gdk_window_set_back_pixmap (window->wmwindow->window,
+ window->backbuf, FALSE);*/
+ gdk_window_add_filter (window->wmwindow->window,
+ balou_window_filter,
+ window);
+
+ gdk_window_show (window->window);
+ gdk_window_add_filter (window->window,
+ balou_window_filter,
+ window);
+ }
+ gdk_flush ();
+
+ /* display logo pixbuf (if any) */
+ window = balou->mainwin;
+ pb = balou_theme_get_logo (balou->theme,
+ window->logobox.width,
+ window->logobox.height);
+ if (G_LIKELY (pb != NULL))
+ {
+ pw = gdk_pixbuf_get_width (pb);
+ ph = gdk_pixbuf_get_height (pb);
+ px = (window->logobox.width - pw) / 2;
+ py = (window->logobox.height - ph) / 2;
+
+ gdk_draw_pixbuf (window->backbuf, window->gc_copy, pb, 0, 0,
+ px, py, pw, ph, GDK_RGB_DITHER_NONE, 0, 0);
+ gdk_window_clear_area (window->window, px, py, pw, ph);
+ g_object_unref (pb);
+ }
+
+ /* create fader pixmap */
+ balou->fader_pm = gdk_pixmap_new (window->window,
+ window->textbox.width,
+ window->textbox.height,
+ -1);
+ gdk_draw_rectangle (balou->fader_pm, window->gc_set, TRUE, 0, 0,
+ window->textbox.width, window->textbox.height);
+
+ pango_font_description_free (description);
+ gdk_cursor_unref (cursor);
+}
+
+
+void
+balou_fadein (Balou *balou, const gchar *text)
+{
+ BalouWindow *window = balou->mainwin;
+ GdkRectangle area;
+ gint median;
+ gint th;
+ gint tw;
+ gint x;
+
+ pango_layout_set_text (window->layout, text, -1);
+ pango_layout_get_pixel_size (window->layout, &tw, &th);
+
+ area.x = window->textbox.x + BALOU_INCREMENT;
+ area.y = window->textbox.y + (window->textbox.height - th) / 2;
+ area.width = tw + BALOU_INCREMENT;
+ area.height = th;
+
+ gdk_draw_rectangle (balou->fader_pm, window->gc_set, TRUE, 0, 0,
+ window->textbox.width, window->textbox.height);
+ gdk_draw_layout (balou->fader_pm, window->gc_copy,
+ BALOU_INCREMENT, 0, window->layout);
+
+ median = (window->area.width - area.width) / 2;
+ for (x = 0; (median - x) > BALOU_INCREMENT; x += BALOU_INCREMENT)
+ {
+ gdk_draw_drawable (window->window, window->gc_copy, balou->fader_pm,
+ 0, 0, area.x + x, area.y, area.width, area.height);
+
+ gdk_flush ();
+
+ g_main_context_iteration (NULL, FALSE);
+ }
+
+ area.x += median;
+ balou->fader_area = area;
+
+ gdk_draw_rectangle (window->backbuf,
+ window->gc_set, TRUE,
+ window->textbox.x,
+ window->textbox.y,
+ window->textbox.width,
+ window->textbox.height);
+
+ gdk_draw_drawable (window->backbuf, window->gc_copy, balou->fader_pm,
+ 0, 0, area.x, area.y, area.width, area.height);
+
+ gdk_window_clear_area (window->window,
+ window->textbox.x,
+ window->textbox.y,
+ window->textbox.width,
+ window->textbox.height);
+}
+
+
+void
+balou_fadeout (Balou *balou)
+{
+ BalouWindow *window = balou->mainwin;
+ GdkRectangle area = balou->fader_area;
+ gint left;
+
+ left = (window->textbox.x + window->textbox.width) - BALOU_INCREMENT;
+ for (; area.x < left; area.x += BALOU_INCREMENT)
+ {
+ gdk_draw_drawable (window->window, window->gc_copy, balou->fader_pm,
+ 0, 0, area.x, area.y, area.width, area.height);
+
+ gdk_flush ();
+
+ g_main_context_iteration (NULL, FALSE);
+ }
+
+ gdk_draw_rectangle (window->backbuf,
+ window->gc_set, TRUE,
+ window->textbox.x,
+ window->textbox.y,
+ window->textbox.width,
+ window->textbox.height);
+
+ gdk_window_clear_area (window->window,
+ window->textbox.x,
+ window->textbox.y,
+ window->textbox.width,
+ window->textbox.height);
+}
+
+
+int
+balou_run (Balou *balou,
+ GtkWidget *dialog)
+{
+ GtkRequisition requisition;
+ BalouWindow *window = balou->mainwin;
+ int result;
+ int x;
+ int y;
+
+ window->dialog_active = TRUE;
+
+ gtk_widget_size_request (dialog, &requisition);
+ x = window->area.x + (window->area.width - requisition.width) / 2;
+ y = window->area.y + (window->area.height - requisition.height) / 2;
+ gtk_window_move (GTK_WINDOW (dialog), x, y);
+ result = gtk_dialog_run (GTK_DIALOG (dialog));
+
+ window->dialog_active = FALSE;
+
+ return result;
+}
+
+
+void
+balou_destroy (Balou *balou)
+{
+ gint i;
+
+ balou_theme_destroy (balou->theme);
+
+ for (i = 0; i < balou->nwindows; ++i)
+ balou_window_destroy (balou->windows + i);
+ g_free (balou->windows);
+
+ if (balou->fader_pm != NULL)
+ g_object_unref (balou->fader_pm);
+}
+
+
+static void
+balou_window_init (BalouWindow *window,
+ GdkScreen *screen,
+ int monitor,
+ GdkWindow *root,
+ GdkCursor *cursor)
+{
+ GdkWindowAttr attr;
+
+ /* acquire monitor geometry */
+ gdk_screen_get_monitor_geometry (screen, monitor, &window->area);
+
+ /* create splash window */
+ attr.x = window->area.x;
+ attr.y = window->area.y;
+ attr.event_mask = GDK_VISIBILITY_NOTIFY_MASK;
+ attr.width = window->area.width;
+ attr.height = window->area.height;
+ attr.wclass = GDK_INPUT_OUTPUT;
+ attr.window_type = GDK_WINDOW_TEMP;
+ attr.cursor = cursor;
+ attr.override_redirect = TRUE;
+
+ window->window = gdk_window_new (root, &attr, GDK_WA_X | GDK_WA_Y
+ | GDK_WA_CURSOR | GDK_WA_NOREDIR);
+
+ /* create wm window (for tricking the window manager to avoid flicker) */
+ window->wmwindow = gtk_window_new (GTK_WINDOW_TOPLEVEL);
+ gtk_window_move (GTK_WINDOW (window->wmwindow), 0, 0);
+ gtk_window_resize (GTK_WINDOW (window->wmwindow), 1, 1);
+ gtk_window_set_decorated (GTK_WINDOW (window->wmwindow), FALSE);
+ gtk_window_set_screen (GTK_WINDOW (window->wmwindow), screen);
+ gtk_window_set_skip_pager_hint (GTK_WINDOW (window->wmwindow), TRUE);
+ gtk_window_set_skip_taskbar_hint (GTK_WINDOW (window->wmwindow), TRUE);
+
+ window->backbuf = gdk_pixmap_new (window->window,
+ window->area.width,
+ window->area.height,
+ -1);
+
+ gdk_window_set_back_pixmap (window->window, window->backbuf, FALSE);
+}
+
+
+static void
+balou_window_destroy (BalouWindow *window)
+{
+ gdk_window_remove_filter (window->window, balou_window_filter, window);
+ if (GTK_WIDGET_REALIZED (window->wmwindow))
+ {
+ gdk_window_remove_filter (window->wmwindow->window,
+ balou_window_filter,
+ window);
+ }
+
+ gdk_window_destroy (window->window);
+ gtk_widget_destroy (window->wmwindow);
+ g_object_unref (window->backbuf);
+ g_object_unref (window->layout);
+ g_object_unref (window->gc_copy);
+ g_object_unref (window->gc_set);
+}
+
+
+#if 0
+static void
+balou_window_set_text (BalouWindow *window, const gchar *text)
+{
+ gint text_x;
+ gint text_y;
+ gint text_width;
+ gint text_height;
+
+ pango_layout_set_markup (window->layout, text, -1);
+ pango_layout_get_pixel_size (window->layout, &text_width, &text_height);
+
+ text_x = (window->textbox.width - text_width) / 2
+ + window->textbox.x;
+ text_y = (window->textbox.height - text_height) / 2
+ + window->textbox.y;
+
+ gdk_draw_rectangle (window->backbuf,
+ window->gc_set,
+ TRUE,
+ window->textbox.x,
+ window->textbox.y,
+ window->textbox.width,
+ window->textbox.height);
+
+ gdk_draw_layout (window->backbuf, window->gc_copy,
+ text_x, text_y, window->layout);
+
+ gdk_window_clear_area (window->window,
+ window->textbox.x,
+ window->textbox.y,
+ window->textbox.width,
+ window->textbox.height);
+}
+#endif
+
+
+static GdkFilterReturn
+balou_window_filter (GdkXEvent *xevent,
+ GdkEvent *event,
+ gpointer data)
+{
+ XVisibilityEvent *xvisev = (XVisibilityEvent *) xevent;
+ BalouWindow *window = (BalouWindow *) data;
+
+ if (!window->dialog_active)
+ {
+ switch (xvisev->type)
+ {
+ case VisibilityNotify:
+ /* something obscured the splash window */
+ gdk_window_raise (window->window);
+ return GDK_FILTER_REMOVE;
+
+ case ReparentNotify:
+ /* window manager is up */
+ gdk_window_raise (window->window);
+ break;
+ }
+ }
+
+ return GDK_FILTER_CONTINUE;
+}
+
+
diff --git a/engines/balou/balou.h b/engines/balou/balou.h
new file mode 100644
index 0000000..98da07b
--- /dev/null
+++ b/engines/balou/balou.h
@@ -0,0 +1,69 @@
+/* $Id$ */
+/*-
+ * Copyright (c) 2003-2004 Benedikt Meurer <benny@xfce.org>
+ * All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2, or (at your option)
+ * any later version.
+ *
+ * This program 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 General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301 USA.
+ */
+
+#ifndef __BALOU_H__
+#define __BALOU_H__
+
+#include <gtk/gtk.h>
+
+#include <engines/balou/balou-theme.h>
+
+
+G_BEGIN_DECLS;
+
+#define BALOU(obj) ((Balou *)(obj))
+
+typedef struct _BalouWindow BalouWindow;
+typedef struct _Balou Balou;
+
+
+struct _Balou
+{
+ GdkColor bgcolor;
+ GdkColor fgcolor;
+
+ BalouTheme *theme;
+
+ BalouWindow *mainwin;
+ BalouWindow *windows;
+ gint nwindows;
+
+ GdkRectangle fader_area;
+ GdkPixmap *fader_pm;
+};
+
+
+void balou_init (Balou *balou,
+ GdkDisplay *display,
+ GdkScreen *mainscreen,
+ gint mainmonitor,
+ BalouTheme *theme);
+void balou_fadein (Balou *balou,
+ const gchar *text);
+void balou_fadeout (Balou *balou);
+int balou_run (Balou *balou,
+ GtkWidget *dialog);
+void balou_destroy (Balou *balou);
+
+G_END_DECLS;
+
+
+#endif /* !__BALOU_H__ */
diff --git a/engines/balou/config.c b/engines/balou/config.c
new file mode 100644
index 0000000..c84094d
--- /dev/null
+++ b/engines/balou/config.c
@@ -0,0 +1,1003 @@
+/* $Id$ */
+/*-
+ * Copyright (c) 2003-2006 Benedikt Meurer <benny@xfce.org>
+ * All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2, or (at your option)
+ * any later version.
+ *
+ * This program 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 General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301 USA.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#ifdef HAVE_MEMORY_H
+#include <memory.h>
+#endif
+#ifdef HAVE_STRING_H
+#include <string.h>
+#endif
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+
+#ifdef XFCE_DISABLE_DEPRECATED
+#undef XFCE_DISABLE_DEPRECATED
+#endif
+
+#include <gmodule.h>
+
+#include <libxfce4ui/libxfce4ui.h>
+
+#include <libxfsm/xfsm-splash-engine.h>
+
+#include <engines/balou/balou-theme.h>
+#include <engines/balou/gnome-uri.h>
+
+
+#define BORDER 6
+
+
+enum
+{
+ TARGET_RAW_DATA,
+ TARGET_XDS,
+ TARGET_URI,
+ TARGET_STRING,
+};
+
+
+enum
+{
+ PREVIEW_COLUMN,
+ TITLE_COLUMN,
+ NAME_COLUMN,
+ N_COLUMNS,
+};
+
+
+G_MODULE_EXPORT void config_init (XfsmSplashConfig *config);
+
+
+static GtkTargetEntry dst_targets[] =
+{
+ { "text/uri-list", 0, TARGET_URI },
+ { "STRING", 0, TARGET_STRING },
+};
+static gsize dst_ntargets = sizeof (dst_targets) / sizeof (*dst_targets);
+
+static GtkTargetEntry src_targets[] =
+{
+ { "XdndDirectSave0", 0, TARGET_XDS },
+};
+static gsize src_ntargets = sizeof (src_targets) / sizeof (*src_targets);
+
+
+static gboolean
+config_load_theme_for_iter (GtkListStore *store,
+ GtkTreeIter *iter,
+ const gchar *name)
+{
+ BalouTheme *theme;
+ GdkPixbuf *preview;
+ gchar title[128];
+
+ theme = balou_theme_load (name);
+ if (G_UNLIKELY (theme == NULL))
+ return FALSE;
+
+ g_snprintf (title, 128, "<b>%s</b>\n<small><i>%s</i></small>",
+ balou_theme_get_name (theme),
+ balou_theme_get_description (theme));
+ preview = balou_theme_generate_preview (theme, 52, 43);
+
+ gtk_list_store_set (store, iter,
+ PREVIEW_COLUMN, preview,
+ TITLE_COLUMN, title,
+ NAME_COLUMN, name,
+ -1);
+
+ balou_theme_destroy (theme);
+ g_object_unref (preview);
+
+ return TRUE;
+}
+
+
+static GtkTreeModel*
+config_load_themelist (void)
+{
+ GtkListStore *store;
+ GtkTreeIter iter;
+ gchar **themes;
+ gchar *name;
+ gchar *endp;
+ guint n;
+
+ store = gtk_list_store_new (N_COLUMNS,
+ GDK_TYPE_PIXBUF,
+ G_TYPE_STRING,
+ G_TYPE_STRING);
+
+ themes = xfce_resource_match (XFCE_RESOURCE_THEMES, "*/balou/themerc", TRUE);
+ if (G_LIKELY (themes != NULL))
+ {
+ for (n = 0; themes[n] != NULL; ++n)
+ {
+ name = themes[n];
+ endp = strchr (name, '/');
+
+ if (G_UNLIKELY (endp == NULL))
+ continue;
+ else
+ *endp = '\0';
+
+ gtk_list_store_append (store, &iter);
+ if (!config_load_theme_for_iter (store, &iter, name))
+ gtk_list_store_remove (store, &iter);
+ }
+
+ g_strfreev (themes);
+ }
+
+ return GTK_TREE_MODEL (store);
+}
+
+
+static gboolean
+config_find_theme (const gchar *theme_name,
+ GtkTreeView *treeview,
+ GtkTreeIter *iter)
+{
+ GtkTreeModel *model;
+ gboolean match;
+ gchar *name;
+
+ model = gtk_tree_view_get_model (GTK_TREE_VIEW (treeview));
+
+ if (gtk_tree_model_get_iter_first (model, iter))
+ {
+ do
+ {
+ gtk_tree_model_get (model, iter, NAME_COLUMN, &name, -1);
+ match = (strcmp (name, theme_name) == 0);
+ g_free (name);
+
+ if (match)
+ return TRUE;
+ }
+ while (gtk_tree_model_iter_next (model, iter));
+ }
+
+ return FALSE;
+}
+
+
+static void
+config_select_theme (const gchar *selected_theme,
+ GtkTreeView *treeview)
+{
+ GtkTreeSelection *selection;
+ GtkTreeModel *model;
+ GtkTreeIter iter;
+
+ selection = gtk_tree_view_get_selection (treeview);
+ model = gtk_tree_view_get_model (treeview);
+
+ if (config_find_theme (selected_theme, treeview, &iter))
+ gtk_tree_selection_select_iter (selection, &iter);
+ else if (gtk_tree_model_get_iter_first (model, &iter))
+ gtk_tree_selection_select_iter (selection, &iter);
+}
+
+
+static gboolean
+config_reload_theme (const gchar *name,
+ GtkTreeView *treeview)
+{
+ GtkListStore *store;
+ GtkTreeIter iter;
+
+ store = GTK_LIST_STORE (gtk_tree_view_get_model (treeview));
+
+ if (!config_find_theme (name, treeview, &iter))
+ gtk_list_store_append (store, &iter);
+
+ if (!config_load_theme_for_iter (store, &iter, name))
+ {
+ gtk_list_store_remove (store, &iter);
+ return FALSE;
+ }
+
+ config_select_theme (name, treeview);
+
+ return TRUE;
+}
+
+
+static gboolean
+config_do_install_theme (const gchar *path,
+ GtkTreeView *treeview)
+{
+ gchar *standard_output;
+ gchar *standard_error;
+ gint exit_status;
+ gboolean result;
+ gchar *target;
+ gchar *argv[4];
+
+ g_return_val_if_fail (path != NULL, FALSE);
+
+ target = xfce_resource_save_location (XFCE_RESOURCE_THEMES, NULL, TRUE);
+ if (G_UNLIKELY (target == NULL))
+ {
+ g_warning ("Unable to determine save location for themes.");
+ return FALSE;
+ }
+
+ argv[0] = BALOU_INSTALL_THEME;
+ argv[1] = (gchar *) path;
+ argv[2] = target;
+ argv[3] = NULL;
+
+ result = g_spawn_sync (NULL, argv, NULL, 0, NULL, NULL,
+ &standard_output, &standard_error,
+ &exit_status, NULL);
+
+ g_free (target);
+
+ if (G_UNLIKELY (!result))
+ {
+ g_warning ("Unable to execute %s", BALOU_INSTALL_THEME);
+ return FALSE;
+ }
+
+ g_strstrip (standard_output);
+ g_strstrip (standard_error);
+
+ if (G_UNLIKELY (exit_status != 0))
+ {
+ g_warning ("%s failed: %s", BALOU_INSTALL_THEME, standard_error);
+ g_free (standard_output);
+ g_free (standard_error);
+ return FALSE;
+ }
+
+ result = config_reload_theme (standard_output, treeview);
+
+ g_free (standard_output);
+ g_free (standard_error);
+ return result;
+}
+
+
+static void
+config_dropped (GtkWidget *treeview, GdkDragContext *context,
+ gint x, gint y, GtkSelectionData *data,
+ guint info, guint time_, gpointer user_data)
+{
+ gboolean succeed = FALSE;
+ GList *fnames;
+
+ fnames = gnome_uri_list_extract_filenames ((const gchar *) data->data);
+ if (fnames != NULL)
+ {
+ if (g_list_length (fnames) == 1)
+ {
+ succeed = TRUE;
+
+ if (!config_do_install_theme ((const gchar *) fnames->data,
+ GTK_TREE_VIEW (treeview)))
+ succeed = FALSE;
+ }
+
+ gnome_uri_list_free_strings (fnames);
+ }
+
+ gtk_drag_finish (context, succeed, FALSE, time_);
+}
+
+
+static void
+config_install_theme (GtkWidget *item,
+ GtkWidget *menu)
+{
+ GtkTreeView *treeview;
+ GtkWidget *toplevel;
+ GtkWidget *chooser;
+ gchar *file;
+
+ treeview = GTK_TREE_VIEW (g_object_get_data (G_OBJECT (menu), "tree-view"));
+ toplevel = gtk_widget_get_toplevel (GTK_WIDGET (treeview));
+ chooser = gtk_file_chooser_dialog_new (_("Choose theme file to install..."),
+ GTK_WINDOW (toplevel),
+ GTK_FILE_CHOOSER_ACTION_OPEN,
+ GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
+ GTK_STOCK_OPEN, GTK_RESPONSE_OK,
+ NULL);
+ if (gtk_dialog_run (GTK_DIALOG (chooser)) == GTK_RESPONSE_OK)
+ {
+ file = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (chooser));
+
+ if (!config_do_install_theme (file, treeview))
+ {
+ gchar *primary = g_strdup_printf (_("Unable to install splash theme from file \"%s\""),
+ file);
+ xfce_message_dialog (GTK_WINDOW (toplevel),
+ _("Theme File Error"),
+ GTK_STOCK_DIALOG_ERROR,
+ primary,
+ _("Please check that the file is a valid splash "
+ "theme archive."),
+ GTK_STOCK_CLOSE, GTK_RESPONSE_ACCEPT, NULL);
+ g_free (primary);
+ }
+
+ g_free (file);
+ }
+
+ gtk_widget_destroy (chooser);
+}
+
+
+#ifdef RM_CMD
+static void
+config_remove_theme (GtkWidget *item,
+ GtkWidget *menu)
+{
+ GtkTreeModel *model;
+ GtkTreeView *treeview;
+ GtkTreeIter *iter;
+ gboolean result;
+ gchar *directory;
+ gchar *resource;
+ gchar *name;
+ gchar* argv[4];
+ gint status;
+ GError *error = NULL;
+ gchar *error_msg = NULL;
+
+ iter = (GtkTreeIter *) g_object_get_data (G_OBJECT (menu), "iter");
+ if (G_UNLIKELY (iter == NULL))
+ return;
+
+ treeview = GTK_TREE_VIEW (g_object_get_data (G_OBJECT (menu), "tree-view"));
+
+ model = gtk_tree_view_get_model (GTK_TREE_VIEW (treeview));
+
+ gtk_tree_model_get (model, iter, NAME_COLUMN, &name, -1);
+ if (G_UNLIKELY (name == NULL))
+ return;
+
+ resource = g_strconcat (name, "/balou/", NULL);
+ directory = xfce_resource_lookup (XFCE_RESOURCE_THEMES, resource);
+ g_free (resource);
+
+ argv[0] = RM_CMD;
+ argv[1] = "-rf";
+ argv[2] = directory;
+ argv[3] = NULL;
+
+ result = g_spawn_sync (NULL, argv, NULL, 0, NULL, NULL,
+ NULL, &error_msg, &status, NULL);
+
+ if (!result || status != 0)
+ {
+ if (!error && error_msg)
+ g_set_error_literal (&error, G_SPAWN_ERROR, G_SPAWN_ERROR_FAILED, error_msg);
+
+ xfce_dialog_show_error (NULL, error,
+ _("Unable to remove splash theme \"%s\" from directory %s."),
+ name, directory);
+ if (error)
+ g_error_free (error);
+ }
+ else
+ {
+ gtk_list_store_remove (GTK_LIST_STORE (model), iter);
+ }
+
+ g_free (directory);
+ g_free (name);
+ g_free (error_msg);
+}
+#endif
+
+
+static gboolean
+config_do_export_theme (const gchar *name,
+ const gchar *file)
+{
+ gboolean result;
+ gchar *standard_error;
+ gchar *resource;
+ gchar *themerc;
+ gchar *argv[4];
+ gint status;
+
+ resource = g_strconcat (name, "/balou/themerc", NULL);
+ themerc = xfce_resource_lookup (XFCE_RESOURCE_THEMES, resource);
+ g_free (resource);
+
+ argv[0] = BALOU_EXPORT_THEME;
+ argv[1] = themerc;
+ argv[2] = (gchar *) file;
+ argv[3] = NULL;
+
+ result = g_spawn_sync (NULL, argv, NULL, 0, NULL, NULL,
+ NULL, &standard_error,
+ &status, NULL);
+
+ g_free (themerc);
+
+ if (result)
+ {
+ g_strstrip (standard_error);
+
+ if (status != 0)
+ {
+ g_warning ("%s failed: %s", BALOU_EXPORT_THEME, standard_error);
+ result = FALSE;
+ }
+
+ g_free (standard_error);
+ }
+ else
+ {
+ g_warning ("Unable to execute %s", BALOU_EXPORT_THEME);
+ }
+
+ return result;
+}
+
+
+static void
+config_export_theme (GtkWidget *item,
+ GtkWidget *menu)
+{
+ GtkTreeModel *model;
+ GtkTreeView *treeview;
+ GtkTreeIter *iter;
+ GtkWidget *toplevel;
+ GtkWidget *dialog;
+ gchar *file;
+ gchar *name;
+
+ iter = (GtkTreeIter *) g_object_get_data (G_OBJECT (menu), "iter");
+ if (G_UNLIKELY (iter == NULL))
+ return;
+
+ treeview = GTK_TREE_VIEW (g_object_get_data (G_OBJECT (menu), "tree-view"));
+
+ model = gtk_tree_view_get_model (GTK_TREE_VIEW (treeview));
+ gtk_tree_model_get (model, iter, NAME_COLUMN, &name, -1);
+ if (G_UNLIKELY (name == NULL))
+ return;
+
+ toplevel = gtk_widget_get_toplevel (GTK_WIDGET (treeview));
+
+ dialog = gtk_file_chooser_dialog_new (_("Choose theme filename..."),
+ GTK_WINDOW (toplevel),
+ GTK_FILE_CHOOSER_ACTION_SAVE,
+ GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
+ GTK_STOCK_SAVE, GTK_RESPONSE_OK,
+ NULL);
+ file = g_strconcat (name, ".tar.gz", NULL);
+ gtk_file_chooser_set_filename (GTK_FILE_CHOOSER (dialog), file);
+ g_free (file);
+ if (gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_OK)
+ {
+ file = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (dialog));
+
+ config_do_export_theme (name, file);
+
+ g_free (file);
+ }
+
+ gtk_widget_destroy (dialog);
+ g_free (name);
+}
+
+
+static void
+config_popup_menu (GtkWidget *treeview,
+ GdkEventButton *event,
+ GtkTreeModel *model,
+ GtkTreeIter *iter)
+{
+ GtkWidget *menu;
+ GtkWidget *item;
+ gboolean writable;
+ gchar *directory;
+ gchar *resource;
+ gchar *name;
+ guint button;
+ guint time_;
+
+ menu = (GtkWidget *) g_object_get_data (G_OBJECT (treeview), "popup-menu");
+ if (GTK_IS_WIDGET (menu))
+ {
+ if (event != NULL)
+ {
+ button = event->button;
+ time_ = event->time;
+ }
+ else
+ {
+ button = 0;
+ time_ = gtk_get_current_event_time ();
+ }
+
+#ifdef RM_CMD
+ if (iter != NULL)
+ {
+ gtk_tree_model_get (model, iter, NAME_COLUMN, &name, -1);
+
+ resource = g_strconcat (name, "/", NULL);
+ directory = xfce_resource_lookup (XFCE_RESOURCE_THEMES, resource);
+ g_free (resource);
+
+ writable = (access (directory, W_OK) == 0);
+
+ g_free (directory);
+ g_free (name);
+ }
+ else
+#endif
+ {
+ writable = FALSE;
+ }
+
+ item = GTK_WIDGET (g_object_get_data (G_OBJECT (menu), "remove-theme"));
+ gtk_widget_set_sensitive (item, writable);
+
+ g_object_set_data_full (G_OBJECT (menu), "iter",
+ g_memdup (iter, sizeof (*iter)),
+ (GDestroyNotify) g_free);
+ g_object_set_data (G_OBJECT (menu), "tree-view", treeview);
+
+ gtk_menu_popup (GTK_MENU (menu), NULL, NULL, NULL, NULL, button, time_);
+ }
+}
+
+
+static gboolean
+config_button_press_handler (GtkWidget *treeview, GdkEventButton *event)
+{
+ GtkTreeModel *model;
+ GtkTreePath *path;
+ GtkTreeIter iter;
+
+ if (event->button != 3 || event->type != GDK_BUTTON_PRESS)
+ return FALSE;
+
+ if (!gtk_tree_view_get_path_at_pos (GTK_TREE_VIEW (treeview), event->x,
+ event->y, &path, NULL, NULL, NULL))
+ return FALSE;
+
+ model = gtk_tree_view_get_model (GTK_TREE_VIEW (treeview));
+ if (!gtk_tree_model_get_iter (model, &iter, path))
+ return FALSE;
+
+ config_popup_menu (treeview, event, model, &iter);
+ return TRUE;
+}
+
+
+static gboolean
+config_popup_menu_handler (GtkWidget *treeview)
+{
+ GtkTreeSelection *selection;
+ GtkTreeModel *model;
+ GtkTreeIter iter;
+
+ selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (treeview));
+ if (!gtk_tree_selection_get_selected (selection, &model, &iter))
+ return FALSE;
+
+ config_popup_menu (treeview, NULL, model, &iter);
+ return TRUE;
+}
+
+
+static GtkWidget*
+config_create_popupmenu (void)
+{
+ GtkWidget *menu;
+ GtkWidget *item;
+ GtkWidget *image;
+
+ menu = gtk_menu_new ();
+
+ item = gtk_image_menu_item_new_with_mnemonic (_("_Install new theme"));
+ image = gtk_image_new_from_stock (GTK_STOCK_ADD, GTK_ICON_SIZE_MENU);
+ gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item), image);
+ g_object_set_data (G_OBJECT (menu), "install-theme", item);
+ gtk_menu_shell_append (GTK_MENU_SHELL (menu), item);
+ g_signal_connect (G_OBJECT (item), "activate",
+ G_CALLBACK (config_install_theme), menu);
+ gtk_widget_show (item);
+
+ item = gtk_image_menu_item_new_with_mnemonic (_("_Remove theme"));
+ image = gtk_image_new_from_stock (GTK_STOCK_REMOVE, GTK_ICON_SIZE_MENU);
+ gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item), image);
+ g_object_set_data (G_OBJECT (menu), "remove-theme", item);
+ gtk_menu_shell_append (GTK_MENU_SHELL (menu), item);
+#ifdef RM_CMD
+ g_signal_connect (G_OBJECT (item), "activate",
+ G_CALLBACK (config_remove_theme), menu);
+#else
+ gtk_widget_set_sensitive (item, FALSE);
+#endif
+ gtk_widget_show (item);
+
+ item = gtk_separator_menu_item_new ();
+ gtk_menu_shell_append (GTK_MENU_SHELL (menu), item);
+ gtk_widget_show (item);
+
+ item = gtk_image_menu_item_new_with_mnemonic (_("_Export theme"));
+ image = gtk_image_new_from_stock (GTK_STOCK_SAVE, GTK_ICON_SIZE_MENU);
+ gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item), image);
+ g_object_set_data (G_OBJECT (menu), "export-theme", item);
+ gtk_menu_shell_append (GTK_MENU_SHELL (menu), item);
+ g_signal_connect (G_OBJECT (item), "activate",
+ G_CALLBACK (config_export_theme), menu);
+ gtk_widget_show (item);
+
+ return menu;
+}
+
+
+static gchar*
+extract_local_path (gchar *uri)
+{
+ gchar *our_host_name;
+
+ if (*uri == '/')
+ {
+ gchar *path;
+
+ if (uri[1] != '/')
+ return uri; /* Just a local path - no host part */
+
+ path = strchr(uri + 2, '/');
+ if (!path)
+ return NULL; /* //something */
+
+ if (path - uri == 2)
+ return path; /* ///path */
+
+ our_host_name = xfce_gethostname ();
+ if ((int)strlen(our_host_name) == path - uri - 2 &&
+ strncmp(uri + 2, our_host_name, path - uri - 2) == 0)
+ {
+ g_free (our_host_name);
+ return path; /* //myhost/path */
+ }
+ g_free (our_host_name);
+
+ return NULL; /* From a different host */
+ }
+ else
+ {
+ if (strncasecmp(uri, "file:", 5))
+ return NULL; /* Don't know this format */
+
+ uri += 5;
+
+ if (*uri == '/')
+ return extract_local_path (uri);
+
+ return NULL;
+ }
+}
+
+
+static void
+config_drag_begin (GtkWidget *treeview,
+ GdkDragContext *context)
+{
+ GtkTreeSelection *selection;
+ GtkTreeModel *model;
+ GtkTreeIter iter;
+ gchar *filename;
+ gchar *name;
+
+ selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (treeview));
+ if (!gtk_tree_selection_get_selected (selection, &model, &iter))
+ return;
+
+ gtk_tree_model_get (model, &iter, NAME_COLUMN, &name, -1);
+ filename = g_strconcat (name, ".tar.gz", NULL);
+
+ gdk_property_change (context->source_window,
+ gdk_atom_intern ("XdndDirectSave0", FALSE),
+ gdk_atom_intern ("text/plain", FALSE), 8,
+ GDK_PROP_MODE_REPLACE, (const guchar *)filename, strlen (filename));
+
+ g_free (filename);
+ g_free (name);
+}
+
+
+static void
+config_drag_data_get (GtkWidget *treeview,
+ GdkDragContext *context,
+ GtkSelectionData *selection_data,
+ guint info,
+ guint32 time_)
+{
+ GtkTreeSelection *selection;
+ GtkTreeModel *model;
+ GtkTreeIter iter;
+ gchar *name;
+ guchar *prop_text;
+ gint prop_len;
+ gchar *to_send = "E";
+
+ selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (treeview));
+ if (!gtk_tree_selection_get_selected (selection, &model, &iter))
+ return;
+
+ gtk_tree_model_get (model, &iter, NAME_COLUMN, &name, -1);
+
+ switch (info)
+ {
+ case TARGET_XDS:
+ if (gdk_property_get (context->source_window,
+ gdk_atom_intern ("XdndDirectSave0", FALSE),
+ gdk_atom_intern ("text/plain", FALSE),
+ 0, 1024, FALSE, NULL, NULL, &prop_len, &prop_text)
+ && prop_text != NULL)
+ {
+ gchar *localpath;
+
+ /* Zero-Terminate the string */
+ prop_text = g_realloc (prop_text, prop_len + 1);
+ prop_text[prop_len] = '\0';
+
+ localpath = extract_local_path ((gchar *)prop_text);
+
+ if (localpath != NULL)
+ {
+ if (config_do_export_theme (name, localpath))
+ to_send = "S";
+ }
+ else
+ to_send = "F";
+
+ g_dataset_set_data (context, "XDS-sent", to_send);
+
+ g_free (prop_text);
+ }
+ break;
+ }
+
+ gtk_selection_data_set (selection_data, gdk_atom_intern ("XA_STRING", FALSE),
+ 8, (const guchar *)to_send, 1);
+
+ g_free (name);
+}
+
+
+static void
+config_drag_end (GtkWidget *treeview, GdkDragContext *context)
+{
+ /* nothing to do here */
+}
+
+
+static void
+config_store (GtkTreeView *treeview,
+ XfsmSplashRc *rc)
+{
+ GtkTreeSelection *selection;
+ GtkTreeModel *model;
+ GtkTreeIter iter;
+ gchar *name;
+
+ selection = gtk_tree_view_get_selection (treeview);
+ if (gtk_tree_selection_get_selected (selection, &model, &iter))
+ {
+ gtk_tree_model_get (model, &iter, NAME_COLUMN, &name, -1);
+ if (name != NULL)
+ {
+ xfsm_splash_rc_write_entry (rc, "Theme", name);
+ g_free (name);
+ }
+ }
+}
+
+
+static gboolean
+config_selection_changed (GtkTreeSelection *selection,
+ gpointer user_data)
+{
+ GtkTreeModel *model;
+ GtkTreeIter iter;
+ GtkTreeView *treeview;
+ GdkPixbuf *icon;
+
+ if (gtk_tree_selection_get_selected (selection, &model, &iter))
+ {
+ treeview = gtk_tree_selection_get_tree_view (selection);
+ gtk_tree_model_get (model, &iter, PREVIEW_COLUMN, &icon, -1);
+ gtk_drag_source_set_icon_pixbuf (GTK_WIDGET (treeview), icon);
+ g_object_unref (icon);
+ }
+
+ return FALSE;
+}
+
+
+static GtkWidget*
+config_create (XfsmSplashRc *rc)
+{
+ GtkTreeSelection *selection;
+ GtkTreeViewColumn *column;
+ GtkCellRenderer *renderer;
+ GtkTreeModel *model;
+ GtkWidget *treeview;
+ GtkWidget *frame;
+ GtkWidget *popup;
+ GtkWidget *page;
+ GtkWidget *swin;
+ GtkWidget *vbox;
+ gchar *theme;
+ GtkWidget *bin;
+
+ theme = xfsm_splash_rc_read_entry (rc, "Theme", "Default");
+
+ page = gtk_vbox_new (FALSE, BORDER);
+ gtk_container_set_border_width (GTK_CONTAINER (page), BORDER);
+
+ frame = xfce_gtk_frame_box_new (_("Balou theme"), &bin);
+ gtk_box_pack_start (GTK_BOX (page), frame, TRUE, TRUE, 0);
+ vbox = gtk_vbox_new (FALSE, 0);
+ gtk_container_add (GTK_CONTAINER (bin), vbox);
+
+ swin = gtk_scrolled_window_new (NULL, NULL);
+ gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (swin),
+ GTK_POLICY_NEVER,
+ GTK_POLICY_AUTOMATIC);
+ gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (swin),
+ GTK_SHADOW_ETCHED_IN);
+ gtk_box_pack_start (GTK_BOX (vbox), swin, TRUE, TRUE, 0);
+ gtk_widget_show (swin);
+
+ model = config_load_themelist ();
+ treeview = gtk_tree_view_new_with_model (model);
+ gtk_widget_set_size_request (treeview, -1, 100);
+ g_object_unref (G_OBJECT (model));
+ config_select_theme (theme, GTK_TREE_VIEW (treeview));
+ selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (treeview));
+ gtk_tree_selection_set_mode (GTK_TREE_SELECTION (selection),
+ GTK_SELECTION_SINGLE);
+ g_signal_connect (G_OBJECT (selection), "changed",
+ G_CALLBACK (config_selection_changed), NULL);
+ g_idle_add ((GSourceFunc)config_selection_changed, selection);
+ gtk_tree_view_set_headers_visible (GTK_TREE_VIEW (treeview), FALSE);
+ gtk_container_add (GTK_CONTAINER (swin), treeview);
+
+ /* add tree view columns */
+ column = gtk_tree_view_column_new ();
+ renderer = gtk_cell_renderer_pixbuf_new ();
+ gtk_tree_view_column_pack_start (column, renderer, FALSE);
+ gtk_tree_view_column_set_attributes (column, renderer,
+ "pixbuf", PREVIEW_COLUMN,
+ NULL);
+ renderer = gtk_cell_renderer_text_new ();
+ gtk_tree_view_column_pack_start (column, renderer, TRUE);
+ gtk_tree_view_column_set_attributes (column, renderer,
+ "markup", TITLE_COLUMN,
+ NULL);
+ gtk_tree_view_append_column (GTK_TREE_VIEW (treeview), column);
+
+ /* Drag&Drop support (destination) */
+ gtk_drag_dest_set (treeview, GTK_DEST_DEFAULT_ALL, dst_targets,
+ dst_ntargets, GDK_ACTION_COPY);
+ g_signal_connect (G_OBJECT (treeview), "drag_data_received",
+ G_CALLBACK (config_dropped), NULL);
+
+ /* Drag&Drop support (source) */
+ gtk_drag_source_set (treeview, GDK_BUTTON1_MASK,
+ src_targets, src_ntargets,
+ GDK_ACTION_COPY | GDK_ACTION_PRIVATE);
+ g_signal_connect (G_OBJECT (treeview), "drag_begin",
+ G_CALLBACK (config_drag_begin), NULL);
+ g_signal_connect (G_OBJECT (treeview), "drag_data_get",
+ G_CALLBACK (config_drag_data_get), NULL);
+ g_signal_connect (G_OBJECT (treeview), "drag_end",
+ G_CALLBACK (config_drag_end), NULL);
+
+ /* popup menu */
+ popup = config_create_popupmenu ();
+ g_object_set_data (G_OBJECT (treeview),
+ "popup-menu", popup);
+ g_signal_connect (G_OBJECT (treeview), "popup-menu",
+ G_CALLBACK (config_popup_menu_handler), NULL);
+ g_signal_connect (G_OBJECT (treeview), "button-press-event",
+ G_CALLBACK (config_button_press_handler), NULL);
+ g_signal_connect_swapped (G_OBJECT (treeview), "destroy",
+ G_CALLBACK (gtk_widget_destroy), popup);
+ g_signal_connect (G_OBJECT (treeview), "destroy",
+ G_CALLBACK (config_store), rc);
+
+ g_free (theme);
+
+ return page;
+}
+
+
+static void
+config_configure (XfsmSplashConfig *config,
+ GtkWidget *parent)
+{
+ GtkWidget *dialog;
+ GtkWidget *ui;
+
+ dialog = gtk_dialog_new_with_buttons (_("Configure Balou..."),
+ GTK_WINDOW (parent),
+ GTK_DIALOG_MODAL
+ | GTK_DIALOG_NO_SEPARATOR
+ | GTK_DIALOG_DESTROY_WITH_PARENT,
+ GTK_STOCK_CLOSE,
+ GTK_RESPONSE_CLOSE,
+ NULL);
+
+ ui = config_create (config->rc);
+ gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dialog)->vbox), ui, TRUE, TRUE, 6);
+ gtk_widget_show_all (ui);
+
+ gtk_dialog_run (GTK_DIALOG (dialog));
+
+ gtk_widget_destroy (dialog);
+}
+
+
+static GdkPixbuf*
+config_preview (XfsmSplashConfig *config)
+{
+ gchar *name;
+ BalouTheme *theme;
+ GdkPixbuf *pixbuf = NULL;
+
+ name = xfsm_splash_rc_read_entry (config->rc, "Theme", NULL);
+ if (G_UNLIKELY (name == NULL))
+ return NULL;
+
+ theme = balou_theme_load (name);
+ pixbuf = balou_theme_generate_preview (theme, 320, 240);
+ balou_theme_destroy (theme);
+
+ g_free (name);
+
+ return pixbuf;
+}
+
+
+G_MODULE_EXPORT void
+config_init (XfsmSplashConfig *config)
+{
+ config->name = g_strdup (_("Balou"));
+ config->description = g_strdup (_("Balou Splash Engine"));
+ config->version = g_strdup (VERSION);
+ config->author = g_strdup ("Benedikt Meurer");
+ config->homepage = g_strdup ("http://www.xfce.org/");
+
+ config->configure = config_configure;
+ config->preview = config_preview;
+}
+
diff --git a/engines/balou/engine.c b/engines/balou/engine.c
new file mode 100644
index 0000000..6a18a27
--- /dev/null
+++ b/engines/balou/engine.c
@@ -0,0 +1,100 @@
+/* $Id$ */
+/*-
+ * Copyright (c) 2003-2004 Benedikt Meurer <benny@xfce.org>
+ * All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2, or (at your option)
+ * any later version.
+ *
+ * This program 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 General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301 USA.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#include <gmodule.h>
+
+#include <libxfsm/xfsm-splash-engine.h>
+
+#include <engines/balou/balou.h>
+
+
+#define DEFAULT_THEME "Default"
+
+
+G_MODULE_EXPORT void engine_init (XfsmSplashEngine *engine);
+
+
+static void
+engine_setup (XfsmSplashEngine *engine,
+ XfsmSplashRc *rc)
+{
+ gchar *theme_name;
+ BalouTheme *theme;
+
+ theme_name = xfsm_splash_rc_read_entry (rc, "Theme", DEFAULT_THEME);
+ theme = balou_theme_load (theme_name);
+ g_free (theme_name);
+
+ balou_init (BALOU (engine->user_data),
+ engine->display,
+ engine->primary_screen,
+ engine->primary_monitor,
+ theme);
+}
+
+
+static void
+engine_next (XfsmSplashEngine *engine,
+ const gchar *text)
+{
+ Balou *balou = BALOU (engine->user_data);
+
+ balou_fadeout (balou);
+ balou_fadein (balou, text);
+}
+
+
+static int
+engine_run (XfsmSplashEngine *engine,
+ GtkWidget *dialog)
+{
+ return balou_run (BALOU (engine->user_data), dialog);
+}
+
+
+static void
+engine_destroy (XfsmSplashEngine *engine)
+{
+ Balou *balou = BALOU (engine->user_data);
+
+ if (G_LIKELY (balou != NULL))
+ {
+ balou_destroy (balou);
+ g_free (balou);
+ }
+}
+
+
+G_MODULE_EXPORT void
+engine_init (XfsmSplashEngine *engine)
+{
+ engine->user_data = g_new0 (Balou, 1);
+ engine->setup = engine_setup;
+ engine->next = engine_next;
+ engine->run = engine_run;
+ engine->destroy = engine_destroy;
+}
+
+
diff --git a/engines/balou/gnome-uri.c b/engines/balou/gnome-uri.c
new file mode 100644
index 0000000..29748b0
--- /dev/null
+++ b/engines/balou/gnome-uri.c
@@ -0,0 +1,149 @@
+/*
+ * Copyright (C) 1998 Miguel de Icaza
+ * Copyright (C) 1997 Paolo Molaro
+ *
+ * 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., 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ *
+ */
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#ifdef HAVE_STRING_H
+#include <string.h>
+#endif
+
+#include <engines/balou/gnome-uri.h>
+
+/*** the next three routines are taken straight from gnome-libs so that the
+ gtk-only version can receive drag and drops as well ***/
+/**
+ * gnome_uri_list_free_strings:
+ * @list: A GList returned by gnome_uri_list_extract_uris() or gnome_uri_list_extract_filenames()
+ *
+ * Releases all of the resources allocated by @list.
+ */
+void
+gnome_uri_list_free_strings (GList * list)
+{
+ g_list_foreach (list, (GFunc) g_free, NULL);
+ g_list_free (list);
+}
+
+/**
+ * gnome_uri_list_extract_uris:
+ * @uri_list: an uri-list in the standard format.
+ *
+ * Returns a GList containing strings allocated with g_malloc
+ * that have been splitted from @uri-list.
+ */
+GList *
+gnome_uri_list_extract_uris (const gchar * uri_list)
+{
+ const gchar *p, *q;
+ gchar *retval;
+ GList *result = NULL;
+
+ g_return_val_if_fail (uri_list != NULL, NULL);
+
+ p = uri_list;
+
+ /* We don't actually try to validate the URI according to RFC
+ * 2396, or even check for allowed characters - we just ignore
+ * comments and trim whitespace off the ends. We also
+ * allow LF delimination as well as the specified CRLF.
+ */
+ while (p)
+ {
+ if (*p != '#')
+ {
+ while (g_ascii_isspace ((int) (*p)))
+ p++;
+
+ q = p;
+ while (*q && (*q != '\n') && (*q != '\r'))
+ q++;
+
+ if (q > p)
+ {
+ q--;
+ while (q > p && g_ascii_isspace ((int) (*q)))
+ q--;
+
+ retval = (char *) g_malloc (q - p + 2);
+ strncpy (retval, p, q - p + 1);
+ retval[q - p + 1] = '\0';
+
+ result = g_list_prepend (result, retval);
+ }
+ }
+ p = strchr (p, '\n');
+ if (p)
+ p++;
+ }
+
+ return g_list_reverse (result);
+}
+
+
+/**
+ * gnome_uri_list_extract_filenames:
+ * @uri_list: an uri-list in the standard format
+ *
+ * Returns a GList containing strings allocated with g_malloc
+ * that contain the filenames in the uri-list.
+ *
+ * Note that unlike gnome_uri_list_extract_uris() function, this
+ * will discard any non-file uri from the result value.
+ */
+GList *
+gnome_uri_list_extract_filenames (const gchar * uri_list)
+{
+ GList *tmp_list, *node, *result;
+
+ g_return_val_if_fail (uri_list != NULL, NULL);
+
+ result = gnome_uri_list_extract_uris (uri_list);
+
+ tmp_list = result;
+ while (tmp_list)
+ {
+ gchar *s = (char *) tmp_list->data;
+
+ node = tmp_list;
+ tmp_list = tmp_list->next;
+
+ if (!strncmp (s, "file:", 5))
+ {
+ /* added by Jasper Huijsmans
+ remove leading multiple slashes */
+ if (!strncmp (s + 5, "///", 3))
+ node->data = g_strdup (s + 7);
+ else
+ node->data = g_strdup (s + 5);
+ }
+ else
+ {
+ node->data = g_strdup (s);
+ }
+ g_free (s);
+ }
+ return result;
+}
+
+
+
diff --git a/engines/balou/gnome-uri.h b/engines/balou/gnome-uri.h
new file mode 100644
index 0000000..94ef2a8
--- /dev/null
+++ b/engines/balou/gnome-uri.h
@@ -0,0 +1,30 @@
+/*
+ * Copyright (C) 1997, 1998, 1999, 2000 Free Software Foundation
+ *
+ * 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., 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ *
+ */
+
+#ifndef __GNOME_URI_H__
+#define __GNOME_URI_H__
+
+#include <glib.h>
+
+void gnome_uri_list_free_strings (GList *list);
+GList *gnome_uri_list_extract_uris (const gchar *uri_list);
+GList *gnome_uri_list_extract_filenames (const gchar *uri_list);
+
+#endif /* !__GNOME_URI_H__ */
diff --git a/engines/balou/scripts/Makefile.am b/engines/balou/scripts/Makefile.am
new file mode 100644
index 0000000..0ccf8ea
--- /dev/null
+++ b/engines/balou/scripts/Makefile.am
@@ -0,0 +1,6 @@
+baloursciptsdir = $(HELPER_PATH_PREFIX)/xfce4/session
+balourscipts_SCRIPTS = \
+ balou-export-theme \
+ balou-install-theme
+
+EXTRA_DIST = $(balourscipts_SCRIPTS)
diff --git a/engines/balou/scripts/Makefile.in b/engines/balou/scripts/Makefile.in
new file mode 100644
index 0000000..4d0cb6d
--- /dev/null
+++ b/engines/balou/scripts/Makefile.in
@@ -0,0 +1,588 @@
+# Makefile.in generated by automake 1.14.1 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994-2013 Free Software Foundation, Inc.
+
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+@SET_MAKE@
+
+VPATH = @srcdir@
+am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
+am__make_running_with_option = \
+ case $${target_option-} in \
+ ?) ;; \
+ *) echo "am__make_running_with_option: internal error: invalid" \
+ "target option '$${target_option-}' specified" >&2; \
+ exit 1;; \
+ esac; \
+ has_opt=no; \
+ sane_makeflags=$$MAKEFLAGS; \
+ if $(am__is_gnu_make); then \
+ sane_makeflags=$$MFLAGS; \
+ else \
+ case $$MAKEFLAGS in \
+ *\\[\ \ ]*) \
+ bs=\\; \
+ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
+ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
+ esac; \
+ fi; \
+ skip_next=no; \
+ strip_trailopt () \
+ { \
+ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
+ }; \
+ for flg in $$sane_makeflags; do \
+ test $$skip_next = yes && { skip_next=no; continue; }; \
+ case $$flg in \
+ *=*|--*) continue;; \
+ -*I) strip_trailopt 'I'; skip_next=yes;; \
+ -*I?*) strip_trailopt 'I';; \
+ -*O) strip_trailopt 'O'; skip_next=yes;; \
+ -*O?*) strip_trailopt 'O';; \
+ -*l) strip_trailopt 'l'; skip_next=yes;; \
+ -*l?*) strip_trailopt 'l';; \
+ -[dEDm]) skip_next=yes;; \
+ -[JT]) skip_next=yes;; \
+ esac; \
+ case $$flg in \
+ *$$target_option*) has_opt=yes; break;; \
+ esac; \
+ done; \
+ test $$has_opt = yes
+am__make_dryrun = (target_option=n; $(am__make_running_with_option))
+am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
+pkgdatadir = $(datadir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkglibexecdir = $(libexecdir)/@PACKAGE@
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = @build@
+host_triplet = @host@
+subdir = engines/balou/scripts
+DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+ $(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
+am__vpath_adj = case $$p in \
+ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
+ *) f=$$p;; \
+ esac;
+am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
+am__install_max = 40
+am__nobase_strip_setup = \
+ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
+am__nobase_strip = \
+ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
+am__nobase_list = $(am__nobase_strip_setup); \
+ for p in $$list; do echo "$$p $$p"; done | \
+ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
+ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
+ if (++n[$$2] == $(am__install_max)) \
+ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
+ END { for (dir in files) print dir, files[dir] }'
+am__base_list = \
+ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
+ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
+am__uninstall_files_from_dir = { \
+ test -z "$$files" \
+ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
+ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
+ $(am__cd) "$$dir" && rm -f $$files; }; \
+ }
+am__installdirs = "$(DESTDIR)$(baloursciptsdir)"
+SCRIPTS = $(balourscipts_SCRIPTS)
+AM_V_P = $(am__v_P_@AM_V@)
+am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
+am__v_P_0 = false
+am__v_P_1 = :
+AM_V_GEN = $(am__v_GEN_@AM_V@)
+am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
+am__v_GEN_0 = @echo " GEN " $@;
+am__v_GEN_1 =
+AM_V_at = $(am__v_at_@AM_V@)
+am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
+am__v_at_0 = @
+am__v_at_1 =
+SOURCES =
+DIST_SOURCES =
+am__can_run_installinfo = \
+ case $$AM_UPDATE_INFO_DIR in \
+ n|no|NO) false;; \
+ *) (install-info --version) >/dev/null 2>&1;; \
+ esac
+am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = @ACLOCAL@
+ALL_LINGUAS = @ALL_LINGUAS@
+AMTAR = @AMTAR@
+AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
+AR = @AR@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+BACKEND = @BACKEND@
+CATALOGS = @CATALOGS@
+CATOBJEXT = @CATOBJEXT@
+CC = @CC@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DATADIRNAME = @DATADIRNAME@
+DBUS_CFLAGS = @DBUS_CFLAGS@
+DBUS_GLIB_CFLAGS = @DBUS_GLIB_CFLAGS@
+DBUS_GLIB_LIBS = @DBUS_GLIB_LIBS@
+DBUS_GLIB_REQUIRED_VERSION = @DBUS_GLIB_REQUIRED_VERSION@
+DBUS_GLIB_VERSION = @DBUS_GLIB_VERSION@
+DBUS_LIBS = @DBUS_LIBS@
+DBUS_REQUIRED_VERSION = @DBUS_REQUIRED_VERSION@
+DBUS_VERSION = @DBUS_VERSION@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+DLLTOOL = @DLLTOOL@
+DSYMUTIL = @DSYMUTIL@
+DUMPBIN = @DUMPBIN@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+EXEEXT = @EXEEXT@
+FGREP = @FGREP@
+GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
+GMODULE_CFLAGS = @GMODULE_CFLAGS@
+GMODULE_LIBS = @GMODULE_LIBS@
+GMODULE_REQUIRED_VERSION = @GMODULE_REQUIRED_VERSION@
+GMODULE_VERSION = @GMODULE_VERSION@
+GMOFILES = @GMOFILES@
+GMSGFMT = @GMSGFMT@
+GREP = @GREP@
+GTK_CFLAGS = @GTK_CFLAGS@
+GTK_LIBS = @GTK_LIBS@
+GTK_REQUIRED_VERSION = @GTK_REQUIRED_VERSION@
+GTK_VERSION = @GTK_VERSION@
+HELPER_PATH_PREFIX = @HELPER_PATH_PREFIX@
+ICEAUTH = @ICEAUTH@
+INSTALL = @INSTALL@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+INSTOBJEXT = @INSTOBJEXT@
+INTLLIBS = @INTLLIBS@
+INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@
+INTLTOOL_MERGE = @INTLTOOL_MERGE@
+INTLTOOL_PERL = @INTLTOOL_PERL@
+INTLTOOL_UPDATE = @INTLTOOL_UPDATE@
+INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@
+INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@
+INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@
+INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@
+LD = @LD@
+LDFLAGS = @LDFLAGS@
+LIBM = @LIBM@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBSM_CFLAGS = @LIBSM_CFLAGS@
+LIBSM_LDFLAGS = @LIBSM_LDFLAGS@
+LIBSM_LIBS = @LIBSM_LIBS@
+LIBTOOL = @LIBTOOL@
+LIBWNCK_CFLAGS = @LIBWNCK_CFLAGS@
+LIBWNCK_LIBS = @LIBWNCK_LIBS@
+LIBWNCK_REQUIRED_VERSION = @LIBWNCK_REQUIRED_VERSION@
+LIBWNCK_VERSION = @LIBWNCK_VERSION@
+LIBX11_CFLAGS = @LIBX11_CFLAGS@
+LIBX11_LDFLAGS = @LIBX11_LDFLAGS@
+LIBX11_LIBS = @LIBX11_LIBS@
+LIBXFCE4UI_CFLAGS = @LIBXFCE4UI_CFLAGS@
+LIBXFCE4UI_LIBS = @LIBXFCE4UI_LIBS@
+LIBXFCE4UI_REQUIRED_VERSION = @LIBXFCE4UI_REQUIRED_VERSION@
+LIBXFCE4UI_VERSION = @LIBXFCE4UI_VERSION@
+LIBXFCE4UTIL_CFLAGS = @LIBXFCE4UTIL_CFLAGS@
+LIBXFCE4UTIL_LIBS = @LIBXFCE4UTIL_LIBS@
+LIBXFCE4UTIL_REQUIRED_VERSION = @LIBXFCE4UTIL_REQUIRED_VERSION@
+LIBXFCE4UTIL_VERSION = @LIBXFCE4UTIL_VERSION@
+LIPO = @LIPO@
+LN_S = @LN_S@
+LTLIBOBJS = @LTLIBOBJS@
+LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
+MAINT = @MAINT@
+MAKEINFO = @MAKEINFO@
+MANIFEST_TOOL = @MANIFEST_TOOL@
+MKDIR_P = @MKDIR_P@
+MKINSTALLDIRS = @MKINSTALLDIRS@
+MSGFMT = @MSGFMT@
+MSGFMT_OPTS = @MSGFMT_OPTS@
+MSGMERGE = @MSGMERGE@
+NM = @NM@
+NMEDIT = @NMEDIT@
+OBJDUMP = @OBJDUMP@
+OBJEXT = @OBJEXT@
+OTOOL = @OTOOL@
+OTOOL64 = @OTOOL64@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_URL = @PACKAGE_URL@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PKG_CONFIG = @PKG_CONFIG@
+PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
+PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
+POFILES = @POFILES@
+POLKIT_CFLAGS = @POLKIT_CFLAGS@
+POLKIT_LIBS = @POLKIT_LIBS@
+POLKIT_REQUIRED_VERSION = @POLKIT_REQUIRED_VERSION@
+POLKIT_VERSION = @POLKIT_VERSION@
+POSUB = @POSUB@
+PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@
+PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@
+RANLIB = @RANLIB@
+RM = @RM@
+SED = @SED@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+STRIP = @STRIP@
+UPOWER_CFLAGS = @UPOWER_CFLAGS@
+UPOWER_LIBS = @UPOWER_LIBS@
+UPOWER_REQUIRED_VERSION = @UPOWER_REQUIRED_VERSION@
+UPOWER_VERSION = @UPOWER_VERSION@
+USE_NLS = @USE_NLS@
+VERSION = @VERSION@
+XFCE_GLADE_CATALOG_PATH = @XFCE_GLADE_CATALOG_PATH@
+XFCE_GLADE_MODULE_PATH = @XFCE_GLADE_MODULE_PATH@
+XFCE_GLADE_PIXMAP_PATH = @XFCE_GLADE_PIXMAP_PATH@
+XFCONF_CFLAGS = @XFCONF_CFLAGS@
+XFCONF_LIBS = @XFCONF_LIBS@
+XFCONF_REQUIRED_VERSION = @XFCONF_REQUIRED_VERSION@
+XFCONF_VERSION = @XFCONF_VERSION@
+XGETTEXT = @XGETTEXT@
+XGETTEXT_ARGS = @XGETTEXT_ARGS@
+XMKMF = @XMKMF@
+XSESSION_PREFIX = @XSESSION_PREFIX@
+X_CFLAGS = @X_CFLAGS@
+X_EXTRA_LIBS = @X_EXTRA_LIBS@
+X_LIBS = @X_LIBS@
+X_PRE_LIBS = @X_PRE_LIBS@
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
+ac_ct_AR = @ac_ct_AR@
+ac_ct_CC = @ac_ct_CC@
+ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
+am__include = @am__include@
+am__leading_dot = @am__leading_dot@
+am__quote = @am__quote@
+am__tar = @am__tar@
+am__untar = @am__untar@
+bindir = @bindir@
+build = @build@
+build_alias = @build_alias@
+build_cpu = @build_cpu@
+build_os = @build_os@
+build_vendor = @build_vendor@
+builddir = @builddir@
+datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
+exec_prefix = @exec_prefix@
+host = @host@
+host_alias = @host_alias@
+host_cpu = @host_cpu@
+host_os = @host_os@
+host_vendor = @host_vendor@
+htmldir = @htmldir@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+intltool__v_merge_options_ = @intltool__v_merge_options_@
+intltool__v_merge_options_0 = @intltool__v_merge_options_0@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = @localedir@
+localstatedir = @localstatedir@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+oldincludedir = @oldincludedir@
+pdfdir = @pdfdir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+psdir = @psdir@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+srcdir = @srcdir@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
+top_build_prefix = @top_build_prefix@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
+baloursciptsdir = $(HELPER_PATH_PREFIX)/xfce4/session
+balourscipts_SCRIPTS = \
+ balou-export-theme \
+ balou-install-theme
+
+EXTRA_DIST = $(balourscipts_SCRIPTS)
+all: all-am
+
+.SUFFIXES:
+$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
+ @for dep in $?; do \
+ case '$(am__configure_deps)' in \
+ *$$dep*) \
+ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
+ && { if test -f $@; then exit 0; else break; fi; }; \
+ exit 1;; \
+ esac; \
+ done; \
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu engines/balou/scripts/Makefile'; \
+ $(am__cd) $(top_srcdir) && \
+ $(AUTOMAKE) --gnu engines/balou/scripts/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+ @case '$?' in \
+ *config.status*) \
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+ *) \
+ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+ esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(am__aclocal_m4_deps):
+install-baloursciptsSCRIPTS: $(balourscipts_SCRIPTS)
+ @$(NORMAL_INSTALL)
+ @list='$(balourscipts_SCRIPTS)'; test -n "$(baloursciptsdir)" || list=; \
+ if test -n "$$list"; then \
+ echo " $(MKDIR_P) '$(DESTDIR)$(baloursciptsdir)'"; \
+ $(MKDIR_P) "$(DESTDIR)$(baloursciptsdir)" || exit 1; \
+ fi; \
+ for p in $$list; do \
+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+ if test -f "$$d$$p"; then echo "$$d$$p"; echo "$$p"; else :; fi; \
+ done | \
+ sed -e 'p;s,.*/,,;n' \
+ -e 'h;s|.*|.|' \
+ -e 'p;x;s,.*/,,;$(transform)' | sed 'N;N;N;s,\n, ,g' | \
+ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1; } \
+ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
+ if ($$2 == $$4) { files[d] = files[d] " " $$1; \
+ if (++n[d] == $(am__install_max)) { \
+ print "f", d, files[d]; n[d] = 0; files[d] = "" } } \
+ else { print "f", d "/" $$4, $$1 } } \
+ END { for (d in files) print "f", d, files[d] }' | \
+ while read type dir files; do \
+ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
+ test -z "$$files" || { \
+ echo " $(INSTALL_SCRIPT) $$files '$(DESTDIR)$(baloursciptsdir)$$dir'"; \
+ $(INSTALL_SCRIPT) $$files "$(DESTDIR)$(baloursciptsdir)$$dir" || exit $$?; \
+ } \
+ ; done
+
+uninstall-baloursciptsSCRIPTS:
+ @$(NORMAL_UNINSTALL)
+ @list='$(balourscipts_SCRIPTS)'; test -n "$(baloursciptsdir)" || exit 0; \
+ files=`for p in $$list; do echo "$$p"; done | \
+ sed -e 's,.*/,,;$(transform)'`; \
+ dir='$(DESTDIR)$(baloursciptsdir)'; $(am__uninstall_files_from_dir)
+
+mostlyclean-libtool:
+ -rm -f *.lo
+
+clean-libtool:
+ -rm -rf .libs _libs
+tags TAGS:
+
+ctags CTAGS:
+
+cscope cscopelist:
+
+
+distdir: $(DISTFILES)
+ @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ list='$(DISTFILES)'; \
+ dist_files=`for file in $$list; do echo $$file; done | \
+ sed -e "s|^$$srcdirstrip/||;t" \
+ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+ case $$dist_files in \
+ */*) $(MKDIR_P) `echo "$$dist_files" | \
+ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+ sort -u` ;; \
+ esac; \
+ for file in $$dist_files; do \
+ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+ if test -d $$d/$$file; then \
+ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+ if test -d "$(distdir)/$$file"; then \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+ fi; \
+ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+ fi; \
+ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
+ else \
+ test -f "$(distdir)/$$file" \
+ || cp -p $$d/$$file "$(distdir)/$$file" \
+ || exit 1; \
+ fi; \
+ done
+check-am: all-am
+check: check-am
+all-am: Makefile $(SCRIPTS)
+installdirs:
+ for dir in "$(DESTDIR)$(baloursciptsdir)"; do \
+ test -z "$$dir" || $(MKDIR_P) "$$dir"; \
+ done
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+ if test -z '$(STRIP)'; then \
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ install; \
+ else \
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
+ fi
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+ -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
+
+maintainer-clean-generic:
+ @echo "This command is intended for maintainers to use"
+ @echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-generic clean-libtool mostlyclean-am
+
+distclean: distclean-am
+ -rm -f Makefile
+distclean-am: clean-am distclean-generic
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+html-am:
+
+info: info-am
+
+info-am:
+
+install-data-am: install-baloursciptsSCRIPTS
+
+install-dvi: install-dvi-am
+
+install-dvi-am:
+
+install-exec-am:
+
+install-html: install-html-am
+
+install-html-am:
+
+install-info: install-info-am
+
+install-info-am:
+
+install-man:
+
+install-pdf: install-pdf-am
+
+install-pdf-am:
+
+install-ps: install-ps-am
+
+install-ps-am:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+ -rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-generic mostlyclean-libtool
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am: uninstall-baloursciptsSCRIPTS
+
+.MAKE: install-am install-strip
+
+.PHONY: all all-am check check-am clean clean-generic clean-libtool \
+ cscopelist-am ctags-am distclean distclean-generic \
+ distclean-libtool distdir dvi dvi-am html html-am info info-am \
+ install install-am install-baloursciptsSCRIPTS install-data \
+ install-data-am install-dvi install-dvi-am install-exec \
+ install-exec-am install-html install-html-am install-info \
+ install-info-am install-man install-pdf install-pdf-am \
+ install-ps install-ps-am install-strip installcheck \
+ installcheck-am installdirs maintainer-clean \
+ maintainer-clean-generic mostlyclean mostlyclean-generic \
+ mostlyclean-libtool pdf pdf-am ps ps-am tags-am uninstall \
+ uninstall-am uninstall-baloursciptsSCRIPTS
+
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/engines/balou/scripts/balou-export-theme b/engines/balou/scripts/balou-export-theme
new file mode 100755
index 0000000..b682067
--- /dev/null
+++ b/engines/balou/scripts/balou-export-theme
@@ -0,0 +1,51 @@
+#!/bin/sh
+#
+# $Id$
+#
+# Copyright (c) 2004 Benedikt Meurer <benny@xfce.org>
+# All rights reserved.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# This program 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 General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+# 02111-1307, USA.
+#
+
+if test $# -ne 2; then
+ echo "Usage: balou-export-theme <themerc> <targetfile>" >&2
+ exit 1
+fi
+
+themerc="${1}"
+targetfile="${2}"
+
+# check theme
+baloudir=`dirname "${themerc}"`
+basedir=`dirname "${baloudir}"`
+themesdir=`dirname "${basedir}"`
+themename=`basename "${basedir}"`
+if test ! -d "${baloudir}" -o ! -d "${basedir}" -o ! -d "${themesdir}"; then
+ echo "Broken theme detected." >&2
+ exit 1
+fi
+
+# tarup theme
+(cd "${themesdir}" \
+ && (tar cf - "${themename}/balou" \
+ | gzip --best > "${targetfile}")) > /dev/null 2>&1
+if test $? -ne 0; then
+ echo "Unable to export theme ${themename} to file ${targetfile}" >&2
+ exit 1
+fi
+
+exit 0
diff --git a/engines/balou/scripts/balou-install-theme b/engines/balou/scripts/balou-install-theme
new file mode 100755
index 0000000..0f889e4
--- /dev/null
+++ b/engines/balou/scripts/balou-install-theme
@@ -0,0 +1,103 @@
+#!/bin/sh
+#
+# $Id$
+#
+# Copyright (c) 2004 Benedikt Meurer <benny@xfce.org>
+# All rights reserved.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# This program 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 General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+# 02111-1307, USA.
+#
+
+leave()
+{
+ if test -d "${tmpdir}"; then
+ rm -rf "${tmpdir}" >/dev/null 2>&1
+ fi
+ exit $1
+}
+
+if test $# -ne 2; then
+ echo "Usage: balou-install-theme <theme> <targetdir>" >&2
+ exit 1
+fi
+
+tmpdir=""
+themedir="${1}"
+targetdir="${2}"
+
+# ensure the target directory exists
+if test ! -d "${targetdir}"; then
+ mkdir -p "${targetdir}" >/dev/null 2>&1
+ if test $? -ne 0; then
+ echo "Unable to create themes directory ${targetdir}." >&2
+ exit 1
+ fi
+fi
+
+# if the source is a file, we expect it to be a tarball
+if test -f "${themedir}"; then
+ tmpdir=`mktemp -d "/tmp/balou-theme-XXXXXX"` || exit 1
+
+ if echo "${themedir}" | grep '\.tar\.gz$' >/dev/null 2>&1; then
+ tar xzf "${themedir}" -C "${tmpdir}" >/dev/null 2>&1
+ if test $? -ne 0; then
+ echo "Unable to extract theme." 2>&2
+ leave 1
+ fi
+ else
+ echo "Not a splash theme file: ${themedir}." >&2
+ leave 1
+ fi
+
+ themerc=`ls ${tmpdir}/*/balou/themerc` || leave 1
+ baloudir=`dirname "${themerc}"` || leave 1
+ topdir=`dirname "${baloudir}"` || leave 1
+
+ if test ! -d "${topdir}" -o ! -d "${topdir}/balou/"; then
+ echo "Invalid theme file format." >&2
+ leave 1
+ fi
+
+ themedir="${topdir}"
+fi
+
+# verify the theme content
+if test -d "${themedir}"; then
+ if test ! -d "${themedir}/balou/"; then
+ echo "No balou sub directory in theme." >&2
+ leave 1
+ fi
+
+ if test ! -r "${themedir}/balou/themerc"; then
+ echo "No themerc file in theme." >&2
+ leave 1
+ fi
+fi
+
+# install the theme
+themebase=`dirname "${themedir}"`
+themename=`basename "${themedir}"`
+(cd "${themebase}" \
+ && tar cf - "${themename}/balou/" \
+ | (cd "${targetdir}" && tar xf -)) >/dev/null 2>&1
+if test $? -ne 0; then
+ echo "Unable to install the theme ${themename} from ${themebase} to ${targetdir}." >&2
+ leave 1
+fi
+
+# tell the caller the name of the installed plugin
+echo "${themename}"
+leave 0
diff --git a/engines/balou/themes/Default/Makefile.am b/engines/balou/themes/Default/Makefile.am
new file mode 100644
index 0000000..0fbab18
--- /dev/null
+++ b/engines/balou/themes/Default/Makefile.am
@@ -0,0 +1,7 @@
+themedir = $(datadir)/themes/Default/balou
+theme_DATA = \
+ logo.png \
+ themerc
+
+EXTRA_DIST = \
+ $(theme_DATA)
diff --git a/engines/balou/themes/Default/Makefile.in b/engines/balou/themes/Default/Makefile.in
new file mode 100644
index 0000000..3298cf5
--- /dev/null
+++ b/engines/balou/themes/Default/Makefile.in
@@ -0,0 +1,575 @@
+# Makefile.in generated by automake 1.14.1 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994-2013 Free Software Foundation, Inc.
+
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+@SET_MAKE@
+
+VPATH = @srcdir@
+am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
+am__make_running_with_option = \
+ case $${target_option-} in \
+ ?) ;; \
+ *) echo "am__make_running_with_option: internal error: invalid" \
+ "target option '$${target_option-}' specified" >&2; \
+ exit 1;; \
+ esac; \
+ has_opt=no; \
+ sane_makeflags=$$MAKEFLAGS; \
+ if $(am__is_gnu_make); then \
+ sane_makeflags=$$MFLAGS; \
+ else \
+ case $$MAKEFLAGS in \
+ *\\[\ \ ]*) \
+ bs=\\; \
+ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
+ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
+ esac; \
+ fi; \
+ skip_next=no; \
+ strip_trailopt () \
+ { \
+ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
+ }; \
+ for flg in $$sane_makeflags; do \
+ test $$skip_next = yes && { skip_next=no; continue; }; \
+ case $$flg in \
+ *=*|--*) continue;; \
+ -*I) strip_trailopt 'I'; skip_next=yes;; \
+ -*I?*) strip_trailopt 'I';; \
+ -*O) strip_trailopt 'O'; skip_next=yes;; \
+ -*O?*) strip_trailopt 'O';; \
+ -*l) strip_trailopt 'l'; skip_next=yes;; \
+ -*l?*) strip_trailopt 'l';; \
+ -[dEDm]) skip_next=yes;; \
+ -[JT]) skip_next=yes;; \
+ esac; \
+ case $$flg in \
+ *$$target_option*) has_opt=yes; break;; \
+ esac; \
+ done; \
+ test $$has_opt = yes
+am__make_dryrun = (target_option=n; $(am__make_running_with_option))
+am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
+pkgdatadir = $(datadir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkglibexecdir = $(libexecdir)/@PACKAGE@
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = @build@
+host_triplet = @host@
+subdir = engines/balou/themes/Default
+DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+ $(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+AM_V_P = $(am__v_P_@AM_V@)
+am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
+am__v_P_0 = false
+am__v_P_1 = :
+AM_V_GEN = $(am__v_GEN_@AM_V@)
+am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
+am__v_GEN_0 = @echo " GEN " $@;
+am__v_GEN_1 =
+AM_V_at = $(am__v_at_@AM_V@)
+am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
+am__v_at_0 = @
+am__v_at_1 =
+SOURCES =
+DIST_SOURCES =
+am__can_run_installinfo = \
+ case $$AM_UPDATE_INFO_DIR in \
+ n|no|NO) false;; \
+ *) (install-info --version) >/dev/null 2>&1;; \
+ esac
+am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
+am__vpath_adj = case $$p in \
+ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
+ *) f=$$p;; \
+ esac;
+am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
+am__install_max = 40
+am__nobase_strip_setup = \
+ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
+am__nobase_strip = \
+ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
+am__nobase_list = $(am__nobase_strip_setup); \
+ for p in $$list; do echo "$$p $$p"; done | \
+ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
+ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
+ if (++n[$$2] == $(am__install_max)) \
+ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
+ END { for (dir in files) print dir, files[dir] }'
+am__base_list = \
+ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
+ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
+am__uninstall_files_from_dir = { \
+ test -z "$$files" \
+ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
+ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
+ $(am__cd) "$$dir" && rm -f $$files; }; \
+ }
+am__installdirs = "$(DESTDIR)$(themedir)"
+DATA = $(theme_DATA)
+am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = @ACLOCAL@
+ALL_LINGUAS = @ALL_LINGUAS@
+AMTAR = @AMTAR@
+AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
+AR = @AR@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+BACKEND = @BACKEND@
+CATALOGS = @CATALOGS@
+CATOBJEXT = @CATOBJEXT@
+CC = @CC@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DATADIRNAME = @DATADIRNAME@
+DBUS_CFLAGS = @DBUS_CFLAGS@
+DBUS_GLIB_CFLAGS = @DBUS_GLIB_CFLAGS@
+DBUS_GLIB_LIBS = @DBUS_GLIB_LIBS@
+DBUS_GLIB_REQUIRED_VERSION = @DBUS_GLIB_REQUIRED_VERSION@
+DBUS_GLIB_VERSION = @DBUS_GLIB_VERSION@
+DBUS_LIBS = @DBUS_LIBS@
+DBUS_REQUIRED_VERSION = @DBUS_REQUIRED_VERSION@
+DBUS_VERSION = @DBUS_VERSION@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+DLLTOOL = @DLLTOOL@
+DSYMUTIL = @DSYMUTIL@
+DUMPBIN = @DUMPBIN@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+EXEEXT = @EXEEXT@
+FGREP = @FGREP@
+GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
+GMODULE_CFLAGS = @GMODULE_CFLAGS@
+GMODULE_LIBS = @GMODULE_LIBS@
+GMODULE_REQUIRED_VERSION = @GMODULE_REQUIRED_VERSION@
+GMODULE_VERSION = @GMODULE_VERSION@
+GMOFILES = @GMOFILES@
+GMSGFMT = @GMSGFMT@
+GREP = @GREP@
+GTK_CFLAGS = @GTK_CFLAGS@
+GTK_LIBS = @GTK_LIBS@
+GTK_REQUIRED_VERSION = @GTK_REQUIRED_VERSION@
+GTK_VERSION = @GTK_VERSION@
+HELPER_PATH_PREFIX = @HELPER_PATH_PREFIX@
+ICEAUTH = @ICEAUTH@
+INSTALL = @INSTALL@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+INSTOBJEXT = @INSTOBJEXT@
+INTLLIBS = @INTLLIBS@
+INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@
+INTLTOOL_MERGE = @INTLTOOL_MERGE@
+INTLTOOL_PERL = @INTLTOOL_PERL@
+INTLTOOL_UPDATE = @INTLTOOL_UPDATE@
+INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@
+INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@
+INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@
+INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@
+LD = @LD@
+LDFLAGS = @LDFLAGS@
+LIBM = @LIBM@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBSM_CFLAGS = @LIBSM_CFLAGS@
+LIBSM_LDFLAGS = @LIBSM_LDFLAGS@
+LIBSM_LIBS = @LIBSM_LIBS@
+LIBTOOL = @LIBTOOL@
+LIBWNCK_CFLAGS = @LIBWNCK_CFLAGS@
+LIBWNCK_LIBS = @LIBWNCK_LIBS@
+LIBWNCK_REQUIRED_VERSION = @LIBWNCK_REQUIRED_VERSION@
+LIBWNCK_VERSION = @LIBWNCK_VERSION@
+LIBX11_CFLAGS = @LIBX11_CFLAGS@
+LIBX11_LDFLAGS = @LIBX11_LDFLAGS@
+LIBX11_LIBS = @LIBX11_LIBS@
+LIBXFCE4UI_CFLAGS = @LIBXFCE4UI_CFLAGS@
+LIBXFCE4UI_LIBS = @LIBXFCE4UI_LIBS@
+LIBXFCE4UI_REQUIRED_VERSION = @LIBXFCE4UI_REQUIRED_VERSION@
+LIBXFCE4UI_VERSION = @LIBXFCE4UI_VERSION@
+LIBXFCE4UTIL_CFLAGS = @LIBXFCE4UTIL_CFLAGS@
+LIBXFCE4UTIL_LIBS = @LIBXFCE4UTIL_LIBS@
+LIBXFCE4UTIL_REQUIRED_VERSION = @LIBXFCE4UTIL_REQUIRED_VERSION@
+LIBXFCE4UTIL_VERSION = @LIBXFCE4UTIL_VERSION@
+LIPO = @LIPO@
+LN_S = @LN_S@
+LTLIBOBJS = @LTLIBOBJS@
+LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
+MAINT = @MAINT@
+MAKEINFO = @MAKEINFO@
+MANIFEST_TOOL = @MANIFEST_TOOL@
+MKDIR_P = @MKDIR_P@
+MKINSTALLDIRS = @MKINSTALLDIRS@
+MSGFMT = @MSGFMT@
+MSGFMT_OPTS = @MSGFMT_OPTS@
+MSGMERGE = @MSGMERGE@
+NM = @NM@
+NMEDIT = @NMEDIT@
+OBJDUMP = @OBJDUMP@
+OBJEXT = @OBJEXT@
+OTOOL = @OTOOL@
+OTOOL64 = @OTOOL64@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_URL = @PACKAGE_URL@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PKG_CONFIG = @PKG_CONFIG@
+PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
+PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
+POFILES = @POFILES@
+POLKIT_CFLAGS = @POLKIT_CFLAGS@
+POLKIT_LIBS = @POLKIT_LIBS@
+POLKIT_REQUIRED_VERSION = @POLKIT_REQUIRED_VERSION@
+POLKIT_VERSION = @POLKIT_VERSION@
+POSUB = @POSUB@
+PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@
+PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@
+RANLIB = @RANLIB@
+RM = @RM@
+SED = @SED@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+STRIP = @STRIP@
+UPOWER_CFLAGS = @UPOWER_CFLAGS@
+UPOWER_LIBS = @UPOWER_LIBS@
+UPOWER_REQUIRED_VERSION = @UPOWER_REQUIRED_VERSION@
+UPOWER_VERSION = @UPOWER_VERSION@
+USE_NLS = @USE_NLS@
+VERSION = @VERSION@
+XFCE_GLADE_CATALOG_PATH = @XFCE_GLADE_CATALOG_PATH@
+XFCE_GLADE_MODULE_PATH = @XFCE_GLADE_MODULE_PATH@
+XFCE_GLADE_PIXMAP_PATH = @XFCE_GLADE_PIXMAP_PATH@
+XFCONF_CFLAGS = @XFCONF_CFLAGS@
+XFCONF_LIBS = @XFCONF_LIBS@
+XFCONF_REQUIRED_VERSION = @XFCONF_REQUIRED_VERSION@
+XFCONF_VERSION = @XFCONF_VERSION@
+XGETTEXT = @XGETTEXT@
+XGETTEXT_ARGS = @XGETTEXT_ARGS@
+XMKMF = @XMKMF@
+XSESSION_PREFIX = @XSESSION_PREFIX@
+X_CFLAGS = @X_CFLAGS@
+X_EXTRA_LIBS = @X_EXTRA_LIBS@
+X_LIBS = @X_LIBS@
+X_PRE_LIBS = @X_PRE_LIBS@
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
+ac_ct_AR = @ac_ct_AR@
+ac_ct_CC = @ac_ct_CC@
+ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
+am__include = @am__include@
+am__leading_dot = @am__leading_dot@
+am__quote = @am__quote@
+am__tar = @am__tar@
+am__untar = @am__untar@
+bindir = @bindir@
+build = @build@
+build_alias = @build_alias@
+build_cpu = @build_cpu@
+build_os = @build_os@
+build_vendor = @build_vendor@
+builddir = @builddir@
+datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
+exec_prefix = @exec_prefix@
+host = @host@
+host_alias = @host_alias@
+host_cpu = @host_cpu@
+host_os = @host_os@
+host_vendor = @host_vendor@
+htmldir = @htmldir@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+intltool__v_merge_options_ = @intltool__v_merge_options_@
+intltool__v_merge_options_0 = @intltool__v_merge_options_0@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = @localedir@
+localstatedir = @localstatedir@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+oldincludedir = @oldincludedir@
+pdfdir = @pdfdir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+psdir = @psdir@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+srcdir = @srcdir@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
+top_build_prefix = @top_build_prefix@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
+themedir = $(datadir)/themes/Default/balou
+theme_DATA = \
+ logo.png \
+ themerc
+
+EXTRA_DIST = \
+ $(theme_DATA)
+
+all: all-am
+
+.SUFFIXES:
+$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
+ @for dep in $?; do \
+ case '$(am__configure_deps)' in \
+ *$$dep*) \
+ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
+ && { if test -f $@; then exit 0; else break; fi; }; \
+ exit 1;; \
+ esac; \
+ done; \
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu engines/balou/themes/Default/Makefile'; \
+ $(am__cd) $(top_srcdir) && \
+ $(AUTOMAKE) --gnu engines/balou/themes/Default/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+ @case '$?' in \
+ *config.status*) \
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+ *) \
+ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+ esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(am__aclocal_m4_deps):
+
+mostlyclean-libtool:
+ -rm -f *.lo
+
+clean-libtool:
+ -rm -rf .libs _libs
+install-themeDATA: $(theme_DATA)
+ @$(NORMAL_INSTALL)
+ @list='$(theme_DATA)'; test -n "$(themedir)" || list=; \
+ if test -n "$$list"; then \
+ echo " $(MKDIR_P) '$(DESTDIR)$(themedir)'"; \
+ $(MKDIR_P) "$(DESTDIR)$(themedir)" || exit 1; \
+ fi; \
+ for p in $$list; do \
+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+ echo "$$d$$p"; \
+ done | $(am__base_list) | \
+ while read files; do \
+ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(themedir)'"; \
+ $(INSTALL_DATA) $$files "$(DESTDIR)$(themedir)" || exit $$?; \
+ done
+
+uninstall-themeDATA:
+ @$(NORMAL_UNINSTALL)
+ @list='$(theme_DATA)'; test -n "$(themedir)" || list=; \
+ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
+ dir='$(DESTDIR)$(themedir)'; $(am__uninstall_files_from_dir)
+tags TAGS:
+
+ctags CTAGS:
+
+cscope cscopelist:
+
+
+distdir: $(DISTFILES)
+ @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ list='$(DISTFILES)'; \
+ dist_files=`for file in $$list; do echo $$file; done | \
+ sed -e "s|^$$srcdirstrip/||;t" \
+ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+ case $$dist_files in \
+ */*) $(MKDIR_P) `echo "$$dist_files" | \
+ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+ sort -u` ;; \
+ esac; \
+ for file in $$dist_files; do \
+ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+ if test -d $$d/$$file; then \
+ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+ if test -d "$(distdir)/$$file"; then \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+ fi; \
+ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+ fi; \
+ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
+ else \
+ test -f "$(distdir)/$$file" \
+ || cp -p $$d/$$file "$(distdir)/$$file" \
+ || exit 1; \
+ fi; \
+ done
+check-am: all-am
+check: check-am
+all-am: Makefile $(DATA)
+installdirs:
+ for dir in "$(DESTDIR)$(themedir)"; do \
+ test -z "$$dir" || $(MKDIR_P) "$$dir"; \
+ done
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+ if test -z '$(STRIP)'; then \
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ install; \
+ else \
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
+ fi
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+ -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
+
+maintainer-clean-generic:
+ @echo "This command is intended for maintainers to use"
+ @echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-generic clean-libtool mostlyclean-am
+
+distclean: distclean-am
+ -rm -f Makefile
+distclean-am: clean-am distclean-generic
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+html-am:
+
+info: info-am
+
+info-am:
+
+install-data-am: install-themeDATA
+
+install-dvi: install-dvi-am
+
+install-dvi-am:
+
+install-exec-am:
+
+install-html: install-html-am
+
+install-html-am:
+
+install-info: install-info-am
+
+install-info-am:
+
+install-man:
+
+install-pdf: install-pdf-am
+
+install-pdf-am:
+
+install-ps: install-ps-am
+
+install-ps-am:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+ -rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-generic mostlyclean-libtool
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am: uninstall-themeDATA
+
+.MAKE: install-am install-strip
+
+.PHONY: all all-am check check-am clean clean-generic clean-libtool \
+ cscopelist-am ctags-am distclean distclean-generic \
+ distclean-libtool distdir dvi dvi-am html html-am info info-am \
+ install install-am install-data install-data-am install-dvi \
+ install-dvi-am install-exec install-exec-am install-html \
+ install-html-am install-info install-info-am install-man \
+ install-pdf install-pdf-am install-ps install-ps-am \
+ install-strip install-themeDATA installcheck installcheck-am \
+ installdirs maintainer-clean maintainer-clean-generic \
+ mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
+ ps ps-am tags-am uninstall uninstall-am uninstall-themeDATA
+
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/engines/balou/themes/Default/logo.png b/engines/balou/themes/Default/logo.png
new file mode 100644
index 0000000..62ff7f5
--- /dev/null
+++ b/engines/balou/themes/Default/logo.png
Binary files differ
diff --git a/engines/balou/themes/Default/themerc b/engines/balou/themes/Default/themerc
new file mode 100644
index 0000000..3ca5f1e
--- /dev/null
+++ b/engines/balou/themes/Default/themerc
@@ -0,0 +1,50 @@
+# $Id$
+#
+# Default xfce4-session balou theme
+#
+# Copyright (c) 2004 Benedikt Meurer <benny@xfce.org>
+# Copyright (c) 2004 François Le Clainche <fleclainche at wanadoo.fr>
+# All rights reserved.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# This program 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 General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+# 02111-1307, USA.
+#
+
+
+#
+# Info section
+#
+[Info]
+Name=Default Theme
+Name[de]=Standard Thema
+Name[ja]=標準のテーマ
+Description=This is the default Balou splash theme.
+Description[de]=Dies ist das Standard Balou Thema.
+Description[ja]=これは標準の Balou スプラッシュテーマです。
+
+#
+# splash screen settings
+#
+[Splash Screen]
+# The background color, can be a single color or a vertical gradient. The
+# latter is written as <color1>:<color2>.
+bgcolor=#7991ae:#b6c4d7
+# The foreground color, used for text.
+fgcolor=#fefefe
+# The logo file, if the extension is missing, xfce4-session will search
+# for .svg, .png, .jpeg, .jpg, .xpm
+logo=logo
+
+
diff --git a/engines/balou/themes/Makefile.am b/engines/balou/themes/Makefile.am
new file mode 100644
index 0000000..76ed875
--- /dev/null
+++ b/engines/balou/themes/Makefile.am
@@ -0,0 +1 @@
+SUBDIRS = Default
diff --git a/engines/balou/themes/Makefile.in b/engines/balou/themes/Makefile.in
new file mode 100644
index 0000000..bb7f272
--- /dev/null
+++ b/engines/balou/themes/Makefile.in
@@ -0,0 +1,694 @@
+# Makefile.in generated by automake 1.14.1 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994-2013 Free Software Foundation, Inc.
+
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+@SET_MAKE@
+VPATH = @srcdir@
+am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
+am__make_running_with_option = \
+ case $${target_option-} in \
+ ?) ;; \
+ *) echo "am__make_running_with_option: internal error: invalid" \
+ "target option '$${target_option-}' specified" >&2; \
+ exit 1;; \
+ esac; \
+ has_opt=no; \
+ sane_makeflags=$$MAKEFLAGS; \
+ if $(am__is_gnu_make); then \
+ sane_makeflags=$$MFLAGS; \
+ else \
+ case $$MAKEFLAGS in \
+ *\\[\ \ ]*) \
+ bs=\\; \
+ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
+ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
+ esac; \
+ fi; \
+ skip_next=no; \
+ strip_trailopt () \
+ { \
+ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
+ }; \
+ for flg in $$sane_makeflags; do \
+ test $$skip_next = yes && { skip_next=no; continue; }; \
+ case $$flg in \
+ *=*|--*) continue;; \
+ -*I) strip_trailopt 'I'; skip_next=yes;; \
+ -*I?*) strip_trailopt 'I';; \
+ -*O) strip_trailopt 'O'; skip_next=yes;; \
+ -*O?*) strip_trailopt 'O';; \
+ -*l) strip_trailopt 'l'; skip_next=yes;; \
+ -*l?*) strip_trailopt 'l';; \
+ -[dEDm]) skip_next=yes;; \
+ -[JT]) skip_next=yes;; \
+ esac; \
+ case $$flg in \
+ *$$target_option*) has_opt=yes; break;; \
+ esac; \
+ done; \
+ test $$has_opt = yes
+am__make_dryrun = (target_option=n; $(am__make_running_with_option))
+am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
+pkgdatadir = $(datadir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkglibexecdir = $(libexecdir)/@PACKAGE@
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = @build@
+host_triplet = @host@
+subdir = engines/balou/themes
+DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+ $(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+AM_V_P = $(am__v_P_@AM_V@)
+am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
+am__v_P_0 = false
+am__v_P_1 = :
+AM_V_GEN = $(am__v_GEN_@AM_V@)
+am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
+am__v_GEN_0 = @echo " GEN " $@;
+am__v_GEN_1 =
+AM_V_at = $(am__v_at_@AM_V@)
+am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
+am__v_at_0 = @
+am__v_at_1 =
+SOURCES =
+DIST_SOURCES =
+RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \
+ ctags-recursive dvi-recursive html-recursive info-recursive \
+ install-data-recursive install-dvi-recursive \
+ install-exec-recursive install-html-recursive \
+ install-info-recursive install-pdf-recursive \
+ install-ps-recursive install-recursive installcheck-recursive \
+ installdirs-recursive pdf-recursive ps-recursive \
+ tags-recursive uninstall-recursive
+am__can_run_installinfo = \
+ case $$AM_UPDATE_INFO_DIR in \
+ n|no|NO) false;; \
+ *) (install-info --version) >/dev/null 2>&1;; \
+ esac
+RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
+ distclean-recursive maintainer-clean-recursive
+am__recursive_targets = \
+ $(RECURSIVE_TARGETS) \
+ $(RECURSIVE_CLEAN_TARGETS) \
+ $(am__extra_recursive_targets)
+AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
+ distdir
+am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
+# Read a list of newline-separated strings from the standard input,
+# and print each of them once, without duplicates. Input order is
+# *not* preserved.
+am__uniquify_input = $(AWK) '\
+ BEGIN { nonempty = 0; } \
+ { items[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in items) print i; }; } \
+'
+# Make sure the list of sources is unique. This is necessary because,
+# e.g., the same source file might be shared among _SOURCES variables
+# for different programs/libraries.
+am__define_uniq_tagged_files = \
+ list='$(am__tagged_files)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | $(am__uniquify_input)`
+ETAGS = etags
+CTAGS = ctags
+DIST_SUBDIRS = $(SUBDIRS)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+am__relativize = \
+ dir0=`pwd`; \
+ sed_first='s,^\([^/]*\)/.*$$,\1,'; \
+ sed_rest='s,^[^/]*/*,,'; \
+ sed_last='s,^.*/\([^/]*\)$$,\1,'; \
+ sed_butlast='s,/*[^/]*$$,,'; \
+ while test -n "$$dir1"; do \
+ first=`echo "$$dir1" | sed -e "$$sed_first"`; \
+ if test "$$first" != "."; then \
+ if test "$$first" = ".."; then \
+ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
+ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
+ else \
+ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
+ if test "$$first2" = "$$first"; then \
+ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
+ else \
+ dir2="../$$dir2"; \
+ fi; \
+ dir0="$$dir0"/"$$first"; \
+ fi; \
+ fi; \
+ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
+ done; \
+ reldir="$$dir2"
+ACLOCAL = @ACLOCAL@
+ALL_LINGUAS = @ALL_LINGUAS@
+AMTAR = @AMTAR@
+AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
+AR = @AR@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+BACKEND = @BACKEND@
+CATALOGS = @CATALOGS@
+CATOBJEXT = @CATOBJEXT@
+CC = @CC@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DATADIRNAME = @DATADIRNAME@
+DBUS_CFLAGS = @DBUS_CFLAGS@
+DBUS_GLIB_CFLAGS = @DBUS_GLIB_CFLAGS@
+DBUS_GLIB_LIBS = @DBUS_GLIB_LIBS@
+DBUS_GLIB_REQUIRED_VERSION = @DBUS_GLIB_REQUIRED_VERSION@
+DBUS_GLIB_VERSION = @DBUS_GLIB_VERSION@
+DBUS_LIBS = @DBUS_LIBS@
+DBUS_REQUIRED_VERSION = @DBUS_REQUIRED_VERSION@
+DBUS_VERSION = @DBUS_VERSION@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+DLLTOOL = @DLLTOOL@
+DSYMUTIL = @DSYMUTIL@
+DUMPBIN = @DUMPBIN@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+EXEEXT = @EXEEXT@
+FGREP = @FGREP@
+GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
+GMODULE_CFLAGS = @GMODULE_CFLAGS@
+GMODULE_LIBS = @GMODULE_LIBS@
+GMODULE_REQUIRED_VERSION = @GMODULE_REQUIRED_VERSION@
+GMODULE_VERSION = @GMODULE_VERSION@
+GMOFILES = @GMOFILES@
+GMSGFMT = @GMSGFMT@
+GREP = @GREP@
+GTK_CFLAGS = @GTK_CFLAGS@
+GTK_LIBS = @GTK_LIBS@
+GTK_REQUIRED_VERSION = @GTK_REQUIRED_VERSION@
+GTK_VERSION = @GTK_VERSION@
+HELPER_PATH_PREFIX = @HELPER_PATH_PREFIX@
+ICEAUTH = @ICEAUTH@
+INSTALL = @INSTALL@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+INSTOBJEXT = @INSTOBJEXT@
+INTLLIBS = @INTLLIBS@
+INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@
+INTLTOOL_MERGE = @INTLTOOL_MERGE@
+INTLTOOL_PERL = @INTLTOOL_PERL@
+INTLTOOL_UPDATE = @INTLTOOL_UPDATE@
+INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@
+INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@
+INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@
+INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@
+LD = @LD@
+LDFLAGS = @LDFLAGS@
+LIBM = @LIBM@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBSM_CFLAGS = @LIBSM_CFLAGS@
+LIBSM_LDFLAGS = @LIBSM_LDFLAGS@
+LIBSM_LIBS = @LIBSM_LIBS@
+LIBTOOL = @LIBTOOL@
+LIBWNCK_CFLAGS = @LIBWNCK_CFLAGS@
+LIBWNCK_LIBS = @LIBWNCK_LIBS@
+LIBWNCK_REQUIRED_VERSION = @LIBWNCK_REQUIRED_VERSION@
+LIBWNCK_VERSION = @LIBWNCK_VERSION@
+LIBX11_CFLAGS = @LIBX11_CFLAGS@
+LIBX11_LDFLAGS = @LIBX11_LDFLAGS@
+LIBX11_LIBS = @LIBX11_LIBS@
+LIBXFCE4UI_CFLAGS = @LIBXFCE4UI_CFLAGS@
+LIBXFCE4UI_LIBS = @LIBXFCE4UI_LIBS@
+LIBXFCE4UI_REQUIRED_VERSION = @LIBXFCE4UI_REQUIRED_VERSION@
+LIBXFCE4UI_VERSION = @LIBXFCE4UI_VERSION@
+LIBXFCE4UTIL_CFLAGS = @LIBXFCE4UTIL_CFLAGS@
+LIBXFCE4UTIL_LIBS = @LIBXFCE4UTIL_LIBS@
+LIBXFCE4UTIL_REQUIRED_VERSION = @LIBXFCE4UTIL_REQUIRED_VERSION@
+LIBXFCE4UTIL_VERSION = @LIBXFCE4UTIL_VERSION@
+LIPO = @LIPO@
+LN_S = @LN_S@
+LTLIBOBJS = @LTLIBOBJS@
+LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
+MAINT = @MAINT@
+MAKEINFO = @MAKEINFO@
+MANIFEST_TOOL = @MANIFEST_TOOL@
+MKDIR_P = @MKDIR_P@
+MKINSTALLDIRS = @MKINSTALLDIRS@
+MSGFMT = @MSGFMT@
+MSGFMT_OPTS = @MSGFMT_OPTS@
+MSGMERGE = @MSGMERGE@
+NM = @NM@
+NMEDIT = @NMEDIT@
+OBJDUMP = @OBJDUMP@
+OBJEXT = @OBJEXT@
+OTOOL = @OTOOL@
+OTOOL64 = @OTOOL64@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_URL = @PACKAGE_URL@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PKG_CONFIG = @PKG_CONFIG@
+PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
+PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
+POFILES = @POFILES@
+POLKIT_CFLAGS = @POLKIT_CFLAGS@
+POLKIT_LIBS = @POLKIT_LIBS@
+POLKIT_REQUIRED_VERSION = @POLKIT_REQUIRED_VERSION@
+POLKIT_VERSION = @POLKIT_VERSION@
+POSUB = @POSUB@
+PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@
+PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@
+RANLIB = @RANLIB@
+RM = @RM@
+SED = @SED@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+STRIP = @STRIP@
+UPOWER_CFLAGS = @UPOWER_CFLAGS@
+UPOWER_LIBS = @UPOWER_LIBS@
+UPOWER_REQUIRED_VERSION = @UPOWER_REQUIRED_VERSION@
+UPOWER_VERSION = @UPOWER_VERSION@
+USE_NLS = @USE_NLS@
+VERSION = @VERSION@
+XFCE_GLADE_CATALOG_PATH = @XFCE_GLADE_CATALOG_PATH@
+XFCE_GLADE_MODULE_PATH = @XFCE_GLADE_MODULE_PATH@
+XFCE_GLADE_PIXMAP_PATH = @XFCE_GLADE_PIXMAP_PATH@
+XFCONF_CFLAGS = @XFCONF_CFLAGS@
+XFCONF_LIBS = @XFCONF_LIBS@
+XFCONF_REQUIRED_VERSION = @XFCONF_REQUIRED_VERSION@
+XFCONF_VERSION = @XFCONF_VERSION@
+XGETTEXT = @XGETTEXT@
+XGETTEXT_ARGS = @XGETTEXT_ARGS@
+XMKMF = @XMKMF@
+XSESSION_PREFIX = @XSESSION_PREFIX@
+X_CFLAGS = @X_CFLAGS@
+X_EXTRA_LIBS = @X_EXTRA_LIBS@
+X_LIBS = @X_LIBS@
+X_PRE_LIBS = @X_PRE_LIBS@
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
+ac_ct_AR = @ac_ct_AR@
+ac_ct_CC = @ac_ct_CC@
+ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
+am__include = @am__include@
+am__leading_dot = @am__leading_dot@
+am__quote = @am__quote@
+am__tar = @am__tar@
+am__untar = @am__untar@
+bindir = @bindir@
+build = @build@
+build_alias = @build_alias@
+build_cpu = @build_cpu@
+build_os = @build_os@
+build_vendor = @build_vendor@
+builddir = @builddir@
+datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
+exec_prefix = @exec_prefix@
+host = @host@
+host_alias = @host_alias@
+host_cpu = @host_cpu@
+host_os = @host_os@
+host_vendor = @host_vendor@
+htmldir = @htmldir@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+intltool__v_merge_options_ = @intltool__v_merge_options_@
+intltool__v_merge_options_0 = @intltool__v_merge_options_0@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = @localedir@
+localstatedir = @localstatedir@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+oldincludedir = @oldincludedir@
+pdfdir = @pdfdir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+psdir = @psdir@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+srcdir = @srcdir@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
+top_build_prefix = @top_build_prefix@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
+SUBDIRS = Default
+all: all-recursive
+
+.SUFFIXES:
+$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
+ @for dep in $?; do \
+ case '$(am__configure_deps)' in \
+ *$$dep*) \
+ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
+ && { if test -f $@; then exit 0; else break; fi; }; \
+ exit 1;; \
+ esac; \
+ done; \
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu engines/balou/themes/Makefile'; \
+ $(am__cd) $(top_srcdir) && \
+ $(AUTOMAKE) --gnu engines/balou/themes/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+ @case '$?' in \
+ *config.status*) \
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+ *) \
+ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+ esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(am__aclocal_m4_deps):
+
+mostlyclean-libtool:
+ -rm -f *.lo
+
+clean-libtool:
+ -rm -rf .libs _libs
+
+# This directory's subdirectories are mostly independent; you can cd
+# into them and run 'make' without going through this Makefile.
+# To change the values of 'make' variables: instead of editing Makefiles,
+# (1) if the variable is set in 'config.status', edit 'config.status'
+# (which will cause the Makefiles to be regenerated when you run 'make');
+# (2) otherwise, pass the desired values on the 'make' command line.
+$(am__recursive_targets):
+ @fail=; \
+ if $(am__make_keepgoing); then \
+ failcom='fail=yes'; \
+ else \
+ failcom='exit 1'; \
+ fi; \
+ dot_seen=no; \
+ target=`echo $@ | sed s/-recursive//`; \
+ case "$@" in \
+ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
+ *) list='$(SUBDIRS)' ;; \
+ esac; \
+ for subdir in $$list; do \
+ echo "Making $$target in $$subdir"; \
+ if test "$$subdir" = "."; then \
+ dot_seen=yes; \
+ local_target="$$target-am"; \
+ else \
+ local_target="$$target"; \
+ fi; \
+ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
+ || eval $$failcom; \
+ done; \
+ if test "$$dot_seen" = "no"; then \
+ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
+ fi; test -z "$$fail"
+
+ID: $(am__tagged_files)
+ $(am__define_uniq_tagged_files); mkid -fID $$unique
+tags: tags-recursive
+TAGS: tags
+
+tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
+ set x; \
+ here=`pwd`; \
+ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
+ include_option=--etags-include; \
+ empty_fix=.; \
+ else \
+ include_option=--include; \
+ empty_fix=; \
+ fi; \
+ list='$(SUBDIRS)'; for subdir in $$list; do \
+ if test "$$subdir" = .; then :; else \
+ test ! -f $$subdir/TAGS || \
+ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
+ fi; \
+ done; \
+ $(am__define_uniq_tagged_files); \
+ shift; \
+ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
+ test -n "$$unique" || unique=$$empty_fix; \
+ if test $$# -gt 0; then \
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+ "$$@" $$unique; \
+ else \
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+ $$unique; \
+ fi; \
+ fi
+ctags: ctags-recursive
+
+CTAGS: ctags
+ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
+ $(am__define_uniq_tagged_files); \
+ test -z "$(CTAGS_ARGS)$$unique" \
+ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
+ $$unique
+
+GTAGS:
+ here=`$(am__cd) $(top_builddir) && pwd` \
+ && $(am__cd) $(top_srcdir) \
+ && gtags -i $(GTAGS_ARGS) "$$here"
+cscopelist: cscopelist-recursive
+
+cscopelist-am: $(am__tagged_files)
+ list='$(am__tagged_files)'; \
+ case "$(srcdir)" in \
+ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
+ *) sdir=$(subdir)/$(srcdir) ;; \
+ esac; \
+ for i in $$list; do \
+ if test -f "$$i"; then \
+ echo "$(subdir)/$$i"; \
+ else \
+ echo "$$sdir/$$i"; \
+ fi; \
+ done >> $(top_builddir)/cscope.files
+
+distclean-tags:
+ -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
+
+distdir: $(DISTFILES)
+ @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ list='$(DISTFILES)'; \
+ dist_files=`for file in $$list; do echo $$file; done | \
+ sed -e "s|^$$srcdirstrip/||;t" \
+ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+ case $$dist_files in \
+ */*) $(MKDIR_P) `echo "$$dist_files" | \
+ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+ sort -u` ;; \
+ esac; \
+ for file in $$dist_files; do \
+ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+ if test -d $$d/$$file; then \
+ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+ if test -d "$(distdir)/$$file"; then \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+ fi; \
+ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+ fi; \
+ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
+ else \
+ test -f "$(distdir)/$$file" \
+ || cp -p $$d/$$file "$(distdir)/$$file" \
+ || exit 1; \
+ fi; \
+ done
+ @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
+ if test "$$subdir" = .; then :; else \
+ $(am__make_dryrun) \
+ || test -d "$(distdir)/$$subdir" \
+ || $(MKDIR_P) "$(distdir)/$$subdir" \
+ || exit 1; \
+ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
+ $(am__relativize); \
+ new_distdir=$$reldir; \
+ dir1=$$subdir; dir2="$(top_distdir)"; \
+ $(am__relativize); \
+ new_top_distdir=$$reldir; \
+ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
+ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
+ ($(am__cd) $$subdir && \
+ $(MAKE) $(AM_MAKEFLAGS) \
+ top_distdir="$$new_top_distdir" \
+ distdir="$$new_distdir" \
+ am__remove_distdir=: \
+ am__skip_length_check=: \
+ am__skip_mode_fix=: \
+ distdir) \
+ || exit 1; \
+ fi; \
+ done
+check-am: all-am
+check: check-recursive
+all-am: Makefile
+installdirs: installdirs-recursive
+installdirs-am:
+install: install-recursive
+install-exec: install-exec-recursive
+install-data: install-data-recursive
+uninstall: uninstall-recursive
+
+install-am: all-am
+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-recursive
+install-strip:
+ if test -z '$(STRIP)'; then \
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ install; \
+ else \
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
+ fi
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+ -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
+
+maintainer-clean-generic:
+ @echo "This command is intended for maintainers to use"
+ @echo "it deletes files that may require special tools to rebuild."
+clean: clean-recursive
+
+clean-am: clean-generic clean-libtool mostlyclean-am
+
+distclean: distclean-recursive
+ -rm -f Makefile
+distclean-am: clean-am distclean-generic distclean-tags
+
+dvi: dvi-recursive
+
+dvi-am:
+
+html: html-recursive
+
+html-am:
+
+info: info-recursive
+
+info-am:
+
+install-data-am:
+
+install-dvi: install-dvi-recursive
+
+install-dvi-am:
+
+install-exec-am:
+
+install-html: install-html-recursive
+
+install-html-am:
+
+install-info: install-info-recursive
+
+install-info-am:
+
+install-man:
+
+install-pdf: install-pdf-recursive
+
+install-pdf-am:
+
+install-ps: install-ps-recursive
+
+install-ps-am:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-recursive
+ -rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-recursive
+
+mostlyclean-am: mostlyclean-generic mostlyclean-libtool
+
+pdf: pdf-recursive
+
+pdf-am:
+
+ps: ps-recursive
+
+ps-am:
+
+uninstall-am:
+
+.MAKE: $(am__recursive_targets) install-am install-strip
+
+.PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \
+ check-am clean clean-generic clean-libtool cscopelist-am ctags \
+ ctags-am distclean distclean-generic distclean-libtool \
+ distclean-tags distdir dvi dvi-am html html-am info info-am \
+ install install-am install-data install-data-am install-dvi \
+ install-dvi-am install-exec install-exec-am install-html \
+ install-html-am install-info install-info-am install-man \
+ install-pdf install-pdf-am install-ps install-ps-am \
+ install-strip installcheck installcheck-am installdirs \
+ installdirs-am maintainer-clean maintainer-clean-generic \
+ mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
+ ps ps-am tags tags-am uninstall uninstall-am
+
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT: