diff options
Diffstat (limited to 'libxfsm')
-rw-r--r-- | libxfsm/Makefile.am | 45 | ||||
-rw-r--r-- | libxfsm/Makefile.in | 827 | ||||
-rw-r--r-- | libxfsm/xfce4-session-2.0.pc.in | 11 | ||||
-rw-r--r-- | libxfsm/xfsm-splash-engine.h | 124 | ||||
-rw-r--r-- | libxfsm/xfsm-splash-rc.c | 140 | ||||
-rw-r--r-- | libxfsm/xfsm-splash-rc.h | 77 | ||||
-rw-r--r-- | libxfsm/xfsm-util.c | 226 | ||||
-rw-r--r-- | libxfsm/xfsm-util.h | 57 |
8 files changed, 1507 insertions, 0 deletions
diff --git a/libxfsm/Makefile.am b/libxfsm/Makefile.am new file mode 100644 index 0000000..b219933 --- /dev/null +++ b/libxfsm/Makefile.am @@ -0,0 +1,45 @@ +AM_CPPFLAGS = \ + -I$(top_srcdir) + +# common library +lib_LTLIBRARIES = libxfsm-4.6.la + +libxfsm_4_6_la_SOURCES = \ + xfsm-splash-rc.c \ + xfsm-splash-rc.h \ + xfsm-util.h \ + xfsm-util.c + +libxfsm_4_6_la_CFLAGS = \ + $(LIBX11_CFLAGS) \ + $(LIBXFCE4UI_CFLAGS) \ + $(XFCONF_CFLAGS) + +libxfsm_4_6_la_LDFLAGS = \ + -export-dynamic \ + -version-info 0:0:0 \ + $(LIBX11_LDFLAGS) + +if HAVE_OS_CYGWIN +libxfsm_4_6_la_LDFLAGS += \ + -no-undefined +endif + +libxfsm_4_6_la_LIBADD = \ + $(LIBX11_LIBS) \ + $(LIBXFCE4UI_LIBS) \ + $(XFCONF_LIBS) + + +libxfsmincludedir = \ + $(includedir)/xfce4/xfce4-session-4.6/libxfsm + +libxfsminclude_HEADERS = \ + xfsm-splash-engine.h \ + xfsm-splash-rc.h + + +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = xfce4-session-2.0.pc + + diff --git a/libxfsm/Makefile.in b/libxfsm/Makefile.in new file mode 100644 index 0000000..4e44cb0 --- /dev/null +++ b/libxfsm/Makefile.in @@ -0,0 +1,827 @@ +# 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@ +@HAVE_OS_CYGWIN_TRUE@am__append_1 = \ +@HAVE_OS_CYGWIN_TRUE@ -no-undefined + +subdir = libxfsm +DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ + $(srcdir)/xfce4-session-2.0.pc.in $(top_srcdir)/depcomp \ + $(libxfsminclude_HEADERS) +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 = xfce4-session-2.0.pc +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)$(libdir)" "$(DESTDIR)$(pkgconfigdir)" \ + "$(DESTDIR)$(libxfsmincludedir)" +LTLIBRARIES = $(lib_LTLIBRARIES) +am__DEPENDENCIES_1 = +libxfsm_4_6_la_DEPENDENCIES = $(am__DEPENDENCIES_1) \ + $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) +am_libxfsm_4_6_la_OBJECTS = libxfsm_4_6_la-xfsm-splash-rc.lo \ + libxfsm_4_6_la-xfsm-util.lo +libxfsm_4_6_la_OBJECTS = $(am_libxfsm_4_6_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 = +libxfsm_4_6_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ + $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ + $(libxfsm_4_6_la_CFLAGS) $(CFLAGS) $(libxfsm_4_6_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 = $(libxfsm_4_6_la_SOURCES) +DIST_SOURCES = $(libxfsm_4_6_la_SOURCES) +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac +DATA = $(pkgconfig_DATA) +HEADERS = $(libxfsminclude_HEADERS) +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 +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@ +AM_CPPFLAGS = \ + -I$(top_srcdir) + + +# common library +lib_LTLIBRARIES = libxfsm-4.6.la +libxfsm_4_6_la_SOURCES = \ + xfsm-splash-rc.c \ + xfsm-splash-rc.h \ + xfsm-util.h \ + xfsm-util.c + +libxfsm_4_6_la_CFLAGS = \ + $(LIBX11_CFLAGS) \ + $(LIBXFCE4UI_CFLAGS) \ + $(XFCONF_CFLAGS) + +libxfsm_4_6_la_LDFLAGS = -export-dynamic -version-info 0:0:0 \ + $(LIBX11_LDFLAGS) $(am__append_1) +libxfsm_4_6_la_LIBADD = \ + $(LIBX11_LIBS) \ + $(LIBXFCE4UI_LIBS) \ + $(XFCONF_LIBS) + +libxfsmincludedir = \ + $(includedir)/xfce4/xfce4-session-4.6/libxfsm + +libxfsminclude_HEADERS = \ + xfsm-splash-engine.h \ + xfsm-splash-rc.h + +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = xfce4-session-2.0.pc +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu libxfsm/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --gnu libxfsm/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): +xfce4-session-2.0.pc: $(top_builddir)/config.status $(srcdir)/xfce4-session-2.0.pc.in + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ + +install-libLTLIBRARIES: $(lib_LTLIBRARIES) + @$(NORMAL_INSTALL) + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || 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)$(libdir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(libdir)" || exit 1; \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \ + } + +uninstall-libLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ + for p in $$list; do \ + $(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \ + done + +clean-libLTLIBRARIES: + -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) + @list='$(lib_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}; \ + } + +libxfsm-4.6.la: $(libxfsm_4_6_la_OBJECTS) $(libxfsm_4_6_la_DEPENDENCIES) $(EXTRA_libxfsm_4_6_la_DEPENDENCIES) + $(AM_V_CCLD)$(libxfsm_4_6_la_LINK) -rpath $(libdir) $(libxfsm_4_6_la_OBJECTS) $(libxfsm_4_6_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libxfsm_4_6_la-xfsm-splash-rc.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libxfsm_4_6_la-xfsm-util.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 $@ $< + +libxfsm_4_6_la-xfsm-splash-rc.lo: xfsm-splash-rc.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) $(libxfsm_4_6_la_CFLAGS) $(CFLAGS) -MT libxfsm_4_6_la-xfsm-splash-rc.lo -MD -MP -MF $(DEPDIR)/libxfsm_4_6_la-xfsm-splash-rc.Tpo -c -o libxfsm_4_6_la-xfsm-splash-rc.lo `test -f 'xfsm-splash-rc.c' || echo '$(srcdir)/'`xfsm-splash-rc.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libxfsm_4_6_la-xfsm-splash-rc.Tpo $(DEPDIR)/libxfsm_4_6_la-xfsm-splash-rc.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='xfsm-splash-rc.c' object='libxfsm_4_6_la-xfsm-splash-rc.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) $(libxfsm_4_6_la_CFLAGS) $(CFLAGS) -c -o libxfsm_4_6_la-xfsm-splash-rc.lo `test -f 'xfsm-splash-rc.c' || echo '$(srcdir)/'`xfsm-splash-rc.c + +libxfsm_4_6_la-xfsm-util.lo: xfsm-util.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) $(libxfsm_4_6_la_CFLAGS) $(CFLAGS) -MT libxfsm_4_6_la-xfsm-util.lo -MD -MP -MF $(DEPDIR)/libxfsm_4_6_la-xfsm-util.Tpo -c -o libxfsm_4_6_la-xfsm-util.lo `test -f 'xfsm-util.c' || echo '$(srcdir)/'`xfsm-util.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libxfsm_4_6_la-xfsm-util.Tpo $(DEPDIR)/libxfsm_4_6_la-xfsm-util.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='xfsm-util.c' object='libxfsm_4_6_la-xfsm-util.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) $(libxfsm_4_6_la_CFLAGS) $(CFLAGS) -c -o libxfsm_4_6_la-xfsm-util.lo `test -f 'xfsm-util.c' || echo '$(srcdir)/'`xfsm-util.c + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs +install-pkgconfigDATA: $(pkgconfig_DATA) + @$(NORMAL_INSTALL) + @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(pkgconfigdir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)" || 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)$(pkgconfigdir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(pkgconfigdir)" || exit $$?; \ + done + +uninstall-pkgconfigDATA: + @$(NORMAL_UNINSTALL) + @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + dir='$(DESTDIR)$(pkgconfigdir)'; $(am__uninstall_files_from_dir) +install-libxfsmincludeHEADERS: $(libxfsminclude_HEADERS) + @$(NORMAL_INSTALL) + @list='$(libxfsminclude_HEADERS)'; test -n "$(libxfsmincludedir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(libxfsmincludedir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(libxfsmincludedir)" || 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_HEADER) $$files '$(DESTDIR)$(libxfsmincludedir)'"; \ + $(INSTALL_HEADER) $$files "$(DESTDIR)$(libxfsmincludedir)" || exit $$?; \ + done + +uninstall-libxfsmincludeHEADERS: + @$(NORMAL_UNINSTALL) + @list='$(libxfsminclude_HEADERS)'; test -n "$(libxfsmincludedir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + dir='$(DESTDIR)$(libxfsmincludedir)'; $(am__uninstall_files_from_dir) + +ID: $(am__tagged_files) + $(am__define_uniq_tagged_files); mkid -fID $$unique +tags: tags-am +TAGS: tags + +tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) + set x; \ + here=`pwd`; \ + $(am__define_uniq_tagged_files); \ + shift; \ + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + if test $$# -gt 0; then \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + "$$@" $$unique; \ + else \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$unique; \ + fi; \ + fi +ctags: ctags-am + +CTAGS: ctags +ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) + $(am__define_uniq_tagged_files); \ + test -z "$(CTAGS_ARGS)$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && $(am__cd) $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) "$$here" +cscopelist: cscopelist-am + +cscopelist-am: $(am__tagged_files) + list='$(am__tagged_files)'; \ + case "$(srcdir)" in \ + [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ + *) sdir=$(subdir)/$(srcdir) ;; \ + esac; \ + for i in $$list; do \ + if test -f "$$i"; then \ + echo "$(subdir)/$$i"; \ + else \ + echo "$$sdir/$$i"; \ + fi; \ + done >> $(top_builddir)/cscope.files + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(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 $(LTLIBRARIES) $(DATA) $(HEADERS) +installdirs: + for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(pkgconfigdir)" "$(DESTDIR)$(libxfsmincludedir)"; 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-libLTLIBRARIES clean-libtool \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +html-am: + +info: info-am + +info-am: + +install-data-am: install-libxfsmincludeHEADERS install-pkgconfigDATA + +install-dvi: install-dvi-am + +install-dvi-am: + +install-exec-am: install-libLTLIBRARIES + +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 -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-libLTLIBRARIES uninstall-libxfsmincludeHEADERS \ + uninstall-pkgconfigDATA + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \ + clean-libLTLIBRARIES 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-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-libLTLIBRARIES \ + install-libxfsmincludeHEADERS install-man install-pdf \ + install-pdf-am install-pkgconfigDATA install-ps install-ps-am \ + install-strip installcheck installcheck-am installdirs \ + maintainer-clean maintainer-clean-generic mostlyclean \ + mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ + pdf pdf-am ps ps-am tags tags-am uninstall uninstall-am \ + uninstall-libLTLIBRARIES uninstall-libxfsmincludeHEADERS \ + uninstall-pkgconfigDATA + + +# 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/libxfsm/xfce4-session-2.0.pc.in b/libxfsm/xfce4-session-2.0.pc.in new file mode 100644 index 0000000..4351d0f --- /dev/null +++ b/libxfsm/xfce4-session-2.0.pc.in @@ -0,0 +1,11 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ + +Name: xfce4-session +Description: Xfce 4 session manager +Requires: libxfce4ui-1 libxfconf-0 +Version: @VERSION@ +Libs: -L${libdir} -lxfsm-4.6 +Cflags: -I${includedir}/xfce4/xfce4-session-4.6 diff --git a/libxfsm/xfsm-splash-engine.h b/libxfsm/xfsm-splash-engine.h new file mode 100644 index 0000000..d77a8db --- /dev/null +++ b/libxfsm/xfsm-splash-engine.h @@ -0,0 +1,124 @@ +/* $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 __XFSM_SPLASH_ENGINE_H__ +#define __XFSM_SPLASH_ENGINE_H__ + +#include <time.h> + +#include <gtk/gtk.h> + +#include <libxfsm/xfsm-splash-rc.h> + + +#define XFSM_CHOOSE_LOGOUT 0 +#define XFSM_CHOOSE_LOAD 1 +#define XFSM_CHOOSE_NEW 2 + + +typedef struct _XfsmSplashEngine XfsmSplashEngine; +typedef struct _XfsmSplashConfig XfsmSplashConfig; +typedef struct _XfsmSessionInfo XfsmSessionInfo; + + +struct _XfsmSplashEngine +{ + /* provided by the session manager */ + GdkDisplay *display; + GdkScreen *primary_screen; + int primary_monitor; + + + /* to be filled in by the engine */ + gpointer user_data; + + /* load config from rc and display the splash window */ + void (*setup) (XfsmSplashEngine *engine, + XfsmSplashRc *rc); + + /* tells the engine that the session will start now, where + steps is the approx. number of apps started in the session, + name is the name of the session and the preview at 52x42 + (OPTIONAL) */ + void (*start) (XfsmSplashEngine *engine, + const gchar *name, + GdkPixbuf *preview, + unsigned steps); + + /* place, run, hide the dialog and return the result of the run. + override on demand (OPTIONAL) */ + int (*run) (XfsmSplashEngine *engine, + GtkWidget *dialog); + + /* display the text (OPTIONAL) */ + void (*next) (XfsmSplashEngine *engine, + const gchar *text); + + /* choose a session (OPTIONAL), should return XFSM_CHOOSE_* */ + int (*choose) (XfsmSplashEngine *engine, + GList *sessions, + const gchar *default_session, + gchar **name_return); + + void (*destroy) (XfsmSplashEngine *engine); + + gpointer _reserved[8]; +}; + + +struct _XfsmSplashConfig +{ + /* provided by the session manager */ + XfsmSplashRc *rc; + + + /* to be filled in by the config (freed by the session manager) */ + gchar *name; + gchar *description; + gchar *version; + gchar *author; + gchar *homepage; + + /* config internals (config is responsible for freeing during destroy) */ + gpointer user_data; + + /* generate preview for engine, should be 320x240! (OPTIONAL) */ + GdkPixbuf *(*preview) (XfsmSplashConfig *config); + + /* display a configuration dialog (OPTIONAL) */ + void (*configure) (XfsmSplashConfig *config, + GtkWidget *parent); + + void (*destroy) (XfsmSplashConfig *config); + + gpointer _reserved[8]; +}; + + +struct _XfsmSessionInfo +{ + gchar *name; /* name of the session */ + time_t atime; /* last access time */ + GdkPixbuf *preview; /* preview icon (52x42) */ +}; + + +#endif /* !__XFSM_SPLASH_ENGINE_H__ */ diff --git a/libxfsm/xfsm-splash-rc.c b/libxfsm/xfsm-splash-rc.c new file mode 100644 index 0000000..d652d1d --- /dev/null +++ b/libxfsm/xfsm-splash-rc.c @@ -0,0 +1,140 @@ +/* $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 <libxfsm/xfsm-splash-rc.h> + +#define PROP_FROM_KEY(varname, key) \ + gchar varname[4096]; \ + g_strlcpy(varname, "/", sizeof(varname)); \ + g_strlcat(varname, key, sizeof(varname)) + + +struct _XfsmSplashRc +{ + XfconfChannel *channel; +}; + + +XfsmSplashRc* +xfsm_splash_rc_new (XfconfChannel *channel) +{ + XfsmSplashRc *splash_rc; + + splash_rc = g_new (XfsmSplashRc, 1); + splash_rc->channel = g_object_ref (channel); + + return splash_rc; +} + + +gchar* +xfsm_splash_rc_read_entry (XfsmSplashRc *splash_rc, + const gchar *key, + const gchar *fallback) +{ + PROP_FROM_KEY(prop, key); + return xfconf_channel_get_string (splash_rc->channel, prop, fallback); +} + + +gint +xfsm_splash_rc_read_int_entry (XfsmSplashRc *splash_rc, + const gchar *key, + gint fallback) +{ + PROP_FROM_KEY(prop, key); + return xfconf_channel_get_int (splash_rc->channel, prop, fallback); +} + + +gboolean +xfsm_splash_rc_read_bool_entry (XfsmSplashRc *splash_rc, + const gchar *key, + gboolean fallback) +{ + PROP_FROM_KEY(prop, key); + return xfconf_channel_get_bool (splash_rc->channel, prop, fallback); +} + + +gchar** +xfsm_splash_rc_read_list_entry (XfsmSplashRc *splash_rc, + const gchar *key, + const gchar *delimiter) +{ + PROP_FROM_KEY(prop, key); + return xfconf_channel_get_string_list (splash_rc->channel, prop); +} + + +void +xfsm_splash_rc_write_entry (XfsmSplashRc *splash_rc, + const gchar *key, + const gchar *value) +{ + PROP_FROM_KEY(prop, key); + xfconf_channel_set_string (splash_rc->channel, prop, value); +} + + +void +xfsm_splash_rc_write_int_entry (XfsmSplashRc *splash_rc, + const gchar *key, + gint value) +{ + PROP_FROM_KEY(prop, key); + xfconf_channel_set_int (splash_rc->channel, prop, value); +} + + +void +xfsm_splash_rc_write_bool_entry (XfsmSplashRc *splash_rc, + const gchar *key, + gboolean value) +{ + PROP_FROM_KEY(prop, key); + xfconf_channel_set_bool (splash_rc->channel, prop, value); +} + + +void +xfsm_splash_rc_write_list_entry (XfsmSplashRc *splash_rc, + const gchar *key, + gchar **value, + const gchar *delimiter) +{ + PROP_FROM_KEY(prop, key); + xfconf_channel_set_string_list (splash_rc->channel, prop, (gchar const **)value); +} + + +void +xfsm_splash_rc_free (XfsmSplashRc *splash_rc) +{ + g_object_unref (splash_rc->channel); + g_free (splash_rc); +} + + diff --git a/libxfsm/xfsm-splash-rc.h b/libxfsm/xfsm-splash-rc.h new file mode 100644 index 0000000..4dd21f9 --- /dev/null +++ b/libxfsm/xfsm-splash-rc.h @@ -0,0 +1,77 @@ +/* $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 __XFSM_SPLASH_RC_H__ +#define __XFSM_SPLASH_RC_H__ + +#include <gmodule.h> +#include <xfconf/xfconf.h> +#include <libxfce4util/libxfce4util.h> + + +G_BEGIN_DECLS; + +typedef struct _XfsmSplashRc XfsmSplashRc; + + +G_MODULE_IMPORT +XfsmSplashRc *xfsm_splash_rc_new (XfconfChannel*channel); + +G_MODULE_IMPORT +gchar *xfsm_splash_rc_read_entry (XfsmSplashRc *splash_rc, + const gchar *key, + const gchar *fallback); +G_MODULE_IMPORT +gint xfsm_splash_rc_read_int_entry (XfsmSplashRc *splash_rc, + const gchar *key, + gint fallback); +G_MODULE_IMPORT +gboolean xfsm_splash_rc_read_bool_entry (XfsmSplashRc *splash_rc, + const gchar *key, + gboolean fallback); +G_MODULE_IMPORT +gchar **xfsm_splash_rc_read_list_entry (XfsmSplashRc *splash_rc, + const gchar *key, + const gchar *delimiter); +G_MODULE_IMPORT +void xfsm_splash_rc_write_entry (XfsmSplashRc *splash_rc, + const gchar *key, + const gchar *value); +G_MODULE_IMPORT +void xfsm_splash_rc_write_int_entry (XfsmSplashRc *splash_rc, + const gchar *key, + gint value); +G_MODULE_IMPORT +void xfsm_splash_rc_write_bool_entry (XfsmSplashRc *splash_rc, + const gchar *key, + gboolean value); +G_MODULE_IMPORT +void xfsm_splash_rc_write_list_entry (XfsmSplashRc *splash_rc, + const gchar *key, + gchar **value, + const gchar *delimiter); +void xfsm_splash_rc_free (XfsmSplashRc *splash_rc); + +G_END_DECLS; + + +#endif /* !__XFSM_SPLASH_RC_H__ */ + diff --git a/libxfsm/xfsm-util.c b/libxfsm/xfsm-util.c new file mode 100644 index 0000000..ddd9d2a --- /dev/null +++ b/libxfsm/xfsm-util.c @@ -0,0 +1,226 @@ +/* $Id$ */ +/*- + * Copyright (c) 2003-2004 Benedikt Meurer <benny@xfce.org> + * Copyright (c) 2004 Jasper Huijsmans <jasper@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. + * + * Parts of this file where taken from gnome-session/gsm-multiscreen.c, + * which was written by Mark McLoughlin <mark@skynet.ie>. + */ + +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif + +#ifdef HAVE_MEMORY_H +#include <memory.h> +#endif +#ifdef HAVE_STRING_H +#include <string.h> +#endif + +#include <X11/Xlib.h> + +#include <gdk/gdkx.h> + +#include <libxfce4ui/libxfce4ui.h> + +#include <libxfsm/xfsm-util.h> + + +gboolean +xfsm_start_application (gchar **command, + gchar **environment, + GdkScreen *screen, + const gchar *current_directory, + const gchar *client_machine, + const gchar *user_id) +{ + gboolean result; + gchar *screen_name; + gchar **argv; + gint argc; + gint size; + + g_return_val_if_fail (command != NULL && *command != NULL, FALSE); + + argv = g_new (gchar *, 21); + size = 20; + argc = 0; + + if (client_machine != NULL) + { + /* setting current directory on a remote machine is not supported */ + current_directory = NULL; + + argv[argc++] = g_strdup ("xon"); + argv[argc++] = g_strdup (client_machine); + } + + if (screen != NULL) + { + if (client_machine != NULL) + { + gchar *display_name = + xfsm_gdk_display_get_fullname (gdk_screen_get_display (screen)); + + screen_name = g_strdup_printf ("%s.%d", display_name, + gdk_screen_get_number (screen)); + } + else + screen_name = gdk_screen_make_display_name (screen); + argv[argc++] = g_strdup ("env"); + argv[argc++] = g_strdup_printf ("DISPLAY=%s", screen_name); + g_free (screen_name); + } + + for (; *command != NULL; ++command) + { + if (argc == size) + { + size *= 2; + argv = g_realloc (argv, (size + 1) * sizeof (*argv)); + } + + argv[argc++] = xfce_expand_variables (*command, environment); + } + + argv[argc] = NULL; + + result = g_spawn_async (current_directory, + argv, + environment, + G_SPAWN_LEAVE_DESCRIPTORS_OPEN | G_SPAWN_SEARCH_PATH, + NULL, + NULL, + NULL, + NULL); + + g_strfreev (argv); + + return result; +} + + +void +xfsm_place_trash_window (GtkWindow *window, + GdkScreen *screen, + gint monitor) +{ + GtkRequisition requisition; + GdkRectangle geometry; + + gdk_screen_get_monitor_geometry (screen, monitor, &geometry); + gtk_widget_size_request (GTK_WIDGET (window), &requisition); + + gtk_window_move (window, 0, geometry.height - requisition.height); +} + + +gboolean +xfsm_strv_equal (gchar **a, gchar **b) +{ + if ((a == NULL && b != NULL) || (a != NULL && b == NULL)) + return FALSE; + else if (a == NULL || b == NULL) + return TRUE; + + while (*a != NULL && *b != NULL) + { + if (strcmp (*a, *b) != 0) + return FALSE; + + ++a; + ++b; + } + + return (*a == NULL && *b == NULL); +} + + +void +xfsm_window_add_border (GtkWindow *window) +{ + GtkWidget *box1, *box2; + + gtk_widget_realize(GTK_WIDGET(window)); + + box1 = gtk_event_box_new (); + gtk_widget_modify_bg (box1, GTK_STATE_NORMAL, + &(GTK_WIDGET(window)->style->bg [GTK_STATE_SELECTED])); + gtk_widget_show (box1); + + box2 = gtk_event_box_new (); + gtk_widget_show (box2); + gtk_container_add (GTK_CONTAINER (box1), box2); + + gtk_container_set_border_width (GTK_CONTAINER (box2), 6); + gtk_widget_reparent (GTK_BIN (window)->child, box2); + + gtk_container_add (GTK_CONTAINER (window), box1); +} + +XfconfChannel* +xfsm_open_config (void) +{ + static XfconfChannel *channel = NULL; + + if (G_UNLIKELY (channel == NULL)) + channel = xfconf_channel_get ("xfce4-session"); + return channel; +} + +gchar* +xfsm_gdk_display_get_fullname (GdkDisplay *display) +{ + const gchar *name; + const gchar *np; + gchar *hostname; + gchar buffer[256]; + gchar *bp; + + g_return_val_if_fail (GDK_IS_DISPLAY (display), NULL); + + name = gdk_display_get_name (display); + if (*name == ':') + { + hostname = xfce_gethostname (); + g_strlcpy (buffer, hostname, 256); + g_free (hostname); + + bp = buffer + strlen (buffer); + + for (np = name; *np != '\0' && *np != '.' && bp < buffer + 255; ) + *bp++ = *np++; + *bp = '\0'; + } + else + { + g_strlcpy (buffer, name, 256); + + for (bp = buffer + strlen (buffer) - 1; *bp != ':'; --bp) + if (*bp == '.') + { + *bp = '\0'; + break; + } + } + + return g_strdup (buffer); +} + diff --git a/libxfsm/xfsm-util.h b/libxfsm/xfsm-util.h new file mode 100644 index 0000000..8ca9fc2 --- /dev/null +++ b/libxfsm/xfsm-util.h @@ -0,0 +1,57 @@ +/* $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 __XFSM_UTIL_H__ +#define __XFSM_UTIL_H__ + +#include <xfconf/xfconf.h> + +#include <gtk/gtk.h> + +#include <libxfce4util/libxfce4util.h> +#include <libxfce4ui/libxfce4ui.h> + +G_BEGIN_DECLS; + +gboolean xfsm_start_application (gchar **command, + gchar **environment, + GdkScreen *screen, + const gchar *current_directory, + const gchar *client_machine, + const gchar *user_id); + +void xfsm_place_trash_window (GtkWindow *window, + GdkScreen *screen, + gint monitor); + +/* XXX - move to libxfce4util? */ +gboolean xfsm_strv_equal (gchar **a, gchar **b); + +void xfsm_window_add_border (GtkWindow *window); + +XfconfChannel *xfsm_open_config (void); + +gchar *xfsm_gdk_display_get_fullname (GdkDisplay *display); + + +G_END_DECLS; + +#endif /* !__XFSM_UTIL_H__ */ |